Creating an UNNAMED group with LISP

Discussion in 'AutoCAD' started by Bill DeShawn, Jan 24, 2005.

  1. Bill DeShawn

    Bill DeShawn Guest

    How would you do it?
    (command "-group"
    doesn't have an option for unnamed - not even an undocumented option. A
    group is not an object, right? So you can't make one with entmake, right?
    How do you do it?
     
    Bill DeShawn, Jan 24, 2005
    #1
  2. Bill DeShawn

    Joe Burke Guest

    Bill,

    Assuming you have a selection set assigned to symbol ss, this should do it.

    (command "-group" "" "*" "" ss "")

    Joe Burke
     
    Joe Burke, Jan 24, 2005
    #2
  3. Bill DeShawn

    Bill DeShawn Guest

    Thanks! Here's what it says in help:
    Create
    Creates a group.

    Enter a group name or [?]: Enter a name or enter ?

    Group names can be up to 31 characters long and can include letters,
    numbers, and special characters dollar sign ($), hyphen (-), and underscore
    (_) but not spaces. AutoCAD converts the name to uppercase characters.

    Enter a group description: Enter up to 64 text characters or press
    ENTER

    Select objects:



    Therefore, there is no documentation on unnamed groups (at least not where
    it's supposed to be). I sent a comment to Autodesk..
     
    Bill DeShawn, Jan 24, 2005
    #3
  4. Bill DeShawn

    Bill DeShawn Guest

    Aha! It worked like a charm. I made a routine to mask dimension text in a
    way similar to the way TEXTMASK.LSP does to TEXT and MTEXT (groups it,
    too!). It works on only one dimension at a time right now. If I think it's
    necessary later on, I'll fix it for multiple selection.
     
    Bill DeShawn, Jan 25, 2005
    #4
  5. Bill DeShawn

    Joe Burke Guest

    Bill,

    You're welcome. Glad I could help.

    Joe Burke
     
    Joe Burke, Jan 25, 2005
    #5
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.