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

plbyrd
Explorer

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?

0 Likes
Reply
74 Views
1 Reply
Reply (1)

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
1 Like