Jump to content

Diesel Field Expression


Recommended Posts

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".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...