litdanax.blogg.se

Find sheet metal template folder solidworks api vba
Find sheet metal template folder solidworks api vba











SolidWorks has a COM-based API allowing users to automate its functions with VBA MACROS, VSTA MACROS (VB.NET/C) and Add-ins (C/VB.NET/C++). Have you found a variable that’s not in the table? Email us at and we’ll add it. Questions tagged solidworks SolidWorks is a 3D mechanical CAD (computer-aided design) program that runs on Microsoft Windows. However, the ultimate goal of my macro is to find the length of each bend, do a calculation. I am thinking the bend lines sketch under the flat pattern feature would be the best place to find this.

FIND SHEET METAL TEMPLATE FOLDER SOLIDWORKS API VBA HOW TO

SOLIDWORKS uses custom properties with this name in routing BOMs.Īngle along the longitudinal axis between two cut endsĬheck out our other article to learn how to use these variables. Ideally the code would be robust enough to consider all different types of sheet metal features.edge bends, swept flanges, converted solids, etc. It uses Example: “SW-Total Bounding Box These routing properties are not really variables.The bounding box introduced in SOLIDWORKS 2018 uses properties from the feature.Sometimes it works without the second name in brackets, sometimes it does not.You may need to write the variable name a second time between brackets. API examples that not only show of to use various functions of the API (Application Programming Interface) but also provide useful macros for everyday use.We’ll add it to this post and ask SOLIDWORKS to fix it. Please let us know when you found a place where capitalization is important.

find sheet metal template folder solidworks api vba

Select the variable from a dropdown or check official SOLIDWORKS documentation for its spelling.

  • Check other capitalizations if you cannot get your property to work.
  • Usually “LENGTH” and “length” both work fine.
  • The variable names are sometimes case-sensitive.
  • SOLIDWORKS makes regular improvements, so please let us know if you found a missing property.
  • Not all variables are in every dropdown menu.
  • How to work with custom properties and variablesįor more background information on custom properties and cut lists, check out this article.

    find sheet metal template folder solidworks api vba

    Some can only be used for sheet metal or weldment bodies. Most can be used with parts and assemblies. I've been searching and haven't been able to find quite what I'm looking for.

    find sheet metal template folder solidworks api vba

    Below is every single variable that you can use within SOLIDWORKS custom properties and notes.











    Find sheet metal template folder solidworks api vba