Selection set filter

Selection set filter

Anonymous
Not applicable
616 Views
7 Replies
Message 1 of 8

Selection set filter

Anonymous
Not applicable
Anyone have a link or site displaying all the filter codes for selection sets?
0 Likes
617 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
F1
GROUP CODES

wrote in message news:5868060@discussion.autodesk.com...
Anyone have a link or site displaying all the filter codes for selection
sets?
0 Likes
Message 3 of 8

Anonymous
Not applicable
Sorry, but I don't see it in the help section. The only thing that I saw was XRecord object.
0 Likes
Message 4 of 8

Anonymous
Not applicable
wrote in message news:5869277@discussion.autodesk.com...
Sorry, but I don't see it in the help section. The only thing that I saw was
XRecord object.

did you look in developer help?
the menu depends a little on your version of acad but should be something
like:

Help|additional resources|developer help

from acad help:
under Group codes for entities

-1
APP: entity name (changes each time a drawing is opened)
not omitted

0
Entity type
not omitted

5
Handle
not omitted

102
Start of application-defined group

"{application_name" (optional)
no default

application-defined codes
Codes and values within the 102 groups are application-defined
(optional)
no default

102
End of group, "}" (optional)
no default

102
"{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors
group. This group exists only if persistent reactors have been attached to
this object (optional)
no default

330
Soft-pointer ID/handle to owner dictionary (optional)
no default

102
End of group, "}" (optional)
no default

102
"{ACAD_XDICTIONARY" indicates the start of an extension dictionary
group. This group exists only if an extension dictionary has been attached
to the object (optional)
no default

360
Hard-owner ID/handle to owner dictionary (optional)
no default

102
End of group, "}" (optional)
no default

330
Soft-pointer ID/handle to owner BLOCK_RECORD object
not omitted

100
Subclass marker (AcDbEntity)
not omitted

67
Absent or zero indicates entity is in model space. 1 indicates entity
is in paper space (optional).
0

410
APP: layout tab name
not omitted

8
Layer name
not omitted

6
Linetype name (present if not BYLAYER). The special name BYBLOCK
indicates a floating linetype (optional)
BYLAYER

347
Hard-pointer ID/handle to material object (present if not BYLAYER)
BYLAYER

62
Color number (present if not BYLAYER); zero indicates the BYBLOCK
(floating) color; 256 indicates BYLAYER; a negative value indicates that the
layer is turned off (optional)
BYLAYER

370
Lineweight enum value. Stored and moved around as a 16-bit integer.
not omitted

48
Linetype scale (optional)
1.0

60
Object visibility (optional): 0 = Visible; 1 = Invisible
0

92
Number of bytes in the proxy entity graphics represented in the
subsequent 310 groups, which are binary chunk records (optional)
no default

310
Proxy entity graphics data (multiple lines; 256 characters max. per
line) (optional)
no default

420
A 24-bit color value that should be dealt with in terms of bytes with
values of 0 to 255. The lowest byte is the blue value, the middle byte is
the green value, and the third byte is the red value. The top byte is always
0. The group code cannot be used by custom entities for their own data
because the group code is reserved for AcDbEntity, class-level color data
and AcDbEntity, class-level transparency data
no default

430
Color name. The group code cannot be used by custom entities for their
own data because the group code is reserved for AcDbEntity, class-level
color data and AcDbEntity, class-level transparency data
no default

440
Transparency value. The group code cannot be used by custom entities
for their own data because the group code is reserved for AcDbEntity,
class-level color data and AcDbEntity, class-level transparency data
no default

390
Hard-pointer ID/handle to the plot style object
no default

284
Shadow mode

0 = Casts and receives shadows

1 = Casts shadows

2 = Receives shadows

3 = Ignores shadows
0 Likes
Message 5 of 8

Anonymous
Not applicable
I am a little new to the whole help section. Please tell me how to access the developer's help section.
0 Likes
Message 6 of 8

Anonymous
Not applicable
this example filters all lines on layer "layer1"


Sub filterexample()
Dim mode As Integer
mode = acSelectionSetAll

Dim gpCode(0 To 1) As Integer ' 2 types of filters
Dim dataValue(0 To 1) As Variant '2 types of filter data
gpCode(0) = 0: dataValue(0) = "LINE" 'gpcode 0 is used for entity type first filter is to select all lines
gpCode(1) = 8: dataValue(1) = "Layer1" ' gpcode 8 used for entity layer second filter is everything on Layer1
Dim groupCode As Variant, dataCode As Variant
groupCode = gpCode: dataCode = dataValue
Set ssetObj = ThisDrawing.SelectionSets.Add("filtrthese")
ssetObj.Select mode, , , groupCode, dataCode
MsgBox "filter contains " & ssetObj.count & " objects"
End Sub whoops now i see you were just asking for a list of codes
0 Likes
Message 7 of 8

Anonymous
Not applicable
wrote in message news:5869360@discussion.autodesk.com...
I am a little new to the whole help section. Please tell me how to access
the developer's help section.

thought I did 🙂
depending on version...something like:
Help|additional resources|developer help

(menu items at top of acad window)
0 Likes
Message 8 of 8

Anonymous
Not applicable
Thanks for the replies 🙂
0 Likes