SolidWorks abbreviation (SW) is a new generation of Dassault introduced for the electrical industry design of mechanical 3D design tools. SolidWorks Chinese version of the new parallel and serial product development environment and *** enjoy 3DCAD model, and is widely used in the design of parts, the design of machinery and equipment, medical equipment, automotive, aerospace and other industries; SolidWorks can meet the user directly add a variety of auxiliary plug-ins, connect a variety of NC programming software and print the model directly. Industry; SolidWorks can meet the user directly in the software to add a variety of auxiliary plug-ins, connect a variety of NC programming software and directly print the model of the use of demand. About the power of solidworks, in fact, I believe that many partners also have a certain understanding, but for the mastery of the software as well as the use of the software, may be a lot of partners are still scratching their heads! It doesn't matter, if you want to learn how to use solidworks, you've come to the right place. A wealth of solidworks boutique video courses, take you one by one to break through the software basic to advanced operation
solidworks popular video tutorials recommended:
Introduction to the software: Solidworks Mechanical Design introductory to master course
Interior Design: Solidworks engineering design to explain the chapter tutorials
Interior Design: Solidworks engineering design to explain the chapter tutorials
Introduction to software: Solidworks measurement tools
Solidworks secondary development Lesson 4: Introduction to the API interface object
API object interface:
Interface is a COM term, which contains the classes used in SOLIDWORKS. SOLIDWORKS is the use of face
to-object technology. Underneath SOLIDWORKS is an object model that represents all aspects of the software. In order to open up the API to
developers using other programming languages, COM programming allows SOLIDWORKS to open up the function
capabilities of actual SOLIDWORKS objects to the outside world.COM programming is beyond the scope of this book, but the reader should understand that an API consists of a set of
interfaces organized as the Interface Object Model (IOM). Interfaces are organized as interfaceobjectmodels. In general, an interface can be thought of as
an object.
Note: The user is actually dealing with an interface pointer to a SOLIDWORKS object.
For beginners, especially those who do not have a basic knowledge of programming, it is normal that this is a little less understandable, after we get in touch with the program, slowly understand!!!!
How to use the API file:
1, solidworks API file location:
Open the API help file, search for keywords in the document: interface, attribute, or method of the keyword
2, directly in the macro program to select the keyword, press the F1 piece, you can jump directly (the most practical a method)
Understanding the description of the members of the API interface:
(1) The namespace name specifies the namespace to which the API interface belongs.SOLIDWORKSAPI functionality is contained in several names
spaces. Namespaces are mechanisms used to organize program code and avoid name conflicts. Most of the API functionality for mapping is
included in the SolidWorks.Interop.sldworks namespace.
(2) API interface members and interface names are used to describe API interfaces and members.
(3) Expand All/Collapse All
Toggles between expanded and collapsed display of help topics.
(4)Language Filter allows filtering the display of member syntax information based on programming language, and contains the following options:
-VisualBasic(Declaration)
-C#
-VisualBasic(Usage)
.C++/CLI
(5) Topic paths start with the namespace name and show the full path to the selected topic in the API help file.
(6) API description about the API interface or selected member function.
(7)~(13)Help Topic Body
This section displays a combination of the following areas, depending on availability:
-NETSyntax
.Remarks
.VisualBasicforApplications(VBA)Syntax
SeeAlso
.Example
.Availability
.Accessors
(7).NETSyntax.This area shows the prototypes of the members. NETSyntax area will show an example of how to use the method in programming code
(8)VisualBasicforApplications(VBA)Syntax.Provides a link to the prototype of the method represented using VisualBasic application syntax.
Hint: In VBA:
swSkMgr.CreateLine(0,0,0,1,0,0).ConstructionGeometry=True
swSkMgr is just the descriptive name of the variable, the user can name the variable with any name (descriptive is recommended)
name to name the variable).
(9) Example.This area (if available) provides links to code examples. These code examples are intended to illustrate to the user the usage of the selected member.
(10)Remarks. contains precautions when using the member. It is always recommended to take the time to read this section of information before using any member.
(11)Accessors.This area is available on the Interface page and contains links to members that can return instances of this interface.
(12) AccessDiagram Access Diagram
(13) SeeAlso. contains links to other relevant information.
So, today's "Solidworks secondary development Lesson 4: Introduction to the API interface object" will be shared to the end here! We must learn to see more, practice more, think more, learn more, I hope we can learn solidworks! Here, but also to provide you with more courses to learn, click the link: