Jump to content
DDJL

Diesel Field Expression

Recommended Posts

DDJL

By changing the numbers at the end first Diesel code of I can pass a part of the layout name to a field for a sheet number.

 

 

$(substr,$(getvar,ctab),$(-,$(strlen,$(getvar,ctab)),0),1)

 

 

By naming a layout tab "1" or "2" I can use the second Diesel code to select between two different addresses and pass one or the other to an address field.

 

 

$(if,$(eq,$(getvar,ctab),1),"building 1",$(if,$(eq,$(getvar,ctab),2),"building 2"))

 

 

Is it possible to combine the first Diesel code with the second Diesel code so that I can use the first part of ONE layout tab to select a sheet number field, and the end part of the SAME layout tab would act as a pointer to select an address?

 

 

For example if the layout tab text was "A-1 1"

then the sheet number would be "A-1"

and the address field would be "building 1".

Share this post


Link to post
Share on other sites
zaphod

Yes, here is a drawing with an example of only the fields.

A-1 1.dwg

Share this post


Link to post
Share on other sites
DDJL

ZAPHOD

 

 

You pointed me in the right direction and helped me solve my problem

 

 

Thanks

DDJL

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×