Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get references from part file

Status
Not open for further replies.

ZsZs

Computer
May 8, 2007
30
0
0
HU
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.
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top