Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

sketchObject.cleanAll()

MichaelT_123
Advisor

sketchObject.cleanAll()

MichaelT_123
Advisor
Advisor

Hi TF360,

 

Could you consider adding a function

  • sketchObject.cleanAll()

to the sketch object, which would greatly simplify and accelerate sketch management processes.

cleanAll() means delete effectively all sketches' entities. The name is not important as any meaningful alternative will do (eraseAll(), emptyIt(), ...). 

 

Regards

MichaelT

 

 

MichaelT
0 Likes
Reply
204 Views
2 Replies
Replies (2)

BrianEkins
Mentor
Mentor

I'm curious about what workflow you're doing where you want to delete everything. Can you not just delete the sketch and create a new one?

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes

MichaelT_123
Advisor
Advisor

Hi Mr Ekins,


#

I'm curious about what workflow you're doing where you want to delete everything. Can you not just delete the sketch and create a new one?

#

I am doing just that.
Since my pre-school, school, .... uni... I like using erasers. I also notice that many more advanced devices/software like tablets, whiteboards, etc. are equipped with such basic/generic function. Why not the F360 sketch?
The EraseAll() function is better looking (in the code) than a few lines implementing delete&create a new sketch. It could also be faster and leave a cleaner (memory) environment.

Regards
MichaelT

 

 

MichaelT
0 Likes