Script - insert wire numbers

Script - insert wire numbers

Anonymous
Not applicable
787 Views
4 Replies
Message 1 of 5

Script - insert wire numbers

Anonymous
Not applicable

I am currently in the middle of creating a script that will save me many clicks when performing drawing-wide tasks. However, inserting wire numbers is causing me issues, particularly when it comes to the end of the script and I am attempting to create a new drawing (for the script to repeat through). My script is very small right now and I have put it below. Is there something that I am missing?

 

AEREVISELADDER
AERETAG
AEWIRENO

ACENEWDRAWING

(space)

0 Likes
788 Views
4 Replies
Replies (4)
Message 2 of 5

rhesusminus
Mentor
Mentor
Using the API we might be able to automate even further.
What exactly is it that you're trying to achieve?

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes
Message 3 of 5

Anonymous
Not applicable

I'm not familiar with API (I'm relatively new to script writing), but what I am looking to do is automate creation of several pages that will be from the same template and formatted the same, but differ only because of page number difference. I will have to go back on each page to update company specific things that I cannot automate, but I am looking to save some time by creating the pages with basic formatting by using a script. These pages could range from 5 to 40 in total.

 

My initial thought was to write a script to create a new drawing, then re-number the ladder, retag and insert wire numbers, and then repeat the script. I'm okay with being prompted with dialog boxes (as I'm not looking to click once and walk away) but, I'm wanting to be prompted with those dialog boxes automatically as each page is created.

 

Any thoughts that may get me going in the right direction?

0 Likes
Message 4 of 5

rhesusminus
Mentor
Mentor

If I were you, I'd read up on the API. You can find the help-file here:

2017-10-05_21-55-14.png

 

 

For renumbering a ladder without user input, you can use this command here:

2017-10-05_21-57-19.png

 


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes
Message 5 of 5

rhesusminus
Mentor
Mentor
This lisp-commands can be inserted directly into your script!

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes