- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
Hoping you can help me, trying to write an expression to take part of a file name to inform an attribute, but I'm having a tad of trouble, and I'm not sure if its possible?!
What I'm trying to achieve is that "VAR" in the sample file name below can be a series of pre-defined letters that equal a drawing status, and when this is change its will update the attribute in the titleblock
Filename = ####-###-VAR
ASB = AS BUILT
INF = INFOMATION
So I assumed I could do something like this: $(if, ($(eq, val1, val2)), dotrue [, dofalse])
Where:
Val1 = ($(substr,$(getvar,dwgname),10,3))
Val2 = INF
dotrue = Infomation
dofalse = repeat simualr to excel IF equation. to include other variations
i have a feeling that $(eq, val1, val2) has to be numerical?! - is there a version that works for text? that returns a 1 or 0 that would work wit with the IF equation?
Or is there a better way of doing this?
Thanks in advance!
Solved! Go to Solution.