Smart Field read from ctab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm trying to set up a smart field that automatically reads certain character of the CTAB, like the following:
I managed to use
$(substr,$(getvar,CTAB),1,$(-,$(strlen,$(getvar,CTAB)),1,10))
To read all the name minus the last 10 characters so I managed to make it read the "Page description (Elevations) which is a value that may vary in lenght
$(substr,$(getvar,CTAB),$(-,$(strlen,$(getvar,CTAB)),1))
to read the last 2 characters of the CTAB so it can read the revision number
How can I tell Autocad that I need to read between the 10th last character and the 6th last character Ignoring the initial part of the CTAB name?
for example if the ctab is called: "Elevations-1301-REV00" I'd like it read ONLY 1301 but this has to work also if for example the CTAB is called: "Plans-1301-REV00" so the final part of the name is fixed.
Can anyone help me please?
Thank you!