J. Miller Posted October 13, 2023 Share Posted October 13, 2023 I have a VW script that selects objects based on the data in the "lighting device" record. I root out other items by making sure the record "Lighting Device" is attached to keep the script from breaking? Now i see "EntEquipmentUniversal" as the record on a lighting device. Is there a workaround so I can find the handle to "lighting device" so i can grab data? Thanks Jeff Quote Link to comment
Vectorworks, Inc Employee JustinVH Posted October 13, 2023 Vectorworks, Inc Employee Share Posted October 13, 2023 The Light Info Record is still attached to lighting devices. The EntEquipUniversal record is a new record used for the Equipment List command and is attached to all Spotlight symbols. Quote Link to comment
JBenghiat Posted October 14, 2023 Share Posted October 14, 2023 Plug-in objects have a record attached to them to hold plug-in parameters, but can also have data records attached to them, of which EntEquipUniversal is one. The plug-in record is not guaranteed to be the first record attached. Your best method depends on how you are filtering objects. If you are using ForEachObject, you can use the selected 'PON' (Plugin Object Name) to match a plug-in object by its universal name. You can also iterate through attached records, though I prefer using Eval and the PON criteria. Quote Link to comment
Pat Stanford Posted October 14, 2023 Share Posted October 14, 2023 And GetParametricRecord() will return a handle to the parametric record for an object or Nil if it is not a PIO. Quote Link to comment
J. Miller Posted October 14, 2023 Author Share Posted October 14, 2023 Thanks all. I wrote this years ago when there was only the Lighting Device record attached to a fixture. Seems i need to modify the check to look at all records now. Thanks for the hint Joshua 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.