Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Determine if a sketch is open, and which one (if any)

plbyrd
Explorer Explorer
103 Views
1 Reply
Message 1 of 2

Determine if a sketch is open, and which one (if any)

plbyrd
Explorer
Explorer

I'm developing a script that needs to know if a sketch is active, and if so, which one.  What API calls do I make for this?

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

BrianEkins
Mentor
Mentor

The Application.activeEditObject should provide what you need. It returns whatever is currently active, which can be a sketch.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Reply
Reply
1 Like