How to switch a view while in a command

How to switch a view while in a command

jackmrdoctor
Contributor Contributor
234 Views
1 Reply
Message 1 of 2

How to switch a view while in a command

jackmrdoctor
Contributor
Contributor

XYZ basePoint = uidoc.Selection.PickPoint("Please pick a base point.");
XYZ targetPoint = uidoc.Selection.PickPoint("Please pick a target point.");

i want to pick a Target point in other view. but it seems not wroking.

jackmrdoctor_0-1713759650107.png

is there other way to go around this issue.
Thank you

0 Likes
235 Views
1 Reply
Reply (1)
Message 2 of 2

longt61
Advocate
Advocate

I think the quoted document answered your question. You do not change view DURING pick operation, you change view BETWEEN 2 pick operations. Something like:

XYZ basePoint = uidoc.Selection.PickPoint("Please pick a base point.");
uidoc.Document.ActiveView = Get_the_view_you_want();
XYZ targetPoint = uidoc.Selection.PickPoint("Please pick a target point.");