Cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Line2D object reference from Drawing View

Valued Contributor
Valued Contributor

Hi All,

 

I have added few line2d objects in my drawing view by activating the drawingview.sheet.

 

But I'm not able to add dimensions to those Line2D. The dimensions are getting placed to its corresponding sheet coordinates.

 

Is there any method or way to find the reference of Line2D or get Line2D object from the drawing view?

Like the way we have for DVLine2D. As passing the reference for DVLine2D makes the dimension to be placed at exact locations for DVLine2D objects.

 

Thanks in advance. 

 

1 REPLY 1

Re: How to Get Line2D object from Drawing View

Valued Contributor
Valued Contributor

Hi Guys,

 

I found the solution to the issue.

 

We have to use the method "GetReferenceToGraphicMember2" or "GetReferenceToGraphicMember" present in DrawingView members, in order to get reference for user-drawn 2D graphic objects like line2d or circle2d. And the reference which you get as an output can then be used to dimension the user-drawn 2D graphic objects.

 

Hope it helps someone in need later on.