đī¸ Working with geometry (IModeler) using SOLIDWORKS API
Collection of examples and articles related to SOLIDWORKS model geometry topology.
đī¸ Code examples of creating geometrical primitives using SOLIDWORKS modeler API
6 items
đī¸ Using transformations in SOLIDWORKS API
4 items
đī¸ 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
đī¸ 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 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
đī¸ 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
đī¸ 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.
đī¸ 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
đī¸ 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
đī¸ 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 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
đī¸ 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
đī¸ 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
đī¸ Macro create precise part bounding box using SOLIDWORKS API
Macro creates a precise bounding box in the part document using SOLIDWORKS API
đī¸ 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 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
đī¸ 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#
đī¸ Save the selected body into external file using SOLIDWORKS API
VBA example to serialize the selected body as binary file using SOLIDWORKS API
đī¸ Create sketch points on selected edge via SOLIDWORKS API
Macro creates specified number of sketch points on the selected edge in the 3D sketch
đī¸ Get the sheet body geometry type using SOLIDWORKS API
Example identifies the type of the selected sheet body (open shell, internal shell, external shell)
đī¸ 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
đī¸ 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
đī¸ 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
đī¸ 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