xarial / codestack

Library of SOLIDWORKS API, SOLIDWORKS PDM API, VBA and Desktop code examples, applications macros and tutorials.
https://www.codestack.net
MIT License
186 stars 70 forks source link

Macro Request - Custom Properties #135

Open Barestark opened 2 years ago

Barestark commented 2 years ago

The bottom line: update/create custom properties in assembly components while also updating custom properties in the assembly at the same time OR by reading them from the assembly .

The setup: I have assemblies of sheet metal parts with multiple configurations. Most components within the assembly also have multiple configurations. I need to modify the assemblies for specific jobs and add a job number and job name for tracking/identification. For each component of the assembly, the job number gets prefixed to the permanent part number, and the "job name" custom property is updated. That is a lot of repetitive updating of custom properties! Can a macro take care of this job?
The assembly configuration typically gets set once per job which also sets the component configurations.

artem1t commented 2 years ago

Check Properties+