Search found 6 matches

by Emra
Tue Jun 07, 2022 5:38 pm
Forum: API
Topic: PDM API Drawing Node
Replies: 2
Views: 514

Re: PDM API Drawing Node

A cheaters way that I have used before is to get the file path of the part as a string and then change the .sldprt extension to .slddrw. As long as the part and drawing are in the same folder it works fine. If not it breaks down. Thanks for the reply! I might try that as a shortcut - it should work...
by Emra
Tue Jun 07, 2022 3:45 pm
Forum: API
Topic: PDM API Drawing Node
Replies: 2
Views: 514

PDM API Drawing Node

Hi everyone, I frequently want to get a handle for the drawing of a specific part (or vice versa) in order to sync PDM variable values, but there doesn't seem to be a clean way to get a drawing hook (similar to the "Open Drawing" button for a given part) through API. Anyone want to tell me...
by Emra
Tue Dec 21, 2021 7:27 pm
Forum: API
Topic: Custom Save Macro
Replies: 10
Views: 2028

Re: Custom Save Macro

One possibility is to go through all the features, and add the ones with type "Sketch" to a selection list. The help documentation has a pretty good example of how to do this here that you could more or less copy/paste into your macro: https://help.solidworks.com/2020/english/api/sldworksa...
by Emra
Mon Oct 04, 2021 5:31 pm
Forum: API
Topic: Set Revision through API
Replies: 2
Views: 675

Re: Set Revision through API

A couple things if you don't mind a little "spit-balling": - What is revVarName? If I understand correctly this needs to be "Name of revision number component as specified in the administration tool." According to https://help.solidworks.com/2019/english/api/epdmapi/EPDM.Interop...
by Emra
Mon Oct 04, 2021 3:46 pm
Forum: API
Topic: Set Revision through API
Replies: 2
Views: 675

Set Revision through API

Hello, I have an API that is supposed to be setting the PDM vault revision counter, and runs without error, but does not actually write the new revision value. Background: I'm trying to set revisions for a vault of legacy data where the rev is stored in the custom properties via external PDM and PLM...
by Emra
Tue Aug 03, 2021 11:27 pm
Forum: Welcome
Topic: Be Active - please...
Replies: 69
Views: 18787

Re: Be Active - or else...

Hi all!

Solidworks user and accidental company CAD/PDM admin here. I'm a long-time lurker of the old SW forums, and am very excited to see this new site since the old one died. Also I am definitely a real person and not a bot; please don't kick me?