VvierA Posted November 9, 2012 Share Posted November 9, 2012 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 Quote Link to comment
MullinRJ Posted November 9, 2012 Share Posted November 9, 2012 Use GetFldName() and GetFldType() on the Plugin record. Keep looking until you can't find any more. Raymond Quote Link to comment
Vectorworks, Inc Employee klinzey Posted November 9, 2012 Vectorworks, Inc Employee Share Posted November 9, 2012 The standard symbol calls work for getting location and rotation information from a PIO. GetSymLoc(); {returns coordinates relative to user origin} GetSymLoc3D(); GetSymRot(); Quote Link to comment
VvierA Posted November 9, 2012 Author Share Posted November 9, 2012 Thank you both. Quote Link to comment
zuken86 Posted January 16, 2013 Share Posted January 16, 2013 How do you pass this info to a variable? or another object? Quote Link to comment
Hippocode Posted January 17, 2013 Share Posted January 17, 2013 (edited) 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 January 17, 2013 by hippothamus 1 Quote Link to comment
Recommended Posts
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.