Pick any point from active view2D

Pick any point from active view2D

Anonymous
Not applicable
536 Views
2 Replies
Message 1 of 3

Pick any point from active view2D

Anonymous
Not applicable

Hey, 
I wonder if it is possible to get a point from the plan of the current active 2Dview. Which point it is do not matter it is for calculation only. I don't want to use the PickPoint() method because i don't want the user to select the point.

(I will be able to give the solution to my other post if i get this one !)

Thanks !

0 Likes
Accepted solutions (1)
537 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

you can use the view's crop box corners and its direction vectors / crop box transform to do this fairly easily.

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

GIve this a try:

 

 

XYZ AnyPointOnActiveView= new XYZ(doc.ActiveView.get_BoundingBox(doc.ActiveView).Max.X - doc.ActiveView.get_BoundingBox(doc.ActiveView).Min.X, doc.ActiveView.get_BoundingBox(doc.ActiveView).Max.Y - doc.ActiveView.get_BoundingBox(doc.ActiveView).Min.Y, 0);

 

 

Thanks & Regards

Sanjay Pandey