Smart Field read from ctab

Smart Field read from ctab

Attilio_Armone
Explorer Explorer
312 Views
1 Reply
Message 1 of 2

Smart Field read from ctab

Attilio_Armone
Explorer
Explorer

Hi All,
I'm trying to set up a smart field that automatically reads certain character of the CTAB, like the following:

Attilio_Armone_0-1691086629031.png

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!

0 Likes
313 Views
1 Reply
Reply (1)
Message 2 of 2

cadffm
Consultant
Consultant
0 Likes