Does anyone know a way to find references without opening an assembly?
API-finding references without opening the assembly
Nov 09, 2006
5 Replies
Yes : SldWorks::GetDocumentDependencies2
TOP ha escrito:
Yes, It is possible also without SolidWorks. There is a library: SolidWorks Document Manager API that make it possible. This is a library that all PDM systems uses to manage SolidWorks files.
ListOfFiles = SwDMDocument5.GetAllExternalReferences2 ( pSrcOption, brokenRefVar)
Input: (ISwDMSearchOption) pSrcOption Pointer to the SwDMSearchOption object
Output: (VARIANT) brokenRefVar VARIANT of type SafeArray of the statuses of the any broken external references as defined in swDmReferenceStatus (see Remarks)
Output: (VARIANT) ListOfFiles VARIANT of type SafeArray of the names of the external references used in this document
TOP ha escrito:
Yes, It is possible also without SolidWorks. There is a library: SolidWorks Document Manager API that make it possible. This is a library that all PDM systems uses to manage SolidWorks files.
ListOfFiles = SwDMDocument5.GetAllExternalReferences2 ( pSrcOption, brokenRefVar)
Input: (ISwDMSearchOption) pSrcOption Pointer to the SwDMSearchOption object
Output: (VARIANT) brokenRefVar VARIANT of type SafeArray of the statuses of the any broken external references as defined in swDmReferenceStatus (see Remarks)
Output: (VARIANT) ListOfFiles VARIANT of type SafeArray of the names of the external references used in this document
Juanjo
Wasn't that new in 2007?
Juanjo wrote:
Philippe,
The one thing this lacks is the ability to figure out which configuration of the reference is being used. But it was a big help.
Philippe Guglielmetti wrote:
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required