DieselExpression

DieselExpression

marian
Observer Observer
440 Views
3 Replies
Message 1 of 4

DieselExpression

marian
Observer
Observer

What is the code in DieselExpression to truncate the file name to include only specific characters from the file name.

Fox Example...I don't want to have first 12 characters..

I have this code that works to include first 12 characters - $(substr,$(getvar, dwgname),1,12)


and I have this one  $(substr,$(getvar,dwgname),6,$(strlen,$(getvar,dwgname)))  but that also includes ",dwg" in the file name that I do not want to... How can I eliminate the ".dwg" from the file name

 

0 Likes
441 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant

THIS thread should help you...

0 Likes
Message 3 of 4

marian
Observer
Observer

Almast...so I have 2 different scenarios

 

1)

$(substr,$(upper,$(getvar,dwgname)),1,$(-,$(strlen,$(getvar,dwgname)),4)) this eliminate the ".dwg" which is good but I want to eliminate first 12 characters

2)

$(substr,$(upper,$(getvar,dwgname)),14,$(-,$(strlen,$(getvar,dwgname)),4)) and this one eliminate the front as I want to but add the ".dwg" at the end

0 Likes
Message 4 of 4

ВeekeeCZ
Consultant
Consultant

Eliminate first 12 chars and .dwg (12+3 = 15)

 

$(substr,$(getvar,dwgname),12,$(-,$(strlen,$(getvar,dwgname)),15))

0 Likes