Titleblock - Diesal Expresion

Titleblock - Diesal Expresion

Oli
Enthusiast Enthusiast
705 Views
4 Replies
Message 1 of 5

Titleblock - Diesal Expresion

Oli
Enthusiast
Enthusiast

Hi

 

I'm hoping someone can help me with a custom diesal expression for my new title block; I use the following filename format:

 

SX000_DDD_000_Blah Blah /  SX000_BCH_000_Blah Blah

 

If DDD I'd like and Output of Design

if BCH I'd Like an Output of Bench

 

Is there a way of doing this? 

 

Thanks 

 

 

 

0 Likes
Accepted solutions (1)
706 Views
4 Replies
Replies (4)
Message 2 of 5

jmayo-EE
Mentor
Mentor

Make an rtxext object for each case and manually delete the one you don't need when creating sheets...Unfortunately without an IF statement it won't work and I don't believe the diesel will do that.

John Mayo

EESignature

0 Likes
Message 3 of 5

Oli
Enthusiast
Enthusiast

Thanks John,

 

Can you do an IF in LISP?

 

 

0 Likes
Message 4 of 5

jmayo-EE
Mentor
Mentor
Accepted solution

I would bet you could do this with lisp but the experts for this tool are over here,

 

http://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1

 

and here,

 

http://forums.autodesk.com/t5/autocad-civil-3d-customization/bd-p/190

 

John Mayo

EESignature

0 Likes
Message 5 of 5

doni49
Mentor
Mentor

A lisp routine could be created that runs everytime you open a file.  The routine could update one of the user setvars (setvar "users1" "bench") for example.

 

Then a deisel expression could read the value of that setvar.



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

0 Likes