See the top rated post in this thread. Click here

Results 1 to 4 of 4

Thread: Checking for entities in a layout tab?

  1. #1
    100 Club Ferroequine's Avatar
    Join Date
    2000-12
    Posts
    145
    Login to Give a bone
    0

    Default Checking for entities in a layout tab?

    Does anyone know if there is a way to programatically check with LISP to see if there are any entities on a given layout tab?

    TIA

  2. #2
    I could stop if I wanted to
    Join Date
    2003-05
    Posts
    335
    Login to Give a bone
    1

    Default Re: Checking for entities in a layout tab?

    Yes you can do that. What type of entities are you looking for? What parameters are you trying to fing. The easiest way is probably using ssget:

    Code:
    (ssget (list (cons 410 "layout name ") (cons 0 "entity type ") ))

  3. #3
    100 Club Ferroequine's Avatar
    Join Date
    2000-12
    Posts
    145
    Login to Give a bone
    0

    Default Re: Checking for entities in a layout tab?

    Hi Will,

    Yes, that would work. We sometimes get drawings that have extra layout tabs that are not actually used for anything (I think A2K and up default to having two layout tabs and a model tab), and this allows me to do a bit of cleanup.

    Thanks!

  4. #4
    I could stop if I wanted to
    Join Date
    2003-05
    Posts
    335
    Login to Give a bone
    1

    Default Re: Checking for entities in a layout tab?

    Keep in mind that although you can delete all layout tabs and their information, "Layout 1" will be recreated by autocad because it cannot be deleted permanently.

Similar Threads

  1. Layout tabs names change when layout renamed in SSM
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2013-01-20, 05:07 AM
  2. 2009: Differentiate text entities from mtext entities
    By samirjoshi in forum AutoCAD General
    Replies: 4
    Last Post: 2012-01-16, 11:08 AM
  3. Replies: 3
    Last Post: 2008-01-17, 01:08 PM
  4. Replies: 1
    Last Post: 2006-04-23, 06:16 PM
  5. Replies: 0
    Last Post: 2005-07-08, 06:05 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
  •