Community
AutoCAD LT Forum
Welcome to Autodeskā€™s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Use diesel for part of layout name

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
hwalker
176 Views, 3 Replies

Use diesel for part of layout name

So I've already got this $(substr, $(getvar,ctab),5) which works how I want.

My problem is what if I want to get only the characters after a certain character in this case a dash

The problem is my tab could have two dashes in it

e.g

A2_5433-B-1 How do I get it to only show the 1 at the end and not B-1. Also these names can be of variable length

Using LT2016

Howard Walker
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.

EESignature


Left Handed and Proud

3 REPLIES 3
Message 2 of 4
cadffm
in reply to: hwalker

Hi,

 

if you have a range of "between char 8 and 12", then it is possible by using IF

but totally random positions and variable length and a second (same) char,

it's not possible, not well enough.

 

Sebastian

EESignature

Message 3 of 4
pendean
in reply to: hwalker

DIESEL is not dynamic, it is static: you count how many exact characters you want to ignore and the result is what you get.

For example... if your layouts are always the same the the 11th digit is what you want, you can exclude the first 10.
But if it is 10th or 12th, your static diesel is only going to show you the 11th all the time.

Now you know why LISP is such a big deal in LT2024 and LT2025 for users that crave that level of control.
Message 4 of 4
hwalker
in reply to: hwalker

Well we're working on the boss of the company to try to get us upgraded.

Howard Walker
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.

EESignature


Left Handed and Proud

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

Post to forums  

Forma Design Contest


Technology Administrators