Author Topic: Field text  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

new_mem

  • Newt
  • Posts: 67
Field text
« on: December 17, 2015, 05:20:12 AM »
Hi all I have file name AA.BB.CC-sfdsafsa.dwg and i add field : %<\AcVar Filename \f "%tc4%fn2">%
return: AA.BB.CC-sfdsafsa
But i want return AA.BB.CC

How can i do it
Please help me
Thank u very much

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Field text
« Reply #1 on: December 17, 2015, 05:33:30 AM »
Use a DIESEL field with the following expression:

Code: [Select]
$(substr,$(getvar,dwgname),1,8)

new_mem

  • Newt
  • Posts: 67
Re: Field text
« Reply #2 on: December 17, 2015, 06:09:32 AM »
A HA, exactyle what i want.

Thank you Lee Mac.  :smitten:

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Field text
« Reply #3 on: December 17, 2015, 06:18:07 AM »
You're most welcome!  :-)