.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get Mtext,AcDbText values from selection set

4 REPLIES 4
Reply
Message 1 of 5
naresh
813 Views, 4 Replies

How to get Mtext,AcDbText values from selection set

Hello
How to get Mtext,AcDbText values from selection set by using C#.net I am getting the other entities but I am facing the problem while retrieving Mtext,AcDbText
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: naresh

No problem. Iterate through selection set and select only MTEXT and TEXT. Or select MTEXT and TEXT with filter.
Message 3 of 5
naresh
in reply to: naresh

Hello Alexander Rivilis
I have done it
short[] filterType = {0, 8};
object[] filterData = {"MTEXT,TEXT,AcDbText,LINE,POLYLINE,LWPOLYLINE,CIRCLE","TerminationPoints"};

but I didnt get that concept of "short[] filterType = {0, 8};"
what is this here in VB its not necessary actually I hav done it by using some web help but what is that short[] and {0,8} this I couldnt understand
will please explain it
Message 4 of 5
Anonymous
in reply to: naresh

0 - DXF code 0 - type of entity
8 - DXF code 8 - layer name
Message 5 of 5
naresh
in reply to: naresh

but both the things we r giving in filterData
like
object[] filterData = {"MTEXT,TEXT,AcDbText,LINE,POLYLINE,LWPOLYLINE,CIRCLE","TerminationPoints"};
here MTEXT is type and TerminationPoints is a layer
then
0 - type of entity
8 - layer name
what is this in filterType
I am new in C#.net

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost