- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi! Im fairly new to programing in Autocad and in my current employment Im at lokced down to using Autocad LT
Issue:
I need to autoincrese numbers when inserting block, its ment to be used designing firealarmsystems. I got the Diesel variable to work:
^c^c-insert;"SBF - Rökdetektor";\1;;\setvar;useri1;$M=$(if,$(=,$(getvar,USERI1),9),0,$(+,1,$(getvar,USERI1)));setvar;useri2;$M=$(if,$(=,$(getvar,USERI1),9),$(if,$(=,$(getvar,USERI2),9),0,$(+,1,$(getvar,USERI2))),$(getvar,USERI2))
The only thing I got working when trying to get the attribute right, is using fileds
%<\AcVar Useri2 >%%<\AcVar Useri1 >%
The problem is that regen blows that option out of the water and any suggestions to solve this as Im stuck.
Solved! Go to Solution.