Results 1 to 5 of 5

Thread: DXF Code 60 for Visibility

  1. #1
    Design Visualization Moderator stusic's Avatar
    Join Date
    2004-10
    Location
    Denver, Colorado
    Posts
    1,515
    Login to Give a bone
    0

    Default DXF Code 60 for Visibility

    Hey All,

    I'm trying to omit objects that are on a frozen layer from my selection set. I thought using DXF Code (60 . 0) would do the trick, but it doesn't work. How can I easily omit objects on off or frozen layers?

    Code:
    (setq sel
                (ssget "_X"
                    (list
               '(60 . 0)
               '(0 . "INSERT")
               ;'(2 . "Balloon*")
                       '(66 . 1)
                (cons 2 (strcat "`*U*," blk))
                        (cons 410 (getvar 'CTAB))
                    )
                )
              )
    Thanks a heap

  2. #2
    Design Visualization Moderator stusic's Avatar
    Join Date
    2004-10
    Location
    Denver, Colorado
    Posts
    1,515
    Login to Give a bone
    0

    Talking Re: DXF Code 60 for Visibility

    Research has answered my own question. Apparently, DXF code 60 is only used for shading/rendering/etc. To select only visible objects, I need to use

    (ssget "_A") instead of (ssget "_X").

    Thanks tho!

  3. #3
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: DXF Code 60 for Visibility

    Keep it in mind. It can also be handy to temporarily hide a selection of objects in the middle of a routine to get them out of the users way without changing them to an off/frozen layer.

  4. #4
    All AUGI, all the time
    Join Date
    2010-10
    Posts
    535
    Login to Give a bone
    0

    Default Re: DXF Code 60 for Visibility

    stusic. I have nothing against members jumping from one forum to another But

    Replace Block w/ DB, Modify DB's Properties <--- one of your post

    There are kind hearted members that took time to look into your Q/Request, you could at least reply or acknowledge the time that was put into suggesting/advice/writing a code for you.

    I'm just saying....

  5. #5
    Design Visualization Moderator stusic's Avatar
    Join Date
    2004-10
    Location
    Denver, Colorado
    Posts
    1,515
    Login to Give a bone
    0

    Default Re: DXF Code 60 for Visibility

    dgorsman:
    Are you talking about the code 60 to hide objects mid-routine, or (ssget "_A")?

    pbejse:
    I'm sorry, I didn't realize there was a response to that. Since in that thread I'm trying to deal with the manipulation of dynamic blocks on insert and this thread I'm trying to make a selection set of only-visible objects, I didn't consider that cross-posting - so I'm not sure how "jumping from one forum to another" really applies, but I do appreciate your help there and realize everyone, here, there, and on every forum on the internet, is a volunteer, and that any time they spend on me could be spent elsewhere (probably doing better things). That project has been put on the back burner, so I haven't looked into it much more, but when I get a chance, I'll take a look at the code. I'll go ahead and thank you on that side though.

    Thanks to both of you,

    -stu

Similar Threads

  1. Allow Other Code Compilers for ARX Code
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2013-02-10, 08:06 AM
  2. Static mass information in CC and Item code visibility
    By zguljo in forum Inventor - General
    Replies: 1
    Last Post: 2009-02-23, 12:38 PM
  3. Insert vbscript code has not code
    By buzz in forum AMEP General
    Replies: 3
    Last Post: 2008-02-09, 03:08 AM
  4. Convert VBA code to VB code
    By Robert Platt in forum VBA/COM Interop
    Replies: 20
    Last Post: 2007-08-15, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •