Code Red => AutoLISP (Vanilla / Visual) => Topic started by: renkor on September 01, 2018, 03:17:25 PM
Title: Routine Lisp help
Post by: renkor on September 01, 2018, 03:17:25 PM
Hello,
I have this code, which at the beginning was made to increment 1 attribute from a block, but now i need to increment 3 attributes from the same block. Any help? Block is attached.
(foreach att (vlax-invoke part 'getattributes) (vla-put-textstring att (_padzeros (itoa i) il)))
Title: Re: Routine Lisp help
Post by: renkor on September 05, 2018, 11:36:57 AM
Hello,
thanks for replying. it gives an error "Select path; error: no function definition: _INSBLOCK"
Title: Re: Routine Lisp help
Post by: ronjonp on September 05, 2018, 12:21:48 PM
Just tested and works fine here?
Title: Re: Routine Lisp help
Post by: renkor on September 05, 2018, 01:22:50 PM
Hello,
I retested it and works very good. Thanks a lot.
Title: Re: Routine Lisp help
Post by: renkor on September 07, 2018, 12:05:00 PM
Hello,
In the block to align, I added some movement parameters to displace the mtext and attributes inside the block if i need it. But when I test the code again, the movement parameters of new blocks are not copied. Does it have to be recode for that?