luca.rgn
Guest
Good morning.
I'm trying to figure out how diesel expressions work in autocad and I'm doing some tests.
the main problem is with substr.
esempio: file name: xxxxxx-xxxx-xxxx-xxxxxx name layout: Developedthe goal is to replace the characters of the file name from number 18 to 21 with the layout name so I wrote this$(substr,$(getvar,"dwgname"),1,17)$(getvar,"ctab")$(substr,$(getvar,"dwgname"),.this expression is working and fine, but since I want to take only characters from 18 to 21 of the file name does not work.
writing this:$(substr, $(getvar "dwgname"),18,21)It takes all the characters from18th onwards.
Can you explain why?
I'm trying to figure out how diesel expressions work in autocad and I'm doing some tests.
the main problem is with substr.
esempio: file name: xxxxxx-xxxx-xxxx-xxxxxx name layout: Developedthe goal is to replace the characters of the file name from number 18 to 21 with the layout name so I wrote this$(substr,$(getvar,"dwgname"),1,17)$(getvar,"ctab")$(substr,$(getvar,"dwgname"),.this expression is working and fine, but since I want to take only characters from 18 to 21 of the file name does not work.
writing this:$(substr, $(getvar "dwgname"),18,21)It takes all the characters from18th onwards.
Can you explain why?