Application Programming Interface

See SOLIDWORKS API Help: Release Notes for late-breaking updates.

SOLIDWORKS 2017 API includes the ability to:

  • Create and access selection sets.
  • Traverse the Manager Pane and activate the FeatureManager design tree, PropertyManager, ConfigurationManager, DimXpertManager, DisplayManager, or custom tab. Also, fire a pre-notification and notification when activating a tab in the Manager Pane.
  • Get whether an axis is a temporary axis and get its reference face.
  • Set the properties of a selected component in a specific configuration, including whether the component is an envelope.
  • Get the parameterization data of a specific spline in a sketch.
  • Get or set the state of a check box on a PropertyManager page.
  • Create sweep features using a circular profile or tool body.
  • Create bidirectional sweeps.
  • Import tables from and export tables to Microsoft Excel files for variable patterns.
  • Modify variable patterns.
  • Get or set the width or height at which to lock a column or row in a table annotation.
  • Offset selected edges to create a 3D sketch on a face or surface.
  • Zoom a drawing sheet to its maximum size within a window.
  • Make a selected component independent.
  • Replace components either by letting SOLIDWORKS attempt to match the configuration of the old components with a configuration in the replacement component or by using the specified configuration in the replacement component.
  • Isolate components.
  • Get or set the routing component grouping options for a BOM table in a drawing of an assembly containing routing components.
  • Get the names of the exploded views for a specific configuration, get the number of exploded views in a specific configuration, and get the name of the configuration for a specific exploded view in an assembly.
  • Get the name of the exploded view currently shown in the model.
  • Get the collapsed or exploded transform of a component when the assembly is exploded.
  • Expand the specified component in the specified FeatureManager design tree pane.
  • Delete either the selected components of a subassembly or the subassembly of the selected component.
  • Get or set the display state of a drawing view.
  • Group selected edges or sketch segments into one object for the path for a sweep feature.
  • Get the persistent reference ID of the configuration referenced in a drawing view.
  • Get or set whether to display the description of a configuration in a bill of materials.
  • Get or set whether to enable cell drop-down lists in design tables.
  • Get or set the vertical justification of a standard note.
  • Get or set the length of a bent leader.
  • Get or set whether to propagate visual properties in a table-driven pattern.
  • Synchronize flexible subassemblies when creating a linear or circular pattern of components in an assembly.
  • Get or set whether to propagate visual properties in a derived pattern feature.
  • Get or set whether to disable an equation and get the number of disabled equations in a model.
  • Specify a sketch plane, surface/face/plane, vertex, or offset as a start condition when creating an extruded surface.
  • Draft angles, cap ends, delete original faces, and knit the bodies created by deleting original faces in extruded surfaces.
  • Specify multiple drawing sheets whose setups to modify.
  • Update SOLIDWORKS Toolbox components in the specified assembly level using the current information in Toolbox settings.
  • Create SpeedPak configurations for subassemblies in an assembly.
  • Rebuild all features or rebuild only those features that need to be rebuilt in all configurations without activating each configuration in a model.
  • Create a STEP 242 file from SOLIDWORKS MBD.
  • Create a derived pattern feature, get or set which pattern instance to use as the seed feature for a derived pattern feature, and get or set whether to propagate visual properties in a derived pattern feature.
  • Get the DimXpert name for an annotation.
  • Fire a notification when publishing an assembly or part document to SOLIDWORKS MBD 3D PDF.