Results 1 to 2 of 2

Thread: selection set filter issues?

  1. #1
    Member
    Join Date
    2002-11
    Posts
    42
    Login to Give a bone
    0

    Default selection set filter issues?

    below is some code that selects objects that are on a specific layer. What code do I need to add for selecting only model space objects? I tried to use a set command to reference model space but this did not work. Any help is appreciated. I also want to take the model space selection set and create a block from the objects. Would i need to check the block table for the block if it exists in the drawing?
    Code:
    Sub scalebar()
       Dim sstext As AcadSelectionSet
       Dim entObj As AcadEntity
       Dim FilterType(0) As Integer
       Dim FilterData(0) As Variant
       Dim mode As Integer
       mode = acSelectionSetAll
       Set sstext = ThisDrawing.SelectionSets.Add("SS2")
       FilterType(0) = 8
       FilterData(0) = "G-TTLB-PLBK"
       sstext.Select mode, , , FilterType, FilterData
       sstext.Delete
    End Sub

  2. #2
    All AUGI, all the time
    Join Date
    2015-12
    Location
    Central Oregon
    Posts
    591
    Login to Give a bone
    0

    Default Re: selection set filter issues?

    For the Model/Paper space, add a filter for DXF code 67...0 is Model, 1 is Paper.
    And yes, you must check for the existence of a block name prior to creating a new one.

Similar Threads

  1. Selection filter
    By Pierre-Nelson NAVARRA in forum Revit - API
    Replies: 27
    Last Post: 2009-12-31, 07:29 PM
  2. Selection Filter
    By t1.shep in forum Revit Architecture - General
    Replies: 10
    Last Post: 2009-08-12, 01:15 AM
  3. Filter by selection
    By dmb.100468 in forum Revit MEP - Wish List
    Replies: 0
    Last Post: 2007-01-25, 04:04 PM
  4. Selection Filter set
    By avinash00002002 in forum AutoLISP
    Replies: 4
    Last Post: 2006-09-24, 07:45 AM
  5. Selection Filter
    By amy.stuart in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2005-07-24, 02:20 AM

Posting Permissions

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