API-finding references without opening the assembly

Does anyone know a way to find references without opening an assembly?

Reply to
TOP
Loading thread data ...

Yes : SldWorks::GetDocumentDependencies2

Reply to
Philippe Guglielmetti

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

Reply to
Juanjo

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

Reply to
Juanjo

Wasn't that new in 2007?

Juanjo wrote:

Reply to
TOP

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:

Reply to
TOP

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.