Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JBJack Brooker13/08/2018
Hi all
Pretty new to using the Solidworks API - trying to get my head around stuff
Not looking for somebody to do this for me, I want to learn - I'm looking for advice on how to create a standalone application which does this:
- Select a part in PDM, and get all associated sub-references
- For each reference, check if it is broken or lost. If it is then -
- Cut down reference path to the string, and search specific locations (or the entire vault) for that filename
- List returned files, and select one based on specific criteria (Search filename for most up to date revision)
- If it is able to do this successfully, automatically replace the reference with this part
- If it cannot, save the search results for later
- Once it has run through each part, go through and list each reference, and what it is being replaced with. For references it was unable to replace, get the search results list and allow the user to then select a returned value for each part, or leave the reference as broken.
Again - not looking for somebody to do this for me, but looking for advice on what the best methods would be to handle this task. I have experience with VBA & VB.NET so this is what i'm using to program it.
Currently I am looking into these to try and learn and understand how the API works for my uses:
- 2017 SOLIDWORKS API Help - Create a Task that Finds Approved Files Example (VB.NET)
- 2017 SOLIDWORKS API Help - Create a Task that Finds Files in Workflow States Example (VB.NET)
- 2017 SOLIDWORKS API Help - Add Custom File Reference Example (VB.NET)
- 2017 SOLIDWORKS API Help - Batch Get and Set Reference Variables Example (VB.NET)
Any other help would be greatly appreciated
Thanks