Does anyone know a way to find references without opening an assembly?
- posted
16 years ago
Does anyone know a way to find references without opening an assembly?
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:
PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.