.NET

Reply
Active Contributor
naresh
Posts: 42
Registered: ‎05-20-2005
Message 1 of 5 (226 Views)

How to get Mtext,AcDbText values from selection set

226 Views, 4 Replies
06-26-2006 11:04 PM
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
Distinguished Contributor
Alexander Rivilis
Posts: 303
Registered: ‎09-26-2004
Message 2 of 5 (226 Views)

Re: How to get Mtext,AcDbText values from selection set

06-27-2006 01:27 AM in reply to: naresh
No problem. Iterate through selection set and select only MTEXT and TEXT. Or select MTEXT and TEXT with filter.
Active Contributor
naresh
Posts: 42
Registered: ‎05-20-2005
Message 3 of 5 (226 Views)

Re: How to get Mtext,AcDbText values from selection set

06-27-2006 01:36 AM 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
Distinguished Contributor
Alexander Rivilis
Posts: 303
Registered: ‎09-26-2004
Message 4 of 5 (226 Views)

Re: How to get Mtext,AcDbText values from selection set

06-27-2006 01:41 AM in reply to: naresh
0 - DXF code 0 - type of entity
8 - DXF code 8 - layer name
Active Contributor
naresh
Posts: 42
Registered: ‎05-20-2005
Message 5 of 5 (226 Views)

Re: How to get Mtext,AcDbText values from selection set

06-27-2006 01:47 AM 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community