ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
DSDarren Smith21/06/2024

Can anybody help?

I have opened an existing Solidworks part in Vb.Net using the code "oDoc = swApp.OpenDoc6(etc, etc)". This works OK!!!

Now....

I want to open another part (temporarily), if the other part is a derived part, and get its part number and description.

Please see the code below....

    Sub GetDerivedPartNumber(oDoc)
       FileName = oDoc.GetExternalReferenceName

       If FileName <> "" Then
swApp = Application.SldWork