Jayme McColgan Posted August 4, 2021 Share Posted August 4, 2021 working on a plugin that will inset some symbols that have i have previous made into lighting devices. when i use vs.symbol() to add them to my drawing it adds them as just symbols instead of lighting devices. any way to add a "lighting device" to a drawing or to convert a symbol to a lighting device? Quote Link to comment
JBenghiat Posted August 10, 2021 Share Posted August 10, 2021 The lighting device is a plug-in object, so you need to use CreateCustomObject(). There's not really a way to convert the symbol — conversion is basically deleting the symbol, inserting the PIO in its place, and setting the appropriate data fields to use the symbol name. Note that position detection won't be automatic, and you'll need to run ApplyLightInfoRecord(). 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.