• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Posts: 12
    Registered: ‎06-08-2005

    Coordinates of Vertices of Region-Objects in AutoCAD

    184 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
    Please use plain text.
    *Albert Szilvasy

    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
    Please use plain text.
    Contributor
    Posts: 12
    Registered: ‎06-08-2005

    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.
    Please use plain text.
    *Albert Szilvasy

    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.
    Please use plain text.