.NET

Reply
Contributor
joc007
Posts: 12
Registered: ‎06-08-2005
Message 1 of 4 (260 Views)

Coordinates of Vertices of Region-Objects in AutoCAD

260 Views, 3 Replies
09-14-2005 03:58 AM
Hello,

I want to handle Region-Objects in AutoCAD. One issue is, I want to read the coordinates of the vertices. When I start an Iterator (with VBA or C#), I can’t detect an order, in which the vertices are covered.

Does anybody know, in which order the vertices are covered? It would be very helpful!

Thanks,
Jochen
*Albert Szilvasy
Message 2 of 4 (260 Views)

Re: Coordinates of Vertices of Region-Objects in AutoCAD

09-16-2005 03:42 PM in reply to: joc007
What iterator are you talking about?

Albert

wrote in message news:4955678@discussion.autodesk.com...
Hello,

I want to handle Region-Objects in AutoCAD. One issue is, I want to read the
coordinates of the vertices. When I start an Iterator (with VBA or C#), I
can't detect an order, in which the vertices are covered.

Does anybody know, in which order the vertices are covered? It would be very
helpful!

Thanks,
Jochen
Contributor
joc007
Posts: 12
Registered: ‎06-08-2005
Message 3 of 4 (260 Views)

Re: Coordinates of Vertices of Region-Objects in AutoCAD

09-19-2005 02:31 AM in reply to: joc007
The problem is as follows:
We are iterating over all entities in a drawing and on finding a region we explode it. What we get back from the explode method is an array of AcadLine objects. But if we iterate over this array the AcadLine objects are not, at least to our concern, returned in any particular order. Is this true, or do we just missing something?

The reason we want to know the exact order is that we are trying to convert the region into a polyline of the exact same shape.

Thanks for any help.
*Albert Szilvasy
Message 4 of 4 (260 Views)

Re: Coordinates of Vertices of Region-Objects in AutoCAD

09-19-2005 09:01 PM in reply to: joc007
That maybe so but it shouldn't prevent you from doing what you'd like to do.
You simply have to order them based on coincident vertices.

Albert

wrote in message news:4959935@discussion.autodesk.com...
The problem is as follows:
We are iterating over all entities in a drawing and on finding a region we
explode it. What we get back from the explode method is an array of AcadLine
objects. But if we iterate over this array the AcadLine objects are not, at
least to our concern, returned in any particular order. Is this true, or do
we just missing something?

The reason we want to know the exact order is that we are trying to convert
the region into a polyline of the exact same shape.

Thanks for any help.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.