ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
EREtienne Rousseau10/05/2012

Hi,

I want to add multi-language descriptions to my SW weldment profiles. I am looking for a macro to scan a folder and add custom properties to all the .SLDLFP.

For exemple :

The ANSI Inch / Tube Square folder :

The first file is TS1.5x1.5 x 0.125.SLDLFP

By default there is a custom properties named "Description" and value "TS1,5x1,5 x 0,125"

I would love to create two more custom properties called Description_french and Description_english. I would just use a common Find / Replace windows function and replace the "TS" in the original Description properties by "Tube carré "+ "1,5x1,5 x 0,125" (leave everything already in the original description exept for "TS") for Description_french and "Tube Square "+"1,5x1,5 x 0,125" for the Description_english.

Origial TS1.5x1.5 x 0.125.SLDLFP file :

Custom properties                Value

Description                             TS1.5x1.5 x 0.125

New file :

Custom properties                Value

Description                             TS1.5x1.5 x 0.125

Description_french                 Tube carré 1.5x1.5 x 0.125

Description_english               Tube square 1.5x1.5 x 0.125

Can you help me ?

Thanks !