How to change the Wire Numbering field to either yes or no using API

alan_rackham
Enthusiast
Enthusiast

How to change the Wire Numbering field to either yes or no using API

alan_rackham
Enthusiast
Enthusiast

I just discovered today that I can use the following API call to add wire layers to AutoCAD electrical.  This manual does not show me how to update the Wire Numbering field.  Can anyone help?

(c:ace_mod_wiretype "RED-AWG" (list "SIZE" "14" "USER1" "XHW") nil)
0 Likes
Reply
Accepted solutions (1)
320 Views
2 Replies
Replies (2)

james.mcmillanNYR6A
Collaborator
Collaborator

that api is to modify existing wiretype, not sure why there isn't an option to toggle numbering.

 

You can use c:ace_new_wiretype to add a wire layer

 

Or possibly include "WIRENO" 0 (0 off/1 on) in your options list

 

 

alan_rackham
Enthusiast
Enthusiast
Accepted solution

James

 

Thanks for the information.  The final solution was:

 

(c:ace_mod_wiretype "WIRES_NORMAL" (list "WIRENO" "1") nil)

 

You need quotes around the number.  This should be in the API help, but it isn't

0 Likes