AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modifying the drawing name in a title block

1 REPLY 1
Reply
Message 1 of 2
ddemerath
219 Views, 1 Reply

Modifying the drawing name in a title block

We need to modify our title block to enter a partial drawing name. I have a line in the .wdt file that will take the drawing number and place it into the drawing. Unfortunately, the customer would like it in 2 different formats. I know that I can manually enter the drawing name in the configuration box, but I was trying to avoid tying it into 85 drawings.
Example:
Drawing # ABC12345_00
1st entry into title block: ABC12345
2nd entry into the title block: 12345

Thanks, dd
1 REPLY 1
Message 2 of 2
joechrobak
in reply to: ddemerath

You can use a lisp expression in the wdt file
if you use the substr function you can trim the drawing number.

(substr drawingnum 1 (-(strlen drawingnum))3))
this should take the drawing number start at the first character check the length of it and re
move the last 3 characters.
and if you use something like
(substr drawingnum 4 (-(strlen drawingnum))3))
should give you the value minus the first 3 characters
replace drawingnum with what you are mapping to in the wdt file
Not sure if the syntax is correct on the above examples
Check the lisp help refernce for examples
I'm sure someone here can correct this if it is not right.
but it should get you moving in a direction maybe not the right one

Joe

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost