Author Topic: Automation Error. Invalid argument index in Item (after moving text in block)  (Read 1282 times)

0 Members and 1 Guest are viewing this topic.

damn

  • Mosquito
  • Posts: 15
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.
« Last Edit: June 30, 2020, 02:25:37 AM by damn »

d2010

  • Bull Frog
  • Posts: 326
Can you share your progrme. Lisp? Else No, please you send to myP.M. the downloading of your-programe.ascii.lsp