Help anonimous group

Discussion in 'AutoCAD' started by Gustavo Guidi, Sep 29, 2004.

  1. What's the sintaxix for an anonimous group ?

    Using :

    (vla-add (vla-get-groups
    (vla-get-activedocument (vlax-get-acad-object))
    )
    "*"
    )
    gives me an error

    ; error: Automation Error. Invalid argument Name in Add method

    Any idea?

    Thanks
     
    Gustavo Guidi, Sep 29, 2004
    #1
  2. Gustavo Guidi

    SpeedCAD Guest

    Hi...

    Hmmmm... It work well for me...

    (defun addGrupo (nombre)
    (vla-add (vla-get-groups
    (vla-get-activedocument (vlax-get-acad-object))
    )
    nombre
    )
    ) ;_defun

    (addGrupo "Hola") or (addGrupo "*"), it wok well...

    Look:
    Command: (addgrupo "Hola")
    #<VLA-OBJECT IAcadGroup 00feb5a4>

    Command: (addgrupo "*")
    #<VLA-OBJECT IAcadGroup 00fe89e4>
     
    SpeedCAD, Sep 29, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.