spettitt Posted February 21 Share Posted February 21 I'm exporting some data out of VW via script and would like to include the project name, ID, client etc, and other custom project data fields I've added. Currently I ForEachObject through title blocks and grab the project record data, but it would be nice to access it directly. Maybe I should grab the 'first' TBB in the file and use that, but ideally I can just locate the data directly. Quote Link to comment
Vectorworks, Inc Employee Nikolay Zhelyazkov Posted February 21 Vectorworks, Inc Employee Share Posted February 21 Hello @spettitt, The data is stored in the Title Block Project Data record. You can take its handle from the name and then read directly from it I think. Let me know if you need any help with that. Note - do not make any changes to this record as it will not get applied to the TBBs in the file and will get the project data out of sync. Best Regards, Nikolay Zhelyazkov Quote Link to comment
spettitt Posted February 21 Author Share Posted February 21 Thanks Nikolay, the below works perfect. Leaving here in case anyone elses searches for this. hProjData = vs.GetObject('Title Block Project Data') str_PName = vs.GetRField(hProjData, 'Title Block Project Data', 'Project Name') 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.