Get Point X Y 2D

I use microstation 08.11.09.578, DGN 2D V7 Upgrade V8

I want to get the 2D coordinates of the element, I see the manual but don't see the method 'Point2dFromXY'

Point2dFromXY Method
Returns a point with specified x and y components. 

Syntax
Point2d = object.Point2dFromXY (X, Y) 

Parents
  • Hi,

    Jon wrote good answer, some extra comments:

    I want to get the 2D coordinates of the element

    Element? What element? Be developer, be precise!

    Element is e.g. (reference) Attachment. Has it coordinates? No. Or what about cell? It has coordinates (origin / insertion point), but maybe you are interested in vertices coordinates of lines inside the cell?

    No detail answer can be provided until more details is shared.

    I see the manual but don't see the method 'Point2dFromXY'

    Did you try to search manual and this forum?

    When I searched for "get line vertices", as example of more specific requirement, in MicroStation VBA help, I found immediately "Highlighting the Closest Segment" example, that can be used to learn how to do it. And when I searched for "get line vertices vba" in this forum, many discussions were found.

    Regards,

      Jan

Reply
  • Hi,

    Jon wrote good answer, some extra comments:

    I want to get the 2D coordinates of the element

    Element? What element? Be developer, be precise!

    Element is e.g. (reference) Attachment. Has it coordinates? No. Or what about cell? It has coordinates (origin / insertion point), but maybe you are interested in vertices coordinates of lines inside the cell?

    No detail answer can be provided until more details is shared.

    I see the manual but don't see the method 'Point2dFromXY'

    Did you try to search manual and this forum?

    When I searched for "get line vertices", as example of more specific requirement, in MicroStation VBA help, I found immediately "Highlighting the Closest Segment" example, that can be used to learn how to do it. And when I searched for "get line vertices vba" in this forum, many discussions were found.

    Regards,

      Jan

Children