×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Get references from part file

Get references from part file

Get references from part file

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources