Creating Un nammed groups with VBA

Discussion in 'AutoCAD' started by DRW1975, Dec 12, 2004.

  1. DRW1975

    DRW1975 Guest

    I noticed this topic was discussed previously, as I found it in an old thread. Are the words of advice provided then still applicable to VBA for AutoCAD 2005?

    I've attached the old post below...

    Reply From: Thilak
    Date: Jun/04/00 - 22:53 (GMT-12:00)

    Re: Unnamed group?
    Corey,

    You need to use AsdkUnsupp2000.arx which can be found in the
    autodesk.autocad.customization newsgroup.

    Cheers,
    Thilak

    Thanks

    DRW
     
    DRW1975, Dec 12, 2004
    #1
  2. DRW1975

    Jeff Mishler Guest

    Nice job searching! However, I don't believe this is the case any longer. In
    R2002 I make use of the following code for anonymous groups:

    Dim group As AcadGroup
    Dim ents(0 To 1) As AcadEntity
    'Create anonymous group for line & text entities of the leader object
    Set ents(0) = Annotation
    Set ents(1) = Line
    Set group = ThisDrawing.Groups.Add("*")
    group.AppendItems (ents)
     
    Jeff Mishler, Dec 12, 2004
    #2
  3. DRW1975

    DRW1975 Guest

    Great! I'll try it out...
    The documentation on groups is very poor

    DRW
     
    DRW1975, Dec 12, 2004
    #3
  4. DRW1975

    DRW1975 Guest

    SUCCESS!!

    Thanks a lot.

    I am very excited about finally finding this discussion group! Finally people here who talk my language!

    DRW
     
    DRW1975, Dec 12, 2004
    #4
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.