Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mouse click on xy plane

2 REPLIES 2
Reply
Message 1 of 3
brad.bylls
191 Views, 2 Replies

Mouse click on xy plane

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
2 REPLIES 2
Message 2 of 3
kandennti
in reply to: brad.bylls

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 

 

Message 3 of 3
brad.bylls
in reply to: kandennti

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report