ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CMCheckcheck Master14/02/2011

Hi there !

I've created a macro who is looking for the filetype and for each filetype looking for existing custom and configuration specific properties, if they exist remember their value, delete all properties and create all necesary custom properties again.

This results in files with only the properties we need to get parts and assemblies on a drawing and BOM in four languages, NL, EN, DE and FR.

For parts and assemblies we created the rule that they didn't contain project specific properties, only the projectnumber in the  filename is project specific like 'P110XXX - Description( - PartNo)'.

The files are in the 'project folder' like 'X:\Projects 2011\Customergroup\P110XXX - Customer - Reference'.

When we like to reuse parts or assemblies in a new project whe use Pack and Go where it's easy to change the projectnumber and our files became project specific for the new project.

For drawings, besides the filename which is project specific, we need at least two project specific custom properties, Customer and Reference.

The macro is creating this properties based on the project folder wich contains Customer and Reference information.

Pack and Go the drawings to a new project folder will make the filenames project specific and running the macro will make Customer and Customer project specific.

The macro is useable for project specific and standard parts like 'STD PartNo - Description( - cfg)' and give some warnings/ information which filetype is being processed and which properties will be added.

Now I like to add some functionality to run the macro for each file in a specific project folder.

For example, when no file is loaded, the macro is telling me which is the current folder with a browse option to point to another folder and run the macro on all files without the need to open them, only read and change the properties.

Anyone ?

My tip for now: A great tool for add/ delete or changing custom and configuration specific properties is the 'Solidworks Custom Properties Manager ' see pic.

'This application will create, modify or delete specified custom properties on all files in the specified folder.  Files will be overwritten so it is strongly recommended to make a backup before proceeding.'