This tool uses JavaScript and much of it will not work correctly without it enabled.
![]() Solidworks Pdm Support How To Tackle ItNot looking for somebody to do this for me, id much rather get advice on how to tackle it and do it myself so I can troubleshootimprove it myself later.Currently my problem is that I have legacy files containing the revision number in the filename (dont ask), and im attempting to transfer the data over to our vault, which was previously just in the default windows system. Moving things over is fine, and ive created a dispatch script which removes the revision from the filename, and sets this to a variable in the file called Issue. The issue comes from the fact that often a large number of the references in the part (sometimes upwards of 200) will still contain the revision in the path, so have to be manually re-referenced. Solidworks Pdm Support Professional Content TaggedThe ideal for me in this situation is to have this process: For every reference a part has - Check that the reference contains both characters and Change the reference path from C:test123456.sldprt to C:test.sldprt Been looking into using this method in VB.net - but unclear as to how to implement it into PDM Thanks for any advice No one else has this question Mark as assumed answered Outcomes Visibility: APIMacros 1135 Views Last modified on Jul 2, 2018 4:48 AM Tags: legacy data Content tagged with legacy data pdm professional Content tagged with pdm professional pdm 2018 Content tagged with pdm 2018 pdm api Content tagged with pdm api Categories: API This content has been marked as final. Show 6 comments 6 Replies Name Email Address Website Address Name (Required) Email Address (Required, will not be published) Website Address Artem Taturevych Jul 2, 2018 5:17 AM Mark Correct Correct Answer With SOLIDWORKS PDM API you can only replace paste-as-reference references, not native CAD references. The best way to approach this is using the Document Manager API and 2016 SOLIDWORKS API Help - ReplaceReference Method (ISwDMDocument) method. To make this work you need to cache the file locally and check it out so you can update the references. With Document Manager API you do not need to open the file in SOLIDWORKS or have SOLIDWORKS installed. Take a look at this thread: Ultimate Guide For Getting Started With Document Manager Like Show 2 Likes 2 Actions Jack Brooker Artem Taturevych on Jul 2, 2018 7:01 AM Mark Correct Correct Answer Thanks for the reply, that sounds like a much easier method for updating references - on a slightly different note, what program is generally used for writing script for PDM Im assuming the majority would use Visual studio Thanks Like Show 0 Likes 0 Actions Artem Taturevych Jack Brooker on Jul 2, 2018 7:45 AM Mark Correct Correct Answer You can use any com-compatible language (C, C, VB.NET) with MS Visual Studio. You can also use VB6 (i.e. IDE for macro in SW or Office). You can also use vbscript or powershell (just in Notepad) as shown in this video: Using SOLIDWORKS and SOLIDWORKS PDM Professional APIs from vbscript and PowerShell - YouTube Like Show 0 Likes 0 Actions Wayne Matus Artem Taturevych on Aug 16, 2018 9:23 AM Mark Correct Correct Answer Artem, Great videos I know VB, but trying to learn Powershell and C. I was able to reproduce the PDM Powershelll script from the video, but having issues with the early binding Powershell script for SOLIDWORKS using C. Could you please provide that script so I can figure out what I am doing wrong Like Show 0 Likes 0 Actions Ulf Stockburger Jul 2, 2018 6:58 AM Mark Correct Correct Answer Hi Jack Copy all files with the original file names and all directories 1:1 into the vault, check in the files and finally rename them with IEdmFile6.RenameEx. The PDM updates the references automatically. BiI SAP-PDM Like Show 1 Like 1 Actions Jack Brooker Ulf Stockburger on Jul 2, 2018 7:02 AM Mark Correct Correct Answer Thanks for the reply - Renaming files is something that im currently okay with, but if possible id rather have one function which can do everything so that is helpful thank you. Like Show 0 Likes 0 Actions Related Content Retrieving data. Recommended Content Macro Inspection Dim Location Export pictures of solidworks projects Sheet Metal Box Helix Form - How do I make the sides Wrap is not the same shape as my sketch Is it possible to cut a solid object with an imported mesh from an STL file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |