using SelectionFilter to select feature lines (Elementkante)

using SelectionFilter to select feature lines (Elementkante)

reithinger
Advocate Advocate
678 Views
6 Replies
Message 1 of 7

using SelectionFilter to select feature lines (Elementkante)

reithinger
Advocate
Advocate

IHi,

I have this selectionFilter in my Code

// Filter für Linien jeglicher Art
         AcDataService.TypedValue[] tvPolyline =
         {
                new AcDataService.TypedValue(-4, "<or"),
                new AcDataService.TypedValue(0, "ARC"),
                new AcDataService.TypedValue(0, "CIRCLE"),
                new AcDataService.TypedValue(0, "ELLIPSE"),
                new AcDataService.TypedValue(0, "LINE"),
                new AcDataService.TypedValue(0, "MLINE"),
                new AcDataService.TypedValue(0, "*POLYLINE"),
                new AcDataService.TypedValue(0, "RAY"),
                new AcDataService.TypedValue(0, "SPLINE"),
                new AcDataService.TypedValue(0, "XLINE"),
                new AcDataService.TypedValue(0, "TRACE"),
                new AcDataService.TypedValue(0, "SOLID"),
                new AcDataService.TypedValue(0, "FACE"),
                new AcDataService.TypedValue(0, "AECC_ALIGNMENT"),
                new AcDataService.TypedValue(0, "AECC_FEATURELINE"),
                new AcDataService.TypedValue(-4,"or>")
            };

I need to add the featureLine, but it doesn't.

Have you got any Idea or it's impossible ?

Thanks for your response

0 Likes
Accepted solutions (2)
679 Views
6 Replies
Replies (6)
Message 2 of 7

Jeff_M
Consultant
Consultant
Accepted solution
Use "AECC_FEATURE_LINE"
Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 7

reithinger
Advocate
Advocate

Tanks !!

It works.

How can i find the right property ?

0 Likes
Message 4 of 7

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

if you don't know the internal name of an object (dxf-name) you can use this LISP statement:

(ssget (car (entsel)))

The result in the command-line then shows the properties of this object, for code 0 you'll see the name that can be used for selection filtering.

 

AN_ 20221208_085511.png

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 7

_gile
Consultant
Consultant

@Alfred.NESWADBA  a écrit :

Hi,

 

if you don't know the internal name of an object (dxf-name) you can use this LISP statement:

(ssget (car (entsel)))

The result in the command-line then shows the properties of this object, for code 0 you'll see the name that can be used for selection filter


The LISP expression should be:

(entget (car (entsel)))

Or, to directly get the DxfName:

(cdr (assoc 0 (entget (car (entsel)))))


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 6 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

@_gile  ... thank you, don't know what I was thinking about while writing something like that 😉

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 7 of 7

Jeff_M
Consultant
Consultant

Or, just use the ACAD LIST command: 

Command: LI LIST
Select objects: 1 found

Select objects:
AECC_FEATURE_LINE Layer: "C-TOPO-FEAT"
Space: Model space

Jeff_M, also a frequent Swamper
EESignature
0 Likes