Macros Library

 

I’ll be adding adding macros here which might be helpful to SOLIDWORKS Users.

Everyone is welcome to use these macros under following Disclaimer:  —————————————————–‘

Following macro(s) are provided as is. No claims, support, refund, safety net, or warranties are expressed or implied. By using these macro(s) and/or their codes in any way whatsoever, the user and any entities which the user represents, agree to hold the authors free of any and all liability. Free distribution and use of the codes in other free works is welcome. You may redistribute it and/or modify it on the condition that this header is retained. All other forms of distribution (i.e., not free, fee for delivery, etc) are prohibited without the expressed written consent by the authors. Use at your own risk!
‘ ——————————————————————————

All macros will be updated/made for SOLIDWORKS 2015. In case you’re running a different version then update/correct the macro reference as suggested here (don’t worry on the fact that video is for fixing missing library error but check the process to update your macro library): Fix-Update SOLIDWORKS Macro References

Link to SOLIDWORKS Macro/Program Files

SOLIDWORKS Yacht Tutorial Free eBook

15 Comments

  1. Carlos

    Mr. Gupta,

    What would be in your opinion a good place to start learning how to integrate Excel and SolidWorks APIs? I’m currently looking into automating some design tasks at my office and my biggest question is how to link a part dimension to a cell in Excel. Hope you can provide some guidance.

    Reply
    1. Deepak Gupta (Post author)

      Hi Carlos,

      You can refer to Keith Rice (an API expert) website CadSharp for your learning needs.

      For Excel/SW API, have you rather looked into using external design table? You can drive a part dimension from excel or get part dimensions exported to Excel using either SW API or Excel API.

      Deepak

      Reply
  2. Pradeep

    Hi Deepak, Do you have a macro to list all the configurations of a part/assembly in a table along with the required custom properties in a drawing? (Drawing will always have the one view of part/assembly for which configuration need to be listed)

    Reply
  3. Carl S

    Do you have a macro to batch print and save as pdf a list of drawings (exit drawing without save)? or all drawings in a directory

    Reply
    1. Deepak Gupta (Post author)

      Carl, sorry for a late response. You can use the task scheduler to take care of that. No need for a macro.

      Reply
  4. barghav

    need a macro to open part drawing

    Reply
    1. Deepak Gupta (Post author)

      Is the drawing in same folder/location as the model?

      Reply
  5. barghav

    I need a macro that can change dimensions of any part file.please help me with this

    Reply
  6. Pingback: SOLIDWORKS Program: Remove Part Appearances | Boxer's SolidWorks Blog

  7. Pingback: SOLIDWORKS Macro: Export Sheet Metal Part Configurations as DWG | Boxer's SolidWorks Blog

  8. Pingback: Color Calculator | Boxer's SolidWorks Blog

  9. Pingback: SOLIDWORKS Macro: Zoom to Sheet | Boxer's SolidWorks Blog

  10. Pingback: SOLIDWORKS Macro: Open Model From Active Drawing | Boxer's SolidWorks Blog

  11. Pingback: SOLIDWORKS Macro: Start Sketch on Default Planes | Boxer's SolidWorks Blog

  12. Pingback: SOLIDWORKS Program: Batch Delete Design Table Parts | Boxer's SolidWorks Blog

I'll be happy to know your views and opinions as this will help me to improve. You can share them as comments below.

%d bloggers like this: