AutoCAD 2013/2014 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Limit file name length
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I have a drawing and I have a field calling up the path and file name. Is their a way to limit the size of the path displayed? For example, if my drawing is C:\users\name1\name2\name3\t4\new5.dwg, is their a way to only show ...\name3\t4\new5.dwg?
Re: Limit file name length
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Using DIESEL expression in you field will help point you in the right direction if you path names are all a consistent length
for example,
$(substr,%<\AcVar dwgprefix \f "%tc1">%,15)
will display the path from the 15th character
Also take a look at this link, one of the posts shows how to display a set number of characters from the end
http://forums.augi.com/archive/index.php/t-68125.h
Re: Limit file name length
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Close. But I can't to constant characters because the directory names will always be a diferent length. I can say i just want everything from the third or fouth "\" forward. Would that help?
Re: Limit file name length
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I don't think it will be possible with diesel
I haven't much time at the moment to get too deep but there may be a solution here at this link
http://forums.augi.com/showthread.php?140905-Folde
