Jump to content
Developer Wiki and Function Reference Links ×

Get access to all standard record information of a PIO?


VvierA

Recommended Posts

Hello,

I'd like to get access via Vectorscript to all standard record information.

A path object for example:

I can get LineLength which is a standard parameter in the parameter list of the PIO object.

But in the object info palette there is also:

x coordinate

y coordinate

z coordinate

angle

Where do I find this variables?

Do I have to use 'GetSymLoc' to get x and y? But how do I get z and the angle?

Kind regards

VvierA

Link to comment
  • 2 months later...

If you want to save that information in an object's parameter you use this function:

SetRField

In a PIO's case, the record name is the objects name

SetRField(HandleToObject,object/recordname,recordfield/parametername,value);

With GetRfield you can retrieve values.

You can also get the parameter values in the code of an object trough:

MyString :PPARAMETER1;

This will load your PIO parameters in variables so you can use them in your script. GetRField will also work, but this is easier.

Edited by hippothamus
  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...