Mouse click on xy plane

Mouse click on xy plane

brad.bylls
Collaborator Collaborator
550 Views
2 Replies
Message 1 of 3

Mouse click on xy plane

brad.bylls
Collaborator
Collaborator

In the api, is it possible to activate the xy plane and have the user click randomly on the screen to create a 3Dpoint that can be used for sketches?

Brad Bylls
0 Likes
551 Views
2 Replies
Replies (2)
Message 2 of 3

kandennti
Mentor
Mentor

Hi @brad.bylls .

 

For the easy way, you can use UserInterface.selectEntity to select the element.


Return Value is a Selection Object, but it is the position where you click the mouse when Selection.point Property selects.(Point3D)

 

I think you can create sketch points directly.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-37f1c588-48b4-4cd3-8df2-37c94d4ad3d1 

 

0 Likes
Message 3 of 3

brad.bylls
Collaborator
Collaborator

I don't want to select an object.

I want to create a point away from any object (somewhere off in space on the xy plane) so that the user can see what is being created.

He will then move or constrain it with a joint as needed.

Thank you.

 

Brad

Brad Bylls
0 Likes