API IsFastener

Hello

Does anyone know if there is a macro to apply an IsFastener = 1 property in a part so that you don't have to do the complete manipulation on each part?

Thank you in advance

Hello

If you have the MyCad suite, there is BatchProperties that can do this for you.

 

Fred

1 Like

Hello

To change the IsFastener property of SW components, use the sldsetdocprop utility that is installed by default when SOLIDWORKS is installed. It can be found in the folder:

"C:\Program Files\SolidWorks Corp\SolidWorks\Toolbox\data utilities\sldsetdocprop.exe"

Then select the components folder or component and change the property to "yes"
 

See you.

3 Likes

Thank you for your answers.

I don't have the MyCAD suite

@remrem, for your solution, the IsFastener property must already be present in the properties of your part, I want to create it

Hello

To see if it suits you, you need a coin to be open in SW before launching the macro.

Kind regards


setcustomproperties.swp
2 Likes

That's exactly it!! Thank you very much

1 Like