ZsZs
Computer
- May 8, 2007
- 30
I must be to write Pack 'n Go with API.
It is difficult problem (for me)...
I get the references with the SldWorks::GetDocumentDependencies2() function.
It is working... I get the all references from assembly... (sub-assembly and part, both ok...)
I replace with the references the SldWorks::ReplaceReferencedDocument() function.
It's working too... BUT the SldWorks::IGetDocumentDependenciesCount2() (and GetDocumentDependencies2() ) don't able to use the inside references of Part.
I'm thought that I use the Document Manager by the SwDMDocument5::GetAllExternalReferences2() that I get the references of part document.
The Document Manager not working... we will upgrade to SW2008 and after it I will examine this fact newly.
My questions have: Are a alternate method for I access (and replace) the references of part document.
I try without (replace only asm and prt files,) but it's poor - many references have the part... and crashed without replacing its.
I search (if possible) an another method, that I get the references in part files.
Regards,
ZsZs.
It is difficult problem (for me)...
I get the references with the SldWorks::GetDocumentDependencies2() function.
It is working... I get the all references from assembly... (sub-assembly and part, both ok...)
I replace with the references the SldWorks::ReplaceReferencedDocument() function.
It's working too... BUT the SldWorks::IGetDocumentDependenciesCount2() (and GetDocumentDependencies2() ) don't able to use the inside references of Part.
I'm thought that I use the Document Manager by the SwDMDocument5::GetAllExternalReferences2() that I get the references of part document.
The Document Manager not working... we will upgrade to SW2008 and after it I will examine this fact newly.
My questions have: Are a alternate method for I access (and replace) the references of part document.
I try without (replace only asm and prt files,) but it's poor - many references have the part... and crashed without replacing its.
I search (if possible) an another method, that I get the references in part files.
Regards,
ZsZs.