Storing extra data about parts seems like it should be a common practice when writting macros for SolidWorks. Surprisingly I have found this to be very challenging and though I have tried multiple different approaches I still run into problems. I am writting an add-in specialized for the cabinet manufacturing industry. There are a couple specialties to this industry which may be compounding my problem:
- Design is typically top-down so users work out of the assembly model
- Multi-bodied parts are heavily used
- Mirrored parts typcially are created with the "mirrored" configuration option
I need to store data that is unique to each configuration of each body and store and retrieve this data from the assembly model.
Before I go into great detail regarding the approaches I have tried and the problems I have encountered I am curous to find out if there is anyone who can tell me some "Best Practices", share code samples or who can share their own problems and solutions.
SolidworksApi macros