Automating Wire Labeling in AutoCAD Electrical

Automating Wire Labeling in AutoCAD Electrical

joel_gaglia
Explorer Explorer
284 Views
1 Reply
Message 1 of 2

Automating Wire Labeling in AutoCAD Electrical

joel_gaglia
Explorer
Explorer

Hello All,

 

In my current task we place component and draw wire as per circuit logic.

to complete schematic drawing we need to insert wire labels as well through programming.

 As I gone through AutoCAD Electrical API but not found any API to insert wire-labels.

 

In AutoCAD Electrical  there is command "AEWIRECOLORLABEL" (Wire colour / Gauge Labels ). When It run after selecting "Auto Placement" Option and Wires, Labels automatically place over the wire.

 

Can we  call this function via Programming by passing some variables to that command?

 

please suggest solution or any other way to achieve this task.

0 Likes
285 Views
1 Reply
Reply (1)
Message 2 of 2

Ed__Jobe
Mentor
Mentor

The (command) function just takes a string as an argument. You can concatenate the wire label command with any arguments you need, including a space to simulate {Enter}, e.g.

 

(command "AEWIRECOLORLABEL " var1 var2 " ")

 

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes