1 Reply Latest reply on Feb 28, 2015 3:14 AM by Keith Rice

    Exporting Data from Database to SolidWorks Properties

    Nelson Ouzts

      I want to import values inputted into a Microsoft
      Access
      database into a table made from the Properties in
      my SolidWorks assembly.  Do I need to learn API to do this?  …Or
      maybe there's another way?

        • Re: Exporting Data from Database to SolidWorks Properties
          Keith Rice

          Yes, you will either need to learn how to use the Document Manager API or the SolidWorks API to do this.

           

          The DM API lets you access custom properties with having SolidWorks installed or opened. It also requires a knowledge of VB.NET and stand-alone creation in Microsoft Visual Studio, so while it can offer greater performance and flexibility, it is considerably more difficult for someone new to programming. (The DM API can be used while SolidWorks is open, but this can cause problems if you're not very careful, plus if you have SolidWorks already open, then why not just use the SolidWorks API which is much simpler?)

           

          Using the SolidWorks API, the document will need to be opened and you will need to use the ICustomPropertyManager interface.

           

          Keith

          SolidWorks API Tutorials