Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 Error when adding blocks using selection

closed
nobody
AutoIncr (8)
9
2012-09-15
2010-07-15
irneb
No

After being asked which attribute to use, the command cancels with this code:
; error: bad argument type: lselsetp "ATTR-NAME"

Discussion

  • irneb
    irneb
    2010-07-15

    On line 1443 and 1444 of the LSP file a change is necessary. The variable ans was originally used to save the selection set, but on these lines it now gets a keyword - thus causing an error with a second block in the selection set. The lines should read:
    (if (setq str1 (getkword (strcat "\nWhich attribute do you want? [" str2 "]: ")))
    (setq lst (cons (vlax-vla-object->ename (setq ao (cdr (assoc str1 al2)))) lst)

    This will be available in the next release.