Gabe RC Posted October 24, 2010 Share Posted October 24, 2010 Hello, I'm wondering if there is an equivalent to the vectorscript function "GetRField" in the C++ sdk. I would like to access the values of specific records inside a PIO. Thanks! Quote Link to comment
Ryan McCuaig Posted November 5, 2010 Share Posted November 5, 2010 Looks like VWFC::VWObjects::VWRecordObj has some methods for this, like GetParamValue(). Check VWRecordObj.h ... I couldn't find anything on the developer wiki. How you get a VWRecordObj given a handle to an arbitrary object is a little fuzzy to me. Quote Link to comment
Vectorworks, Inc Employee Vlado Posted November 8, 2010 Vectorworks, Inc Employee Share Posted November 8, 2010 Hello, the VWFC classes are wrappers on top of the SDK. Unfortunately, not very well documented. The VWObjects namespace contains objects that are designed as wrappers of MCObjectHandle. Every class has two different constructors: 1. wrapping - the one that accepts MCObjectHandle 2. creating - the all others (they create a new object) For the VWRecordObj you can just create instance like this: VWRecordObj rec( hRecord ); Note that for parametric objects, it's much easier to use VWParametricObj, it directly allows you to access the parameters. 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.