Automate the renaming of lights.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using an old version of AutoCAD 2005.
I often add lights into a drawing as blocks and then explode them into individual light sources. This works well except the lights are all named the same "LT8-01". I have to rename them to be unique or when I render only the first one inserted will light up.
I have written many VBA application to help speed the operations I do most often. This one has stumped me. I can't seem to find a way to get to the light collection through VBA and reanam the lights. This means the only way I can rename them is manually through the light dialog. The one the comes up by typing LIGHT on the command line (See attchment screen shot). When there are 50+ lights this becomes time consuming. I am able to get to the SNAME attribute and rename that, but that does not actually rename the light object.
Anyone have a piece of code that will rename the lights so they are all unique.
Much appreciated in advance.
Cliff