----------------------------------------------------------------------------' Preconditions:' 1. Read the SolidWorks Document Manager API Getting Started' topic and ensure that the required DLLs are registered.' 2. Copy and paste this module into a VB.NET console application' in Microsoft Visual Studio.' 3. Ensure that the specified document exists' (or point to another document).' 4. Add the Solidworks.Interop.swdocumentmgr.dll reference' to the project:' a. Right-click the solution in Solution Explorer.' b. Select Add Reference.' c. Click the Browse tab.' d. Load:' \api\redist\Solidworks.Interop.swdocumentmgr.dll' 5. Add the following references to the project: System.Drawing.dll,' stdole.dll, Microsoft.VisualBasic.Compatibility.VB6.dll.' 6. Substitute with your SolidWorks' Document Manager license key.' 7. Compile and run this program in Debug mode.'' Postconditions: Inspect the Output Window and the code to see' how the API is used.'---------------------------------------------------------------------------Imports SolidWorks.Interop.swdocumentmgrImports Microsoft.VisualBasic.Compatibility.VB6Imports stdoleImports System.Drawing.ImageModule Module1
swClassFact = CreateObject("SwDocumentMgr.SwDMClassFactory") swDocMgr = swClassFact.GetApplication("") 'Specify license key swDoc = swDocMgr.GetDocument(sDocFileName, nDocType, False, nRetVal) : Debug.Assert(SwDmDocumentOpenError.swDmDocumentOpenErrorNone = nRetVal) swCfgMgr = swDoc.ConfigurationManager
Sycode License Keygen
Download Zip: https://miimms.com/2vGd4S
2ff7e9595c
Comments