API-finding references without opening the assembly

Discussion in 'SolidWorks' started by TOP, Nov 9, 2006.

  1. TOP

    TOP Guest

    Does anyone know a way to find references without opening an assembly?
     
    TOP, Nov 9, 2006
    #1
  2. Does anyone know a way to find references without opening an assembly?
    Yes : SldWorks::GetDocumentDependencies2
     
    Philippe Guglielmetti, Nov 9, 2006
    #2
  3. TOP

    Juanjo Guest

    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, Nov 9, 2006
    #3
  4. TOP

    Juanjo Guest

    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
     
    Juanjo, Nov 9, 2006
    #4
  5. TOP

    TOP Guest

    Wasn't that new in 2007?

     
    TOP, Nov 9, 2006
    #5
  6. TOP

    TOP Guest

    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.
     
    TOP, Nov 10, 2006
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.