Jump to content
Sign in to follow this  
Gabe RC

GetRField equivalent in SDK

Recommended Posts

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!

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...