Solidworks C++ API
Disclaimer, this page is only for my learning purpose!!!
Disclaimer, this page is only for my learning purpose!!!
In this post, I tell you what you need to start with Solidworks C++ API:
In this post, I tell you about how to Open Solidworks using Solidworks C++ API from Visual Studio.
In this post, I tell you about how to Open Solidworks Part Document using Solidworks C++ API from Visual Studio.
Solidworks provides us two methods for open Visual Basic for Application.
As the title suggested, in this post, we open new document from Solidworks VBA macros.
In this post, we see how to open following documents with Solidworks VBA macro:
In this post, we select Default planes with following methods:
In this post, I tell you how to open a saved document in Solidworks using VBA Macro.
In this post, I tell you about how to Fix Unit Issue in Solidworks API from VBA Macros in a Sketch.
In this post, I tell you about how to create 2D Line through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create 2D CenterLine through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create Corner Rectangle through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create Center Rectangle through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create 3-Point Corner Rectangle through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create 3-Point Center Rectangle in a sketch.
In this post, I tell you about how to create a Parallelogram through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create Circle through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create Circle By Radius through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create Perimeter Circle through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Centerpoint Arc through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Tangent Arc through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a 3-Point Arc through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Polygon through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Straight Slot through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Centerpoint Straight Slot through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a 3-Point Arc Slot through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Centerpoint Arc Slot through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Point through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Spline through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Fillet through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to create a Chamfer through Solidworks VBA Macros in a sketch.
In this post, I tell you about how to Trim Sketch Entities using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Extend Sketch Entities using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Offset Sketch Entities using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Mirror Sketch Entities using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Linear Sketch Pattern using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Edit Linear Sketch Pattern using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Circular Sketch Pattern using Solidworks VBA Macros in a Sketch.
Introduction
Introduction
Introduction
In this post, I tell you about how to Toggle (Hide/Show) Sketch Relations using Solidworks VBA Macros in a Sketch.
In this post, I tell you about how to Add Sketch Relations (Constraints) using Solidworks VBA Macros in a Sketch.
Introduction
In this post, I tell you about Convert to Construction Sketch in a Sketch.
Introduction
To understand Visual Basic for Application, lets look at the following questions.
Visual Basic Editor or VBE is a separate application in your CAD application.
In this post we look following windows in Visual Basic Editor:
The VBA code that you write in the Visual Basic Editor is known as a procedure.
Although you may not know much about developing procedures at this point, I’m going to jump ahead a bit and discuss how to execute these procedures.
Visual Basic for application (VBA) is a real, live programming language, it uses many elements common to all programming languages.
VBA’s main purpose is to manipulate data. VBA stores the data in your computer’s memory; it may or may not end up on disk.
If you read the previous topics, you now know a bit about Variables and Data-types.
A variable’s scope determines which modules and procedures can use the variable.
In the following sections we will discussed about following topics:
A variable’s value may (and usually does) change while your procedure is executing.
The String data type represents a series of characters. This topic introduces the basic concepts of strings in Visual Basic.
An assignment statement is a VBA statement that assigns the result of an expression to a variable or an object.
Most programming languages support arrays. An array is a group of variables that share a common name.
A function essentially performs a calculation and returns a single value.
A few VBA functions go above and beyond the call of duty. Rather than simply return a value, these functions have some useful side effects.
Some VBA procedures start at the code’s beginning and progress line by line to the end, never deviating from this top-to-bottom program flow.
If-Then is VBA’s most important control structure. You’ll probably use this command on a daily basis.
The term looping refers to repeating a block of VBA statements numerous times.
A bug is an error in your programming. Here I cover the topic of programming bugs — how to identify them and how to remove them from your module.
In this section, I discuss the details of using the VBA debugging tools.
I can’t tell you how to completely eliminate bugs in your programs.
You can’t use VBA very long without being exposed to dialog boxes.
You’re probably already familiar with the VBA MsgBox function — I use it quite a bit in the examples.
The VBA’s InputBox function is useful for obtaining a single piece of information from the user.
If your VBA procedure needs to ask the user for a filename, you could use the InputBox function.
A UserForm is useful if your VBA macro needs to get information from a user.
In this post, we learn how can we open a part document from a Visual Basic for Application’s Userform.
In this post, we learn how can we Open new Assembly and Drawing document from a Visual Basic for Application’s Userform.
Introduction