đī¸ Explanation of SOLIDWORKS API Object Model and object relations
4 items
đī¸ Automating assemblies using SOLIDWORKS API
8 items
đī¸ Using Callouts object for model annotation in SOLIDWORKS API
2 items
đī¸ SOLIDWORKS API Object Model class hierarchy diagram
Detailed explanation of relationships (class diagram) between classes and interfaces in the SOLIDWORKS API Objects Model
đī¸ Assembly components automation using SOLIDWORKS API
34 items
đī¸ Create C# stand-alone application for SOLIDWORKS API automation
Guide of how to connect to SOLIDWORKS application from out-of-process (a.k.a Stand-Alone) application (e.g. Windows Forms, Windows Console) using C# and Microsoft Visual Studio
đī¸ Getting started: Developing applications with SOLIDWORKS API
6 items
đī¸ Automating mates in assemblies using SOLIDWORKS API
4 items
đī¸ Code examples of creating geometrical primitives using SOLIDWORKS modeler API
6 items
đī¸ SOLIDWORKS Macro types - VBA (swp), SWBasic (swb), VSTA (dll)
This article explains the different types of macros supported by SOLIDWORKS (VBA, VSTA, SWBasic)
đī¸ Call function of SOLIDWORKS add-in object from stand-alone application or macro
Invoking function of SOLIDWORKS add-in from stand-alone application or macro (enabling add-in custom API)
đī¸ Create VB.NET Stand-Alone (exe) application for SOLIDWORKS
Guide for how to connect to SOLIDWORKS application from out-of-process (a.k.a Stand-Alone) application (e.g. Windows Forms, Windows Console) using VB.NET and Microsoft Visual Studio
đī¸ Automating drawings using SOLIDWORKS API
30 items
đī¸ Managing OLE Objects in models using SOLIDWORKS API
1 items
đī¸ Recording and editing macros in SOLIDWORKS
This article explains how to record the macro commands
đī¸ Using transformations in SOLIDWORKS API
4 items
đī¸ Call functions of SOLIDWORKS add-in via Running Objects Table (ROT)
Calling SOLIDWORKS add-in functions (add-in API) by registering an API object in the Running Object Table (ROT)
đī¸ How to develop add-ins for SOLIDWORKS automation via API
3 items
đī¸ Create C++ Stand-Alone (exe) application for SOLIDWORKS
Guide for how to connect to SOLIDWORKS application from out-of-process (a.k.a Stand-Alone) application (e.g. MFC, Win32 Console Application) using C++ and Microsoft Visual Studio
đī¸ Manipulating model views using SOLIDWORKS API
2 items
đī¸ Rendering custom 3D graphics with Open GL in SOLIDWORKS API
3 items
đī¸ Storing data in SOLIDWORKS models using API
3 items
đī¸ Features Manager Tree automation using SOLIDWORKS API
29 items
đī¸ In-Process invoking of SOLIDWORKS add-in API from out-of-process applications
Framework for calling the add-in API in-process form stand-alone applications or macros to gain maximum performance
đī¸ How to create stand-alone (exe) applications using SOLIDWORKS API
4 items
đī¸ Working with geometry (IModeler) using SOLIDWORKS API
29 items
đī¸ How to utilize SOLIDWORKS API methods within the scripts
3 items
đī¸ Performing entity selection using SOLIDWORKS API
12 items
đī¸ Adding graphical elements to model graphics view using SOLIDWORKS API
3 items
đī¸ Working with sketch using SOLIDWORKS API
14 items
đī¸ Working with dimensions using SOLIDWORKS API
8 items
đī¸ Importing and exporting files using SOLIDWORKS API
10 items
đī¸ Managing System Options And User Preferences using SOLIDWORKS API
2 items
đī¸ Tables (BOM, General, Revision etc.) automation using SOLIDWORKS API
11 items
đī¸ Installation of SOLIDWORKS add-ins, macros and stand-alone
2 items
đī¸ Working with Notes using SOLIDWORKS API
5 items
đī¸ Automating Motion Study using SOLIDWORKS API
1 items
đī¸ Automation Sheet Metal parts using SOLIDWORKS API
5 items
đī¸ Managing cut-list bodies using SOLIDWORKS API
6 items
đī¸ Configuring document appearance using SOLIDWORKS API
3 items
đī¸ Tracking objects by temp and persistent ids in SOLIDWORKS API
4 items
đī¸ Utilizing Macro Features in SOLIDWORKS API
8 items
đī¸ Working with part materials using SOLIDWORKS API
3 items
đī¸ How to use Accessors section in SOLIDWORKS API Help
Explanation of accessors section in API Help documentation which helps to find the way of accessing specific objects in SOLIDWORKS API
đī¸ VSTA Macro which activates feature manager tab via SOLIDWORKS API
Example demonstrates how to activate standard tabs (feature manager tree, property manager, configuration manager, DimXpert manager, display manager) in the feature manager view using SOLIDWORKS API
đī¸ Determine the type Of active document using SOLIDWORKS API
Example displays the message box of the type of the document currently active in SOLIDWORKS
đī¸ Add components to assembly using SOLIDWORKS API
Example Demonstrates 2 different ways to add component into the assembly tree (single component add or batch adding)
đī¸ Add dimensions to bend lines using SOLIDWORKS API
Example demonstrates how to add dimensions to bend lines in the drawing view of sheet metal flat pattern
đī¸ Macro to add display data marks to configuration used by the main SOLIDWORKS assembly
VBA macro to add display data mark for configurations used in Large assembly to be opened in Large Design Review Mode or eDrawings
đī¸ Add equation to dimension using SOLIDWORKS API
Example will modify the value of the selected dimension and sets its value to be equal to the equation
đī¸ Add mate between coordinate systems using SOLIDWORKS API
Macro adds coincident mate between 2 coordinate systems of 2 selected components
đī¸ Macro to add horizontal and vertical ordinate dimensions for holes in SOLIDWORKS drawings view
SOLIDWORKS VBA macro to add horizontal and vertical ordinate dimensions for all holes of the selected view relative to the bottom left vertex
đī¸ Add and read attributes with parameters to components using SOLIDWORKS API
Example adds attributes with string values as the parameters to the selected components
đī¸ Add smart dimension between two segments using SOLIDWORKS API
Example adds the dimension between 2 selected sketch segments
đī¸ Macro feature which adds watermark into SOLIDWORKS model
Adds the watermark feature (license) with custom message and name which cannot be deleted or edited
đī¸ SOLIDWORKS Add-Ins Troubleshooting: Issues And Resolutions
2 items
đī¸ Macro for extended advanced selections using SOLIDWORKS API
Macro adds additional selection criteria to the advanced selection tool allowing to select components which are excluded from bom, envelope, float etc.
đī¸ Align line along axis using SOLIDWORKS API
Example demonstrates how to align all sketch lines in the active sketch (add the sketch relation) with one of the selected options (along X, Y or Z)
đī¸ Macro animates switching of configurations using SOLIDWORKS API
Macro demonstrates how to create an animation from configurations to represents model history or sheet metal folding
đī¸ Selecting SOLIDWORKS Objects for API only
Example shows how to select the object for API purpose only (without graphics selection) preserving current user selections
đī¸ Managing system options (application level) using SOLIDWORKS API
6 items
đī¸ Load components presentation transforms from CSV file using SOLIDWORKS API
Example demonstrates how to load the transformation matrix for the components from the CSV file and apply it as a presentation transform
đī¸ Generate material variants configuration using SOLIDWORKS API
VBA macro to generate a series of configuration with a custom appearance
đī¸ Usage of assembly component transformation in SOLIDWORKS API
Example explains transformation of rotation and translation for components in the assembly
đī¸ Fix SOLIDWORKS macro issues with lightweight components in assembly or drawing
Fixing the Run-time Error '91' - Object variable or With block variable not set when macro is working with the components in the assembly
đī¸ Macro to assign random color to sketches in the document
VBA macro assigns random color to sketches in SOLIDWORKS parts or assemblies with an option to skip already assigned sketches and unabsorbed sketches
đī¸ Using attributes in SOLIDWORKS API to store data and selections
3 items
đī¸ Create a dynamic auto updatable date custom property in SOLIDWORKS file
VBA macro which creates a date custom property in SOLIDWORKS file in the specified format with an option to automatically update
đī¸ Set title as part number for new file using SOLIDWORKS API
VBA Macro to set title with automatically incremented number from the shared file using SOLIDWORKS API for new files
đī¸ Batch create feature folders in the active SOLIDWORKS document
VBA macro creates specified number of the feature folders with the specified prefix name in the active SOLIDWORKS part or assembly
đī¸ Batch export SOLIDWORKS models via vbScript
Example of batch exporting SOLIDWORKS documents from the vbScript
đī¸ Modify configuration parameters for components using SOLIDWORKS API
Example demonstrates how to modify parameters of multiple components in the specified configurations (e.g. suppression state) using SOLIDWORKS API
đī¸ Block model editing using SOLIDWORKS API
Example demonstrate different ways of disabling the model editing
đī¸ SOLIDWORKS macro to find the geometrical difference between parts
Diff tool to find the geometrical difference between multi-bodies parts using SOLIDWORKS API
đī¸ Macro gets extreme points on body using SOLIDWORKS API
Example will find the extreme points of the selected body in XYZ directions and create a sketch points
đī¸ Create body rotation animation using SOLIDWORKS API
VBA example to create a rotation animation of a selected body around Y axis using SOLIDWORKS API and temp bodies
đī¸ SOLIDWORKS macro to update referenced configuration from BOM tables
Macro will update the referenced configurations for all Bill of Materials (BOM) tables on the active drawing document using SOLIDWORKS API
đī¸ Render box grid with transparency using OpenGL and SOLIDWORKS API
Rendering grid of cubes with transparency using OpenGL and SOLIDWORKS API
đī¸ Bring document foreground (activate document) using SOLIDWORKS API
Example demonstrates how to bring the document selected by path to foreground (make active)
đī¸ VBA macro to capture SOLIDWORKS commands via API event handlers
Macro allows capturing SOLIDWORKS and user commands into the list box
đī¸ Catch new feature creation event from SOLIDWORKS API notification
Example listens for feature added event of the active part document and displays the message box
đī¸ Change apply appearance option in material using SOLIDWORKS API
Example demonstrates how to change the Apply Appearance option in the material options
đī¸ Change value of global variable in model using SOLIDWORKS API
Example demonstrate how to modify the value of the global variable by name in the equation manager
đī¸ SOLIDWORKS macro to change layer of selected objects in drawing using SOLIDWORKS API
Macro will move all selected objects in the drawing sheet to specified layer using SOLIDWORKS API
đī¸ SOLIDWORKS Macro to display callouts with diameters for edges
Macro will display the callouts with the diameter values of all selected circular edges in the 3D model
đī¸ Create rotational transformation of circular pattern via SOLIDWORKS API
Example reads the transform of the selected circular pattern and creates a temp preview of the pattern of the specified seed body by applying the same transform as in the circular pattern
đī¸ Remove all items from the layer in SOLIDWORKS model
VBA macro to remove all items (annotations, sketch segments, blocks etc) from the specified layer in SOLIDWORKS document
đī¸ Clear revision table and add new revision using SOLIDWORKS API
Example finds the revision table and removes all revisions and then adds new row with custom data
đī¸ Macro to close all SOLIDWORKS documents except active
Closes all opened documents except of an active one using SOLIDWORKS API
đī¸ Macro to collect all reference documents of assembly into a folder
VBA macro to collect all reference output files (e.g. DXF, PDF) from all folders into a single folder
đī¸ Macro to apply random colors to components in SOLIDWORKS assembly
VBA macro to apply random color to all components in the SOLIDWORKS assembly with an option to apply on a component or model level and group by custom property value
đī¸ Macro to colorize SOLIDWORKS sheet metal and weldment cut-list items
SOLIDWORKS VBA macro to colorize all the cut-list item bodies (sheet metal and weldments) based on the value of the custom property
đī¸ Combine identical components command in SOLIDWORKS BOM table
Macro to emulate combine identical components command in SOLIDWORKS BOM table
đī¸ Compare model views transformations using SOLIDWORKS API
Example demonstrates how to compare 2 model views (by orientation, translation and scale)
đī¸ SOLIDWORKS VBA macro to compose flat BOM table using API
Example demonstrates how to compose bill of materials from the assembly tree using SOLIDWORKS API
đī¸ Macro to change the Bill Of Materials options (Part Number source and children visibility) of SOLIDWORKS configuration
VBA macro which changes the Bill Of Materials part number source (configuration name, document name, parent name) and children display (show, hide, promote) options for all or active configuration in SOLIDWORKS document
đī¸ VBA macro to review SOLIDWORKS sheets and configurations
VBA macro which iterates all sheets and configurations of SOLIDWORKS file and activates each one by one
đī¸ Macro feature to configure model dimensions
VBA macro feature which allows to configure the dimensions of the model via custom user Form
đī¸ Fix issues with failed to connect to database or Excel in SOLIDWORKS macro
Fixing the error in the macro which connects to database (e.g. SQL, MySql, Oracle, MS Access etc.) or any other data source and doesn't read/write values or displays error
đī¸ Overview of SOLIDWORKS Assembly context and usage from API
Explanation of assembly contexts and the ways to transform the pointer form assembly context to the model context and vice-versa using SOLIDWORKS API
đī¸ SOLIDWORKS API to create surface loft feature via contours
Example demonstrates how to create surface loft feature from the contours as the profiles using SOLIDWORKS API
đī¸ Convert arc to circle by merging end points using SOLIDWORKS API
VBA macro to convert sketch arc to a sketch circle by adding the merge relation between start and end points using SOLIDWORKS API
đī¸ Convert meters to fraction inches using SOLIDWORKS API
VBA macro to convert value in system units (meters) to the fraction inches using SOLIDWORKS API
đī¸ Macro to copy SOLIDWORKS custom properties from cut-list to model
VBA macro to copy SOLIDWORKS custom properties from cut-list (sheet metal or weldment) to model or configuration
đī¸ Macro to copy SOLIDWORKS custom property from material to model
Macro demonstrates how to copy the specified custom property from the material database to the model custom property using SOLIDWORKS API and XML parsers
đī¸ Macro to copy file paths to all drawings of an assembly components using SOLIDWORKS API
VBA macro which copies all the referencing drawings paths of the components of the active assembly using SOLIDWORKS API
đī¸ Copy SOLIDWORKS file specific custom properties to configuration
Macro copies all the file specific properties into the properties of the active configuration
đī¸ Macro to copy path of SOLIDWORKS component to clipboard
Macro copies the path of the selected component in assembly or drawing into the clipboard using SOLIDWORKS API
đī¸ Copy custom properties from the drawing view to SOLIDWORKS drawing file
VBA macro to copy specified custom properties from the selected or default drawing view into the drawing properties
đī¸ count all selected components using SOLIDWORKS API
Macro counts all unique components selected in the assembly and displays the result in the commands bar
đī¸ SOLIDWORKS macro to create configuration with average dimension values
Macro will create child configuration where all the dimension will be set to average value based on the minimum and maximum values of the tolerance
đī¸ Create temp solid body box using SOLIDWORKS API and IModeler interface
VBA example to create a temp body by center point, direction and size using SOLIDWORKS API and IModeler interface
đī¸ Create and display b-spline curve using SOLIDWORKS API
VBA example demonstrates how to create and preview b-spline curve from the sample data using SOLIDWORKS API
đī¸ Create temp cylindrical sheet body using SOLIDWORKS modeler API
Example demonstrates how to create temp body of a cylindrical sheet
đī¸ Create elliptical swept temp body using SOLIDWORKS modeler API
Example demonstrates how to sweep the circular profile along elliptical path to create a temp body using SOLIDWORKS API and IModeler::CreateSweptBody method
đī¸ Create extruded slot temp body using SOLIDWORKS modeler API
Example demonstrates how to extrude the slot profile to create a temp body using SOLIDWORKS API and IModeler interface
đī¸ SOLIDWORKS macro to create and suppress features in new configurations
Macro create new configurations for all features selected in the feature tree and suppresses them one by one in the respective configuration using SOLIDWORKS API
đī¸ Create invisible attribute using SOLIDWORKS API
Example creates an invisible attribute and attaches to the selected object (entity or component)
đī¸ Create loft feature through selected sketches or curves feature using SOLIDWORKS API
VBA macro to create solid loft feature from selected sketch or curve features using SOLIDWORKS API
đī¸ Create selectable 3D bounding box sketch using SOLIDWORKS API
VBA macro which creates 3D bounding box sketch based on the SOLIDWORKS bounding box with an ability to select sketch segments
đī¸ Fix errors when creating sketch segments using SOLIDWORKS API
Fixing the inconsistency of sketch segments (line, arcs, etc) or sketch points creation in the macro
đī¸ Create temp spherical sheet body using SOLIDWORKS modeler API
Example demonstrates how to create temp body of a spherical sheet
đī¸ Create temp toroidal sheet body using SOLIDWORKS modeler API
Example demonstrates how to create temp body of a toroidal sheet
đī¸ Create And Run VSTA Macro (C# and VB.NET) in SOLIDWORKS
This article explains how to create a VSTA macro (C# or VB.NET) from the existing code and run it
đī¸ Creating C# add-in for SOLIDWORKS automation using API
Detailed guide of creating SOLIDWORKS add-in from scratch using C#
đī¸ Macro to create spline CSV file using SOLIDWORKS API
VBA macro to create spline in the active sketch from the points loaded from the CSV file using SOLIDWORKS API
đī¸ Import points cloud from CSV file into sketch via SOLIDWORKS API
Macro imports the points cloud from the specified CSV file into the active 2D or 3D Sketch using SOLIDWORKS API
đī¸ Managing Custom Properties using SOLIDWORKS API
13 items
đī¸ Save custom properties revisions into 3rd party storage store using SOLIDWORKS API
Saving custom properties revisions (snapshots) into document 3rd party storage store using SOLIDWORKS API
đī¸ Get type of cylindrical face using SOLIDWORKS API
Macro identifies the type of the selected simple cylindrical face (through all hole, blind hole or external hole) using SOLIDWORKS API based on the loops type
đī¸ Defeature Part (convert to dumb solid) using SOLIDWORKS API
Macro to convert all features in part to dumb solids (defeature part) and surfaces using SOLIDWORKS API
đī¸ Macro to delete all empty feature folders in SOLIDWORKS files
VBA macro deletes all empty feature folders in the SOLIDWORKS files (part or assembly)
đī¸ SOLIDWORKS Macro to delete feature folder with all children features
Macro allows to delete all of the features in the selected folder in one click using SOLIDWORKS API
đī¸ Delete all equations from SOLIDWORKS model using SOLIDWORKS API
Macro removes all of the equations (or optionally only broken equations) in the active model (part or assembly)
đī¸ Macro to delete all features which are in the rolled back state in SOLIDWORKS document
VBA macro finds and deletes all features below the rollback bar
đī¸ Get corresponding entities (faces, edges and vertices) in the derived part using SOLIDWORKS API
VBA macro demonstrates how to find the corresponding entities from the input part in the derived part using SOLIDWORKS API
đī¸ Save SOLIDWORKS drawing with detailing mode on and off
VBA Macro to toggle detailing mode on and off while saving
đī¸ Determine if selected face is hole or boss using SOLIDWORKS API
Example demonstrates how to identify if the selected cylindrical face in SOLIDWORKS part or assembly is internal (i.e. hole) or external (i.e. boss) using SOLIDWORKS API based on the normals of the face.
đī¸ Display assembly visualization page using SOLIDWORKS API
Example displays the page for Assembly Visualization page
đī¸ Render tetrahedron using OpenGL and handle view display modes using SOLIDWORKS API
VB.NET add-in for SOLIDWORKS to render the graphics of tetrahedron in different display modes (shaded, shaded with edges, hlr, hlv, wireframe)
đī¸ Managing user preferences of the document using SOLIDWORKS API
36 items
đī¸ Managing SOLIDWORKS documents via API
7 items
đī¸ Draw border of the active sheet on the specified layer
VBA macro example demonstrates how to draw a border on the active drawing sheet on the specified layer considering the sheet scale
đī¸ Selecting entities in drawing view using SOLIDWORKS API
Example demonstrates different approaches of selecting entities (e.g. edge, face, vertex) in the drawing views
đī¸ Create sketch segments in drawing view sketch using SOLIDWORKS API
Creating sketch points and sketch segments directly in the drawing view sketch area using SOLIDWORKS API
đī¸ Export Flat Pattern to DXF/DWG with Cleanup page using SOLIDWORKS API
VBA example which demonstrates how to export specified flat pattern to DXF/DWG with Cleanup dialog
đī¸ Edit VBA and VSTA macros in SOLIDWORKS
Editing existing VBA and VSTA macros in SOLIDWORKS
đī¸ Serialize file content in model 3rd party storage using SOLIDWORKS API
VB.NET example of usage of 3rd Party Storage (stream) to embed and retrieve file content using SOLIDWORKS API and XmlSerializers within the model document
đī¸ SOLIDWORKS macro to exclude selected bodies from cut-lists
Macro excludes the solid bodies selected from the graphics area or from the feature tree from weldment or sheet metal cut-list using SOLIDWORKS API
đī¸ Export flat patterns from SOLIDWORKS part or assembly components
VBA macro to export flat patterns from all components of the active assembly or active part
đī¸ Macro to export selected bodies to foreign format
VBA macro to export only selected bodies to foreign format (e.g. 3D xml, xaml, amf, 3mf)
đī¸ Export dimensions information from SOLIDWORKS drawing to CSV file
VBA macro to export dimensions information (name, position, location, zone, value, tolerance) from SOLIDWORKS drawing to the CSV file
đī¸ Macro to export selected sketch in SOLIDWORKS file to DXF/DWG file
VBA macro to export the selected 2D sketch in SOLIDWORKS part or assembly file to the DXF or DWG file
đī¸ Export SOLIDWORKS files using SOLIDWORKS API in shell script
Script allows exporting of the SOLIDWORKS file into the foreign format using command line
đī¸ Export assembly or part to IFC 2x3 or 4 using SOLIDWORKS API
Example in VBA to export active part or assembly document to IFC format (2x3 or 4) using SOLIDWORKS API
đī¸ Macro to export SOLIDWORKS file to multiple formats
VBA macro to export file (or optionally all configuration or drawing sheets) to multiple formats
đī¸ Macro to save active drawing as PDF file into selected output folder and close drawing
VBA macro which saves active SOLIDWORKS drawing as PDF file to a selected output folder and saves and closes the original drawing
đī¸ VBA macro to export sketch point coordinates to CSV file
VBA macro to export coordinates of sketch points from the selected sketch with an ability to convert coordinate to user units and into the model space
đī¸ VBA macro to export component positions to CSV via SOLIDWORKS API
This macro exports positions of components to an external CSV text file using SOLIDWORKS API
đī¸ Export flat pattern view in the drawing using VBA macro
VBA macro to export flat pattern views in the drawing active sheet to DXF or DWG or other format preserving the bend notes, annotations etc. using SOLIDWORKS API
đī¸ Export individual sheets from SOLIDWORKS drawing to PDF
VBA macro to export all sheets (or selected sheets) from multi-sheets drawing to individual PDF files
đī¸ Export part or selected component to STL using SOLIDWORKS API
Macro exports selected assembly component or part to stl format without the need of activating the document. Macro can optionally apply transformation to the exported STL to reorient the output
đī¸ Export SOLIDWORKS table to CSV using VBA macro
Macro exports selected table or specified tables (BOM, General Table, Revision etc.) into CSV format allowing to export with or without header preserving the special symbols like comma (,) and new line symbol using VBA macro
đī¸ Export all SOLIDWORKS document level options to Excel
Macro allows to export all document properties into excel format using SOLIDWORKS API and reflection
đī¸ Macro to create ISO curves for face using SOLIDWORKS API
Example demonstrates how to find specified number of iso-curves in the u and v bounds of the selected face using SOLIDWORKS API
đī¸ Handling pre and post close notifications using SOLIDWORKS API
Example demonstrates how to handle pre and post notification of file closing using SOLIDWORKS API
đī¸ Fill hole with temp body using SOLIDWORKS API
VBA example demonstrates how to use SOLIDWORKS modeler and create temp body to fill hole in the geometry
đī¸ Macro to find and delete specific notes in the SOLIDWORKS drawing
VBA macro to find and delete notes in all SOLIDWORKS drawing sheets based on the text, regular expressions or empty values
đī¸ Find features in the tree by type and/or name pattern using SOLIDWORKS API
VBA macro to find all or first feature in the Feature Manager tree which match specific feature type name or name pattern using SOLIDWORKS API
đī¸ Find and read the table in the SOLIDWORKS drawing by the value of the cell
VBA macro to find the table in the SOLIDWORKS drawing by the value in the specified cell and reading its data into the variable
đī¸ Find and select specific edge in the drawing view using SOLIDWORKS API
VBA macro to find and select specific edge from the underlying model in the drawing view using SOLIDWORKS API
đī¸ Find tables from drawing by type using SOLIDWORKS API
Find all tables (BOM, general, revision) from drawing sheets using SOLIDWORKS API
đī¸ Fix or float component in active or all configurations using SOLIDWORKS API
Example demonstrates a workaround for missing SOLIDWORKS API for fixing or floating the component in the active or all configuration
đī¸ Remove all mates and fix components in SOLIDWORKS assembly
VBA macro to remove all mates and fix all top level components in the active SOLIDWORKS assembly
đī¸ Macro to highlight/flash specific buttons in SOLIDWORKS toolbar
VBA macro demonstrates how to highlight/flash specific toolbar button by id in SOLIDWORKS toolbar
đī¸ Macro to flip alignment of the last inserted mate in SOLIDWORKS assembly
VBA macro which flips alignment (anti-aligned to aligned and vice-versa) for the last mate in the SOLIDWORKS assembly feature manager tree
đī¸ Run force mate command using SOLIDWORKS and Windows API
Example demonstrates how to run 'Force Mate' command for the mate with rebuild errors using the combination of SOLIDWORKS API and Windows API
đī¸ Example to format portions of the note text with different formats
VBA example to apply font effects and styles for different portions of the note in SOLIDWORKS document
đī¸ Application frame customization using SOLIDWORKS API
8 items
đī¸ Fix SOLIDWORKS macro which is using future version APIs
Fixing the macro which fails when run on old (not the latest) version of SOLIDWORKS and Run-time error '438' - object doesn't support this property or method or Run-time error '445' - object doesn't support this action error is displayed
đī¸ SOLIDWORKS macro feature to link and auto update general table to Excel
Macro allows to link and automatically update the general table to external Excel or text/CSV file using SOLIDWORKS API
đī¸ Get all visible components in the drawing view using SOLIDWORKS API
VBA macro to get all visible components in the drawing view (including sub-assemblies) using SOLIDWORKS API
đī¸ Find cut-list item from the sheet metal flat pattern using SOLIDWORKS API
VBA macro which finds the pointer to the cut-list feature from the selected flat pattern feature
đī¸ Extract selection from boss-extrude feature using SOLIDWORKS API
C# VSTA macro to extract selection references (from entity, end condition and direction references) from the selected boss-extrude feature using SOLIDWORKS API
đī¸ Finding the body bounding cylinder using SOLIDWORKS API
This example demonstrates how to get the bounding cylinder of the solid body using SOLIDWORKS API
đī¸ Get b-spline parameters from the selected edge using SOLIDWORKS API
Get parameters of b-spline curve (dimension, order, periodicity, control and knot points) from the edge selected in the graphics view using SOLIDWORKS API
đī¸ Get the pointer to component from name using SOLIDWORKS API
Example demonstrates how to get the pointer to the component at any level of the assembly from its full name
đī¸ Get center of gravity for the SOLIDWORKS component in assembly
VBA macro which demonstrate 2 approaches to calculate center of gravity of the component in the SOLIDWORKS assembly space
đī¸ Get the transformation matrix of coordinate system using SOLIDWORKS API
VBA macro to get the 4x4 transformation matrix from the selected coordinate systems and output the result in the immediate window
đī¸ Get parameters of face at centroid using SOLIDWORKS API
Example demonstrates how to find the face parameters (coordinate and normal) at the center of the face using SOLIDWORKS API
đī¸ VBA macro to get feature type names using SOLIDWORKS API
VBA macro which gets the type names of selected features using SOLIDWORKS API and displays the message box
đī¸ Get instance Id of assembly component using SOLIDWORKS API
Example extracts the component instance index from the component's name
đī¸ Script extract mass properties of file using SOLIDWORKS API
Example demonstrates how to extract mass properties form the specified file using vbScript and SOLIDWORKS API
đī¸ Get selected sketch segments info using SOLIDWORKS API
VBA macro to get the specific information from the selected sketch segments (line, arc, parabola, spline etc.) using SOLIDWORKS API
đī¸ Get the total length of segments in selected sketch using SOLIDWORKS API
C# example to calculate total length of all non construction geometry sketch segments in the selected sketch using SOLIDWORKS API
đī¸ Get bodies and materials from drawing view using SOLIDWORKS API
VBA macro to find bodies and their materials of the selected drawing view (including sheet metal flat pattern) using SOLIDWORKS API
đī¸ Get mass of bodies in drawing view using SOLIDWORKS API
C# VSTA macro example to find the total mass of all bodies in the selected drawing view using SOLIDWORKS API
đī¸ Get and select all visible components in assembly using SOLIDWORKS API
VBA macro example to get and select all visible components (not suppressed and not hidden) using SOLIDWORKS API
đī¸ Run VBA macro automatically on document load using SOLIDWORKS API
Macro runs VBA code (or another macro) automatically on file load using SOLIDWORKS API
đī¸ Run VBA macro automatically on document save using SOLIDWORKS API
Macro runs VBA code (or another macro) automatically on file save using SOLIDWORKS API
đī¸ Handle custom properties modification events (add, delete, change) using SOLIDWORKS API
Handling all events related to the modification of general or configuration specific custom properties from the SOLIDWORKS API. Workaround for the issue when AddCustomPropertyNotify, DeleteCustomPropertyNotify, ChangeCustomPropertyNotify events are not raised
đī¸ Run macro on new document creation using SOLIDWORKS API
VBA macro to run other macros or code on every new document creation using SOLIDWORKS API
đī¸ VBA Macro to hide all sketches in the model using SOLIDWORKS API
Macro will hide (blank) or show (unblank) all sketches (2D and 3D) in the active document using SOLIDWORKS API
đī¸ VBA macro to hide all selected features from the SOLIDWORKS file tree
VBA macro which hides features and makes them invisible in the SOLIDWORKS Feature Manager tree
đī¸ Using SOLIDWORKS API to render feature tree in HTML page
Example demonstrates how to extract and render feature tree of SOLIDWORKS part document in HTML page using SOLIDWORKS API with JavaScript and ActiveX control in Internet Explorer
đī¸ Difference between SOLIDWORKS API methods with and without I
Explanation of the differences between method names and interfaces containing the I at the beginning (e.g. IModelDoc2 vs ModelDoc2)
đī¸ Identify SOLIDWORKS API feature definition and specific type
Helper methods allowing to identify the definition and specific type of the selected feature via SOLIDWORKS API and reflection
đī¸ Setting ShadedImageQualityCoarse in user preferences of the active document using SOLIDWORKS API
SolidWorks VBA Macro to set the Shaded Image quality to coarse in Part and Assembly files. Also the checkmark "Apply to all referenced part documents" is set to ON if the active document is an assembly.
đī¸ Macro to import and export all layers from SOLIDWORKS drawings into a text file
VBA macro imports and exports information about layers (description, color, style, thickness, visibility and will print) in the SOLIDWORKS drawings
đī¸ Macro to import STEP files and save as SOLIDWORKS files using a sub-folder with the same name
VBA macro to import STEP files and save as SOLIDWORKS files using a sub-folder with the same name.
đī¸ Macro to import foreign file into active part using SOLIDWORKS API
VBA macro to import foreign file (parasolid, step, iges, etc.) directly into the active part document using SOLIDWORKS API
đī¸ Macro feature to increment the numeric value in the note via SOLIDWORKS API
This macro increments the numeric value of the notes by matching regular expression (e.g. incrementing the revision) using SOLIDWORKS API
đī¸ Fix incorrect use of 32-bit versions of Windows API functions in SOLIDWORKS macros
Fixing the Compile error - The code in this project must be updated for use on 64-bit systems when macro is utilizing Windows API functions
đī¸ Macro to save bodies into individual SOLIDWORKS part documents
VBA macro to save all bodies (or selected bodies) in the SOLIDWORKS part document to individual files
đī¸ Insert BOM balloons into drawing view using SOLIDWORKS API
VBA macro to automatically insert BOM balloons into an existing drawing view of the current sheet using SOLIDWORKS API
đī¸ Macro to insert SOLIDWORKS Bill Of Materials table and attach to the anchor point
SOLIDWORKS VBA macro to insert Bill Of Materials (BOM) table into active or all sheets with the specified parameters and attach to the anchor point
đī¸ Macro to insert holes table to SOLIDWORKS drawing
VBA macro demonstrates how to insert hole table for the specified entities using SOLIDWORKS API
đī¸ Add location label to a drawing view
VBA macro which demonstrates how to add location label to a drawing view
đī¸ Insert pipe component between fittings using SOLIDWORKS API
VBA macro for plumbing automation which inserts pipe component based on the stop faces of the fitting
đī¸ Batch add components and position them in the grid using SOLIDWORKS API
VBA example demonstrates how to batch insert and position components in the 3D grid using SOLIDWORKS API by providing the number of rows and columns and distance between components
đī¸ Macro to insert model into the predefined views of the SOLIDWORKS drawing template
VBA macro allows to insert SOLIDWORKS model into all or selected predefined views of the active drawing document
đī¸ Macro to insert SOLIDWORKS Revision table and attach to the anchor point
SOLIDWORKS VBA macro to insert Revision table into active or all sheets with the specified parameters and attach to the anchor point
đī¸ Installing the SOLIDWORKS add-in by creating the msi-installer
2 items
đī¸ Inter-Process communication between SOLIDWORKS applications
2 items
đī¸ Using internal IDs of SOLIDWORKS objects from API
This article explains the use of internal ids and the ways to read the ids from the objects
đī¸ Invoke function of SOLIDWORKS add-in from stand-alone application or macro
3 items
đī¸ Utilizing SOLIDWORKS API methods in Java Script
1 items
đī¸ Get Model Doc from lightweight component using SOLIDWORKS API
Example demonstrates how to get the pointer to IModelDoc2 from the component (even if it is in the suppressed or lightweight state)
đī¸ Link Cut-List Custom Properties To File With SOLIDWORKS Macro Feature API
Macro feature to link specified custom properties from weldment cut-lists to SOLIDWORKS file custom properties
đī¸ Macro to link sheet metal cut-list properties to SOLIDWORKS part custom properties
VBA macro which adds the permanent link (expression) between specified sheet metal cut list properties and file custom properties with an optional fallback value
đī¸ Link SOLIDWORKS custom properties from text file
VBA macro to link and auto-update multiple SOLIDWORKS custom properties from the external CSV/Text file into configuration or file
đī¸ Macro to load and unload add-in using SOLIDWORKS API
Macro to trigger (load/unload) the specified add-in using SOLIDWORKS API
đī¸ Macro to lock sheet format for editing using SOLIDWORKS API
VBA macro which locks (or password protects) the sheet format editing using SOLIDWORKS API
đī¸ Notify the completion of long running SOLIDWORKS command using SOLIDWORKS API
VBA macro to handle the long running commands in SOLIDWORKS (open, rebuild, suppress etc.) and beep to notify its completion
đī¸ Creating macro buttons in SOLIDWORKS toolbars
Article explains how to create a custom button to run the macro from the commands toolbar
đī¸ Failed to run SOLIDWORKS macro with multiple entry points
Fixing the macro which doesn't work if it is run from the Tools->Macro->Run menu in SOLIDWORKS but works correctly if opened in the VBA editor and executed via F5 or by clicking green arrow
đī¸ SOLIDWORKS Macros Troubleshooting: Issues And Resolutions
24 items
đī¸ Macro to make independent copy of the SOLIDWORKS component and copy drawing
VBA macro allows to make an independent copy of the selected component, update reference in assembly and copy associated drawing
đī¸ SOLIDWORKS macro to break, lock or unlock all external references for files and components
Example will break, lock or unlock all external references for the file or components in the active assembly using SOLIDWORKS API
đī¸ Installing SOLIDWORKS add-in by manual registration
Article explains how to deploy and register SOLIDWORKS add-in manually
đī¸ Macro to merge sketches using SOLIDWORKS API
VBA macro to merge selected sketches into a single 3D sketch using SOLIDWORKS API
đī¸ How to fix merged SOLIDWORKS macro errors
Fixing Run-time error '424' - Object required for macros which work correctly independently but failed to work when merged to one
đī¸ How to fix Missing COM (ActiveX) Component error
How to fix Runtime error 429 in VBA macros
đī¸ How to fix Missing SOLIDWORKS Type Library References error
Fixing Can't find project or library error in legacy macro
đī¸ Script generates model from input parameters using SOLIDWORKS API
Script generating model based on the template with specified parameters using SOLIDWORKS API
đī¸ Run VBA macro on model load using macro feature and SOLIDWORKS API
Macro feature to run VBA code on model loading using SOLIDWORKS API
đī¸ Fix the inconsistent model title extension in SOLIDWORKS API
Fixing the Run-time Error '5' - Invalid procedure call or argument error when running a macro which is using the title of the model (e.g. inserting the note, linking the custom property value, generating new file name for exporting)
đī¸ Modify the definition of axis feature using SOLIDWORKS API
VBA macro example to change the selection of the axis feature using SOLIDWORKS API
đī¸ Edit feature in the context of the assembly using SOLIDWORKS API
Example demonstrates how to modify feature definition in the context of the assembly
đī¸ Modify location precision of holes in holes table using SOLIDWORKS API
Example demonstrates how to change the precision for the hole locations in the selected Hole Table
đī¸ Add move-copy body feature with coincident mate using SOLIDWORKS API
C# VSTA macro example to create move-copy body feature and add coincident mate between the largest face of the body and front plane using SOLIDWORKS API
đī¸ Move design table object using SOLIDWORKS API
Example demonstrates how to resize and move the design table OLE object in the model graphics area
đī¸ Macro to move suppressed mates into feature folder using SOLIDWORKS API
VBA macro to move suppressed mates in assembly into feature folder using SOLIDWORKS API
đī¸ Move selected components to feature folder using SOLIDWORKS API
Macro move the components selected in the graphics area into a new folder in the feature manager tree
đī¸ Create MultiBoss-Extrude VBA macro feature using SOLIDWORKS API
VBA example demonstrates how to create parametric macro feature to create extrude from multiple sketches with an editing and preview ability
đī¸ Create multiple rows callout using SOLIDWORKS API
Example demonstrates how to create a callout with multiple rows from the selection in SOLIDWORKS API
đī¸ Copy component name to the component reference using SOLIDWORKS API
VBA macro to copy component name to the component reference using SOLIDWORKS with an ability to filter virtual components only
đī¸ Reading and changing names of SOLIDWORKS objects (features, components, views) using API
This article explains the use of object names and the ways to read and change the names
đī¸ Find-replace text in dimension names using SOLIDWORKS API
Macro replaces the text in the dimension names of the selected feature or features
đī¸ Naming for methods and properties in SOLIDWORKS API
Explanation of the naming convention for methods, properties and interfaces in the SOLIDWORKS API object model (i.e. OpenDoc6 vs OpenDoc5)
đī¸ Offset planar curve (wire body) using SOLIDWORKS API
VBA macro example to offset planar curve (wire body) and display the offset preview using SOLIDWORKS API
đī¸ Open associated drawings of active document or selected components
VBA macro to open the drawings associated to the component in its own window regardless of naming (with an option to open the drawing in detailing mode)
đī¸ Open selected components in the Large Design Review (LDR) mode
VBA macro to open all selected sub-assemblies and part components in the Large Design Review (LDR) mode and view only mode correspondingly
đī¸ Open all selected components in positions in new windows
VBA macro to open each selected component in the assembly in the separate window in the same position they appear in the current assembly view
đī¸ Open SOLIDWORKS assembly in quick view mode from Windows file explorer
Tool to open SOLIDWORKS assembly or drawing in quick view (large design review) mode from the context menu in Windows file explorer
đī¸ VBA macro to open referenced document of the drawing view
VBA macro opens the document referenced by the selected drawing view in the referenced configuration and display state
đī¸ Pass Parameters To SOLIDWORKS VBA Macro
2 items
đī¸ SOLIDWORKS macro to change configuration specific properties for component in pattern
Example demonstrates how to change the configuration specific properties (use same configuration as pattern seed component or use named configuration) of the component in the pattern using SOLIDWORKS API
đī¸ Macro for components configurations permutation using SOLIDWORKS API
Macro performs a permutation for each components in the root level of the assembly using SOLIDWORKS API and saves the results as individual files
đī¸ Using persistent reference id in SOLIDWORKS API to track objects
This article explains the use of persistent reference ids to track any selectable entity across SOLIDWORKS sessions
đī¸ Utilizing SOLIDWORKS API methods in PowerShell scripts
2 items
đī¸ Macro create precise part bounding box using SOLIDWORKS API
Macro creates a precise bounding box in the part document using SOLIDWORKS API
đī¸ SOLIDWORKS macro error when preconditions are not met
Fixing the Run-time Error '91' or Run-time error '13' when running the macro
đī¸ Macro to print SOLIDWORKS documents
VBA macro to print SOLIDWORKS documents using the specified settings (printer name, printer range, orientation, paper size and scale)
đī¸ Macro to print all notes to the text file from SOLIDWORKS drawing
VBA macro to output all notes text to the text file from the SOLIDWORKS drawing file
đī¸ Macro propagates configurations of the referenced document to sheets in the SOLIDWORKS drawings
VBA macro copies the input sheet and sets the referenced configuration sof the referenced document
đī¸ Run and configure SOLIDWORKS command using Windows API
Example demonstrating how to call and configure the Insert Model Items command in SOLIDWORKS drawing using Windows API
đī¸ Purge components configurations (remove all unused configurations) from SOLIDWORKS assembly
VBA macro to create copies of all selected components in the assembly and purge configurations in each of them
đī¸ Find intersection points and topology entities by ray intersection SOLIDWORKS model
VBA macro to find intersection points and the corresponding topology entities using rays in SOLIDWORKS part documents
đī¸ Read custom properties from file, configuration and cut-list elements using SOLIDWORKS API
VBA example to extract all custom properties from various sources of the active document (general, configuration specific and cut-list) using SOLIDWORKS API
đī¸ Read and display body from the file using SOLIDWORKS API
VBA example to deserialize body geometry from external binary file into temp body and display using SOLIDWORKS API
đī¸ Read configuration specific cut-list property from the selected component using SOLIDWORKS API
VBA macro to read all properties from the cut-list of the selected component in the assembly with respect to the component configuration using SOLIDWORKS API
đī¸ Read summary information from file using SOLIDWORKS API
VBA macro to extract the summary information (e.g. author, keywords, comments, title, creation info etc.) for active SOLIDWORKS file using SOLIDWORKS API
đī¸ Read table content into array using SOLIDWORKS API
Example demonstrates how to read the content of the selected table (Bill Of Materials, General Table, Cut-List Table etc.) into the 2-dimensional array
đī¸ Macro to force rebuild SOLIDWORKS document
VBA macro to force rebuild, hide all types and show isometric view of SOLIDWORKS model
đī¸ Macro to reconstruct spherical surface using SOLIDWORKS modeler API
Example demonstrates how to create spherical surface from the selected spherical face using SOLIDWORKS API in C#
đī¸ Macro to remove all colors from SOLIDWORKS document
Macro demonstrates how to remove all colors from the part or assembly documents on all levels (face, feature, body, model) using SOLIDWORKS API
đī¸ Macro to rename dimensions in the SOLIDWORKS drawing view
VBA macro which allows to assign the custom name to the dimension in the SOLIDWORKS drawings view which otherwise cannot be renamed in the User Interface
đī¸ SOLIDWORKS macro to rename configurations based on custom property
Macro renames all configurations of assembly or part into the value of the specified configuration specific custom property
đī¸ Macro to rename SOLIDWORKS bodies of cut-list items using the predefined template
VBA macro to rename bodies within the SOLIDWORKS cut-list body folder (sheet metal or weldment) based on the predefined template (e.g. custom property value)
đī¸ Rename cut list features based on custom properties using SOLIDWORKS API
VBA macro to rename cut list features (sheet metal and weldment) based on custom properties using SOLIDWORKS API
đī¸ VBA macro to rename features based on type names using SOLIDWORKS API
VBA macro renames (translates) the features in the part feature tree using SOLIDWORKS API
đī¸ SOLIDWORKS macro renames all features in model sequentially
Macro renames all the features in the order preserving the base names using SOLIDWORKS API
đī¸ Rename sheet metal flat patterns features after the cut-list features
VBA macro to rename sheet metal flat patterns after the corresponding cut-list feature names
đī¸ Rename flat pattern views with cut-list names VBA macro
VBA macro to rename all flat pattern views in the the active sheet after the respective cut-list names using SOLIDWORKS API
đī¸ Rename SOLIDWORKS drawing sheets with custom properties values
Macro will rename all drawings sheets using the value of the specified custom property using SOLIDWORKS API
đī¸ Macro renames table annotation using SOLIDWORKS API
Example demonstrates how to rename the selected table using SOLIDWORKS API
đī¸ Macro to rename all drawing views after the sheet name
VBA macro renames all SOLIDWORKS drawings views after the sheet name the drawing view is on
đī¸ Replace components preserving selection using SOLIDWORKS API
Macro demonstrates how to replace selected components in the batch preserving original selections using SOLIDWORKS API
đī¸ Macro to replace sheet formats in SOLIDWORKS drawings
VBA macro to replace sheet formats in the drawing sheets based on the specified map
đī¸ Reveal (display or delete) all feature hidden in the SOLIDWORKS Feature Manager tree
Macro finds all features which are hidden in the SOLIDWORKS model and either displays or removes them
đī¸ Calculating rotation transformation to align component with direction
VBA example demonstrates hwo to calculate the rotation transformation to align the normal of the component's face with edge direction around the component's origin
đī¸ Run VBA and VSTA macros in SOLIDWORKS
Running VBA and VSTA macros in SOLIDWORKS
đī¸ How to run commands synchronously using SOLIDWORKS API
Example demonstrates how to run SOLIDWORKS commands synchronously (i.e. return the execution once command closed)
đī¸ Macro feature to automatically run SOLIDWORKS macro on rebuild
Macro allows to automatically run macros on every rebuild using the macro feature and designed binder attachment with SOLIDWORKS API
đī¸ Run SOLIDWORKS macro automatically on application start
Setting up to run macro automatically once SOLIDWORKS application loads
đī¸ Macro to run group of macros using SOLIDWORKS API
Macro demonstrates how to run the group of macros within one macro using SOLIDWORKS API
đī¸ Run rotation animation for the component using SOLIDWORKS API
Example demonstrates how to run a smooth animation of components rotation around axis using the presentation transforms in SOLIDWORKS API
đī¸ Fix failed SOLIDWORKS VSTA (C# or VB.NET) macro
Fixing the Cannot Open error when running the VSTA macro (C# or VB.NET)
đī¸ Run Xpress products (e.g. DriveWorks) using SOLIDWORKS API
Example demonstrates how to run the xpress products (DriveWorks, DFM, Simulation, Flo)
đī¸ Macro to save all opened documents silently using SOLIDWORKS API
VBA macro to save all currently opened modified documents silently (without the popup messages) using SOLIDWORKS API
đī¸ Save the selected body into external file using SOLIDWORKS API
VBA example to serialize the selected body as binary file using SOLIDWORKS API
đī¸ VBA macro to scale the geometry of the imported features using SOLIDWORKS API
VBA macro scales the bodies from the imported features of the foreign formats (e.g. STEP, IGES) with the specified scale factor
đī¸ Fix missing Visual Studio SOLIDWORKS API SDK project templates
Fixing the installation of SOLIDWORKS API SDK when add-in templates are not shown in Visual Studio C# and VB.NET projects
đī¸ Macro to select all dimensions from the drawing views of the active sheet of SOLIDWORKS drawing
VBA macro demonstrates how to select all dimensions from the drawing views of the active sheet of SOLIDWORKS drawing using SOLIDWORKS API in a batch mode
đī¸ Select all sketch elements using SOLIDWORKS API
This example demonstrates how to select all sketch elements (segments and points) in the active sketch
đī¸ Select components associated with attributes using SOLIDWORKS API
Example attaches to the selection events of the active assembly
đī¸ Selecting SOLIDWORKS objects by name and coordinates using API
Article explains the pros and cons of SelectById2 method
đī¸ Select component in feature tree using its name via SOLIDWORKS API
Example demonstrates how to select component by full name at any level of the assembly in the feature manager tree
đī¸ Macro to select equal arcs in the sketch using SOLIDWORKS API
VBA macro to find and select all arcs with diameter equal to the input arc using SOLIDWORKS API
đī¸ Macro to select all features in SOLIDWORKS model by type using SOLIDWORKS API
VBA Macro to select all features in the active SOLIDWORKS model (part, assembly or drawing) by specifying its type
đī¸ Select Named Entity (face, edge or vertex) using SOLIDWORKS API
Select named entity (face, edge or vertex) in part, assembly (from component) or drawing (from view) using SOLIDWORKS API
đī¸ Select any SOLIDWORKS objects in a batch using API
Example demonstrates how to select any SOLIDWORKS objects (entities, features, annotations, etc.) in a batch mode
đī¸ Select standard reference geometry (e.g. Front plane or origin) by type using SOLIDWORKS API
Example demonstrates how to select standard plane (Top, Front or Right) and origin by specifying its type
đī¸ Select all suppressed components in the assembly using SOLIDWORKS API
VBA macro which runs the 'Component Selection - Select Suppressed' command in assembly document to select all assembly components in a batch
đī¸ Create sketch points on selected edge via SOLIDWORKS API
Macro creates specified number of sketch points on the selected edge in the 3D sketch
đī¸ Fixing the inconsistent selections in the SOLIDWORKS macro
Fixing the error when selections in the macro are not consistent
đī¸ Set BOM Quantity (Unit Of Measure) property using SOLIDWORKS API
Example demonstrates how to modify the BOM quantity field in the properties dialog
đī¸ Automatically assign new file name for SOLIDWORKS files
VBA macro to automatically assign new file name for the document based on the referenced drawing view or custom property using SOLIDWORKS API
đī¸ macro to automatically assign the SOLIDWORKS component references in a sequential order
VBA macro to increment and assign the component reference in sequential order for the selected components based on the seed number
đī¸ Set multiple assembly components solving (rigid or flexible) using SOLIDWORKS API
VBA macro to batch set the rigid or flexible option for selected components in the assembly using SOLIDWORKS API
đī¸ Macro to set SOLIDWORKS document units (length, angle, mass, volume, time)
VBA macro to set unit system in the SOLIDWORKS document or custom units (length, angle, mass, volume, time)
đī¸ Macro to set dimension type for all views in the active SOLIDWORKS drawing
VBA macro which sets dimension type (projected or true) for all drawing view in the active SOLIDWORKS drawing document
đī¸ How to fix the error of SOLIDWORKS add-ins sharing common libraries
Fixing the issue of using different versions of shared library by enabling binding redirect
đī¸ Get the sheet body geometry type using SOLIDWORKS API
Example identifies the type of the selected sheet body (open shell, internal shell, external shell)
đī¸ Draw sketch segments in context of the drawing sheet using SOLIDWORKS API
Draw underlying model bounding box sketch segment in the context of the drawing sheet using SOLIDWORKS API
đī¸ Show the text of all comments in the active model using SOLIDWORKS API
VBA macro to show text from comments in the active document using SOLIDWORKS API
đī¸ Show Edit Material dialog using SOLIDWORKS API
VBA macro which opens the Edit Material dialog in SOLIDWORKS part documents using SOLIDWORKS API and Windows API
đī¸ SOLIDWORKS Macro shows selected assembly component in the Window folder
Example demonstrates how to open the folder of the selected component in the assembly in the Windows File Explorer
đī¸ VBA Macro calls Show All Components command from SOLIDWORKS API
Example demonstrates how to call the Show With Dependents command for components or assembly using SOLIDWORKS API
đī¸ Get sketch lines of sheet metal sketched bend using SOLIDWORKS API
Finds all straight lines (bends) of the sheet metal Sketched Bend feature and selects all segments
đī¸ Macro slices body by sections using SOLIDWORKS API
Example demonstrates how to slice body by sections and extract the section data from the slices using SOLIDWORKS API
đī¸ Sort file and configuration specific custom properties using SOLIDWORKS API
VBA macro to sort file and configuration specific custom properties (in ascending and descending order) using logical order via SOLIDWORKS API
đī¸ SOLIDWORKS Macro to Split Body By Faces using SOLIDWORKS API
Macro splits the selected surface or solid body by faces creating individual sheet body for each face using SOLIDWORKS API
đī¸ Split feature folders of the SOLIDWORKS file to individual configurations
VBA macro creates individual configurations for each feature folder in the active SOLIDWORKS part or assembly
đī¸ Macro to split SOLIDWORKS cut-list bodies into individual configurations
VBA macro which creates individual configurations for all cut-list bodies (or unique bodies) in the active SOLIDWORKS part document for the drawing generation purpose
đī¸ Starting SOLIDWORKS application in background (hidden)
Instructions of how to start SOLIDWORKS application to be used by stand-alone automation tool in background (hidden)
đī¸ Storing and restoring temp body in 3rd party storage using SOLIDWORKS API
Storing the temp body in the SOLIDWORKS document stream via 3rd party storage and restoring it on opening using SOLIDWORKS API
đī¸ SOLIDWORKS macro finds intersection points between surface and curve
Example demonstrates how to find the intersection points between selected plane or face with edge or sketch segment
đī¸ SOLIDWORKS VBA macro to copy preselected faces
SOLIDWORKS VBA macro to copy selected faces by calling the "Surface Offset" feature with distance 0
đī¸ Macro to suspend graphics update using SOLIDWORKS API
Example demonstrates how to suppress graphics update while performing the operations using SOLIDWORKS API
đī¸ Macro to suspend rebuild operation in SOLIDWORKS model using API
This macro allows to suspend rebuild operation for parts, assemblies and drawings to enhance the performance using SOLIDWORKS API
đī¸ Fixing the error when running legacy SWBasic (*.swb) SOLIDWORKS macro
Fixing the error when running or editing the legacy macro in swb format
đī¸ Change system page setup options in SOLIDWORKS using API in macro
Changing system level (application) page setup options (printer paper size, scale, etc.) for printing using SOLIDWORKS API
đī¸ Add Tag to selected note using SOLIDWORKS API
Example demonstrates how to add text tag to the selected note in SOLIDWORKS model
đī¸ Data saving in the 3rd party storage using SOLIDWORKS API
3 items
đī¸ VBA macro to toggle white background in drawings
VBA macro to toggle a white background with another color of your choice in drawings using system settings
đī¸ Macro to toggle the scroll item into view option in SOLIDWORKS documents
VBA macro to toggle on and off the scroll selected item into view option in SOLIDWORKS FeatureManager settings
đī¸ Toggle Show Comment Indicator option using SOLIDWORKS API
VBA macro to turn On and Off the Show Comment Indicator option of Feature Manager tree using SOLIDWORKS API and Windows API
đī¸ Macro to toggle the sketch snapping in SOLIDWORKS document
VBA macro to toggle on and off the sketch enable snapping option in SOLIDWORKS sketch
đī¸ Fix too long path error when running the SOLIDWORKS macro
Fixing the Cannot Open error when opening or running the macro stored under the long projects structure
đī¸ Fix too long SOLIDWORKS VBA macro line error
Fixing the Compile error - Invalid outside procedure error when placing the long text into the VBA macro variable
đī¸ Tracking IDs in SOLIDWORKS API to track entities across operations
1 items
đī¸ Understanding transforms in sketches while using SOLIDWORKS API
Explanation of model to sketch and sketch to model transformations in SOLIDWORKS API to properly calculate the coordinates of sketch segments
đī¸ Pan model views with screen pixels using SOLIDWORKS API
Example demonstrates how to pan a model view with view transforms by providing the offset in the screen pixels
đī¸ Traverse all dimensions of component or model using SOLIDWORKS API
VBA macro which traverses all dimensions of all features in the selected component or active document using SOLIDWORKS API and outputs the dimension name and value to the output Window
đī¸ Traverse feature manager nodes using SOLIDWORKS API
Example demonstrates how to traverse nodes in the Feature Manager Tree using SOLIDWORKS API
đī¸ Traverse SOLIDWORKS feature manager tree in the reversed order
VBA macro to traverse feature manager tree in SOLIDWORKS document in the reversed order
đī¸ Traversing the components tree using SOLIDWORKS API
Example demonstrates how to traverse components tree in the assembly and output the result using the specified indentation symbol
đī¸ Tree structure serialization in model 3rd party storage using SOLIDWORKS API
Example of usage of 3rd Party Storage (stream) to serialize and deserialize tree structure using SOLIDWORKS API and XmlSerializers within the model document
đī¸ troubleshooting
2 items
đī¸ Untrim face or surface with temporary geometry using SOLIDWORKS API
VBA example to create an untrimmed (restored) surface from the selected face with temporary geometry using SOLIDWORKS API
đī¸ Macro to update XYZ curve from the linked file using SOLIDWORKS API
VBA macro which updates coordinates of the free form (through XYZ points) curve from the linked external text file
đī¸ Upgrade legacy custom properties to a new architecture
VBA macro which upgrade legacy SOLIDWORKS custom properties to a new architecture in SOLIDWORKS 2022
đī¸ Upgrade cosmetic threads in active SOLIDWORKS part or assembly using SOLIDWORKS API
VBA macro upgrades cosmetic threads to a new (SOLIDWORKS 2020) version which allows to improve performance of the document
đī¸ Handling the long operation progress using progress bar in SOLIDWORKS API
Displaying the long operation progress using user progress bar in SOLIDWORKS API
đī¸ Creating VB.NET add-in for SOLIDWORKS using API
Detailed guide of creating 'hello world' SOLIDWORKS add-in from scratch using VB.NET
đī¸ Import and render XAML file using VBO in OpenGL and SOLIDWORKS API
C# add-in to import the geometry in XAML format into the current model space and render the graphics with high performance using Vertex Buffer Object (VBO) of OpenGL and SOLIDWORKS API
đī¸ Automation of SOLIDWORKS using SOLIDWORKS API in vbScript
3 items
đī¸ Create vector normal to screen view using SOLIDWORKS API
Example demonstrates how to draw a sketch line which is perpendicular (normal) to the current view orientation relative to the screen
đī¸ Generate report for the SOLIDWORKS file versions (created and last saved) for all the files in the folder
VBA macro which generates CSV report of versions (created and last saved) for all files in the folder
đī¸ Passing the parameters to SOLIDWORKS VBA Macro via clipboard
Passing the custom string parameters to VBA macro from .NET application or another macro via clipboard
đī¸ Passing the parameters to SOLIDWORKS Macro using the SWBasic macro
Workaround of passing the parameters to the SOLIDWORKS macro via replacing the text in the SWBasic macro
đī¸ Dimension visible drawing entities from view using SOLIDWORKS API
Find and dimension the longest visible entity in the drawing view using SOLIDWORKS API
đī¸ Dimension named model entities in drawing view using SOLIDWORKS API
Add dimension between two named entities of the part drawing retrieved from the underlying model using SOLIDWORKS API
đī¸ Select corresponding features in all drawing views
VBA macro which selects the corresponding features of the feature in the model in all drawing views
đī¸ Macro to scale drawing views based on the geometry size using SOLIDWORKS API
VBA macro to scale drawing views in the current sheet based on the geometry size and specified map
đī¸ Creating the Visual Studio Installer (VSI) for SOLIDWORKS application
Article explains the steps required to create an installer package for deploying SOLIDWORKS add-in
đī¸ Fix invalid namespace in VSTA (C# or VB.NET) SOLIDWORKS macro
Fixing the compile error of VSTA macro when the code is copied from the example
đī¸ Wait for user selection in document using SOLIDWORKS API
2 approaches to wait for the object selected by the user in VBA macro using SOLIDWORKS API
đī¸ Find the where used assemblies of the selected component using SOLIDWORKS API
VBA macro to find the assemblies within active assembly which are using the selected component using SOLIDWORKS API
đī¸ Creating the SOLIDWORKS add-in installer with Windows Installer XML (WiX)
Creating the installer package for SOLIDWORKS add-in using the Windows Installer XML (WiX)
đī¸ Write custom property to file, configuration and cut-list using SOLIDWORKS API
VBA macro example to write different types of properties (general, configuration specific and cut list) using SOLIDWORKS API
đī¸ SOLIDWORKS macro copies data from Excel table into general table
Macro will read all the data from the Excel table and import it into the new general table of the active document or update existing table using SOLIDWORKS API
đī¸ Write component quantity in the SOLIDWORKS assembly to custom property
VBA macro which writes the total quantities of components in SOLIDWORKS assembly into custom property
đī¸ Write summary information to the active file using SOLIDWORKS API
VBA macro to fill the summary information (author, keywords, comments, title, subject) for active SOLIDWORKS file using SOLIDWORKS API