How to get Mtext,AcDbText values from selection set

How to get Mtext,AcDbText values from selection set

Anonymous
Not applicable
1,069 Views
4 Replies
Message 1 of 5

How to get Mtext,AcDbText values from selection set

Anonymous
Not applicable
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
0 Likes
1,070 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
No problem. Iterate through selection set and select only MTEXT and TEXT. Or select MTEXT and TEXT with filter.
0 Likes
Message 3 of 5

Anonymous
Not applicable
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
0 Likes
Message 4 of 5

Anonymous
Not applicable
0 - DXF code 0 - type of entity
8 - DXF code 8 - layer name
0 Likes
Message 5 of 5

Anonymous
Not applicable
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
0 Likes