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
    N32° 32' 19.08", W-84° 52' 59.03"
    Posts
    1,272

    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
    Phillip Bradshaw
    Lead Pixel Pusher, Lucid Design Studio
    CAD Administrator, Heatcraft RPD

    A doctor can bury his mistakes but an architect can only advise his clients to plant vines. - Frank Lloyd Wright

  2. #2
    Design Visualization Moderator stusic's Avatar
    Join Date
    2004-10
    Location
    N32° 32' 19.08", W-84° 52' 59.03"
    Posts
    1,272

    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!
    Phillip Bradshaw
    Lead Pixel Pusher, Lucid Design Studio
    CAD Administrator, Heatcraft RPD

    A doctor can bury his mistakes but an architect can only advise his clients to plant vines. - Frank Lloyd Wright

  3. #3
    AUGI Addict
    Join Date
    2006-12
    Posts
    1,495

    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.
    If you are going to fly by the seat of your pants, expect friction burns.
    Windows XP is now over 10 years old, in software terms it makes Joan Collins look like the new kid on the block. - Statler
    Everyone else being wrong is not the same thing as being right.

  4. #4
    I could stop if I wanted to pbejse's Avatar
    Join Date
    2010-10
    Posts
    395

    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
    N32° 32' 19.08", W-84° 52' 59.03"
    Posts
    1,272

    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
    Phillip Bradshaw
    Lead Pixel Pusher, Lucid Design Studio
    CAD Administrator, Heatcraft RPD

    A doctor can bury his mistakes but an architect can only advise his clients to plant vines. - Frank Lloyd Wright

Similar Threads

  1. Drafting line visibility, plot pickbox visibility
    By siebenaler in forum AutoCAD Civil 3D - General
    Replies: 7
    Last Post: 2011-03-07, 02:39 PM
  2. Static mass information in CC and Item code visibility
    By zguljo in forum Inventor - General
    Replies: 1
    Last Post: 2009-02-23, 11:38 AM
  3. Insert vbscript code has not code
    By buzz in forum AMEP General
    Replies: 3
    Last Post: 2008-02-09, 02: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
  •