TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: damn on June 30, 2020, 01:09:03 AM

Title: Automation Error. Invalid argument index in Item (after moving text in block)
Post by: damn on June 30, 2020, 01:09:03 AM
Hey all, taken me couple of hours to isolate this error "Automation Error. Invalid argument index in Item".  Turns out I moved some text only in a block that has visibility state. Bloody fickle if you ask me, the block is wrong and needs cleaning up. Anyone know the fix?

Code crashing here.....       (setq  scalebar (vla-item
          (_getblock '(2 410) (list "SCALEBAR" layname))
           0
        ))

Scalebar being the block I edited.
Title: Re: Automation Error. Invalid argument index in Item (after moving text in block)
Post by: d2010 on July 02, 2020, 06:01:41 AM
Can you share your progrme. Lisp? Else No, please you send to myP.M. the downloading of your-programe.ascii.lsp