TheSwamp

CAD Forums => CAD General => Topic started by: dubb on November 23, 2016, 12:28:01 PM

Title: Diesel expression doesn't update
Post by: dubb on November 23, 2016, 12:28:01 PM
I am trying to obtain the substring of the first two characters of a layout name using a diesel expression. When I change the name of the layout it doesn't change. The text becomes static. Whats going on here?

Layout name "01-Title Sheet"

Field Text: $(substr,%<\AcVar ctab>%,1,2)

Result: 01

Layout name changed: "02-Title Sheet"
Result: 01

Title: Re: Diesel expression doesn't update
Post by: roy_043 on November 23, 2016, 12:44:38 PM
Diesel expression:
Code: [Select]
$(substr,$(getvar,CTAB),1,2)
Title: Re: Diesel expression doesn't update
Post by: ChrisCarlson on November 23, 2016, 12:57:47 PM
I don't believe Diesel expressions are automatic, they must be refreshed.
Title: Re: Diesel expression doesn't update
Post by: roy_043 on November 24, 2016, 04:07:12 AM
I don't believe Diesel expressions are automatic, they must be refreshed.
This applies to all fields.
Title: Re: Diesel expression doesn't update
Post by: dubb on November 28, 2016, 03:54:19 PM
Thanks!
I guess by using
Code: [Select]
%<\AcVar ctab>% it became static?