CivilTechSource Posted 3 hours ago Posted 3 hours ago I am trying to write a diesel expression that will extract the first part of the drawing file name. Full Drawing File Name: XXX-ZINC-XX-XX-DR-C-01000_S278 Sections First Part: XXX-ZINC-XX-XX-DR-C- My question: Is there a smarter way to extract the first part rather than relaying on the number of characters? If everyone is following the correct naming protocol it would be 20 characters but sometimes you have people instead of -C- they put -CE- so I am wondering is there a way to future proof it. Thank you. $(substr,$(getvar,"dwgname"),1,20) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.