- Oh no! An error has occurred!
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
- You need to be logged in to do that.
-
Coinciding with the acquisition of VIA Development, Nate joined Autodesk in March of 2003 after a decade stint as an entrepreneur following a two-decade stint as a controls engineer and software applications developer at Owens-Corning. Nate is now the lead product architect for AutoCAD Electrical. He loves this stuff.
-
Matching cable tag-IDs to connected components - AutoCAD Electrical
July 3, 2007, 07:15 PM Nate HoltThis request came in about an hour ago. The user wants to quickly assign cable tag-IDs to match a connected component device tag-ID. For example, a multi-conductor cable that ties to a 3-phase motor symbol... wants the cable tag-ID to match the motor's.
Not a problem typing in the data, but if you have a lot of these, would be nice to have an easier-to-use tool.
Here's one way. It's not rocket science by any stretch. But it works. You launch this little AutoLISP utility. Then you just pick on the target component and then window the cable marker symbols.

Whatever tag-ID value is found on the picked component gets copied to all of the cable marker symbols.

The motor's tag gets copied to all four markers, but is visible only on the top "parent" symbol as the attributes on the three "child" marker symbols below it are flagged "invisible".
How it works
This utility makes two calls into the AutoCAD Electrical "API" to retrieve an attribute value (from the picked component) and to modify attribute values (to write the component's tag-ID back out to the cable marker block inserts).

The utility is just one big "while" loop. It prompt for the master motor or switch device and then saves the picked entity name in variable "mtr_en". Then it prompts to window (or select) all of the cable markers to copy this value to. These are stored in a selection set "ss". Then another "while" loop takes over and cycles through each of the windowed cable marker block inserts. For each one it writes the master tag-ID value out to the tag-ID attribute on the cable marker symbol.
Download this utility here. To use, APPLOAD the file and then type COPY2CABLE [Enter] at the command line.
Don't hesitate to modify this short utility to do other cool things!
You must be logged in to post a comment.