Clear all properties

Hello 

 

I don't know if the question has already been asked, I don't think

I would like to have a button to delete all the properties of the open document in solidworks and in all configurations

I've already made macros on excel, but now I don't see how to do it and by recording I can't do it

2 Likes

Hello look in the API help

 

The CustomPropertyManager object , which is obtained from the

there are code samples in the API help

You can edit them and use CustomPropertyManager.Getnames to loop across all properties

and CustomPropertyManager.Delete2 to delete them

 

There are also examples on the Deletes2 api

 

Good luck...

8 Likes

See this page among others

 https://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CC4QFjAA&url=http%3A%2F%2Fwww.lynkoa.com%2Fforum%2F3d%2Fmacro-pour-suppress-toutes-les-proprietes-personnalisees&ei=RcQiU-OIKMjI4gSmmoHgAQ&usg=AFQjCNGx6PetcyDEfwM3E6mGXXDuObk_pA&sig2=9ShmmrOwUtQujsR5PCw76A&bvm=bv.62922401,d.bGE

@+ ;-)

1 Like