TheSwamp

Code Red => .NET => Topic started by: pjm8765 on May 20, 2019, 05:27:18 AM

Title: Object names for selection sets
Post by: pjm8765 on May 20, 2019, 05:27:18 AM
I could have sworn I have seen a reference that lists all of the major object names that can be provided as a filter rule for a selection set:

Code: [Select]
typedArray.SetValue(new TypedValue((int)DxfCode.Start, "INSERT"), 0);

So, an INSERT is obviously a block reference ( :thinking:) and CIRCLE and LINE are also obvious.  But what about a dimension and the rest of the objects?  Any pointers, much appreciated.
Title: Re: Object names for selection sets
Post by: Keith Brown on May 20, 2019, 09:07:52 AM
I believe that you just use the DXFName.  That is the name that pops up when you List the object at the command line.
Title: Re: Object names for selection sets
Post by: huiz on May 20, 2019, 09:09:06 AM
You can use the LIST command in AutoCAD to check the object DXF name.
Title: Re: Object names for selection sets
Post by: huiz on May 20, 2019, 09:12:15 AM
Here is a DXF Reference file:


https://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf (https://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf)


Different objects are described from page 61.
Title: Re: Object names for selection sets
Post by: pjm8765 on May 20, 2019, 10:50:51 AM
Thanks very, that reference will come in very handy.