Here's what I'd like to do. Since I know that every SLDDRW has an
identically named CNC program, I can go through all the files in a
directory, look for the CNC programs, strip off the extension,
location the SLDDRW with the same name in PDMWorks, and add the CNC
program to PDMWorks as an attachment to the SLDDRW. I can do most of
that, until the part where I need to add the link between documents.
Let's say I have a PDMWorks document. I can use this code to find all
the attachments:
dim oDoc as PDMWorks.PDMWDocument
dim oLink as PDMWorks.PDMWLink
dim oLinks as PDMWorks.PDMWLinks
oDoc = oConnection.GetSpecificDocument("foo.SLDDRW")
oLinks=oDoc.Attachments
for Each oLink in oLinks
Debug.print (oLink.Name)
next oLink
However, I can't seem to find anything that lets me add a link to the
oLinks collection. There's something in the PDMWConnection.CheckIn
method, but it seems to apply only to MS Excel and Word documents.
So, here's my question. How can I add the link between two documents
in PDMWorks 2006 SP5.0?
Thanks,
Chris