DIESEL IN FIELD FORMULA

DIESEL IN FIELD FORMULA

Anonymous
Not applicable
1,096 Views
4 Replies
Message 1 of 5

DIESEL IN FIELD FORMULA

Anonymous
Not applicable

I started playing around with DIESEL but I'm not quite getting it.

I have a dynamic block with a few attributes and attribute "C" gets populated under certain conditions.

For instance IF attribute "A" = 1" the text should read NPT otherwise IF attribute "B" = A or B text should read RF otherwise IF "B" = C or D then the text should be RTJ.

 

This is easily done in EXCEL but I'm not understanding how it's done in DIESEL. What I have so far is this:

 

ATT-A = Attribute "A"

ATT-B = Attribute "B"

ATT-C = Attribute "C"

 

$(IF,$(=,ATT-A,1"),NPT,$(IF,$(=,ATT-B,$(or,A,B)),RF,RTJ))

 

Am I close? 

0 Likes
1,097 Views
4 Replies
Replies (4)
Message 2 of 5

m_badran
Advocate
Advocate

Hi,
I am trying to help you but with different way,find attached DWG sample Achieved your request with dynamic block, check  and let me Know.

0 Likes
Message 3 of 5

Anonymous
Not applicable

That's close but your "result" is based off of only one variable whereas I am attempting to base it off of two variables (attributes).

0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant

As fas as I know you can only get sysvars and envvars to diesel. So... your DIESEL formula could look like this...

 

$(if,$(eq,$(getvar,users1),"1"),"NPT",$(if,$(or,$(eq,$(getvar,users2),"A"),$(eq,$(getvar,users2),"B")),"RF","RTJ"))

 

which works... but how do you use your att values in it - I hope you know, because I have no idea.

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thanks for the help, I thought DIESEL was capable of more than this but it's actually pretty basic.

Looks like AutoCAD might not be capable of doing this after all.

0 Likes