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

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

plbyrd
Explorer Explorer
137 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?

0 Likes
138 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