This problem has been bothering me for 2 years, the tutorials I found earlier are MFC, the ATL Import Wizard, or the way to invoke the control by importing a type library, I have never understood.After learning ACTIVEQT recently and controlling Excel, Word, PowerPoint, and flash through ACTIVEQT, I finally got to the general understanding.After a few hours of trying, finally successfully through the QT operation SolidWorks. Suggest you can go to Baidu
SolidWorks Three-dimensional diagram how to turn two-dimensional diagram?
1, open the need to convert SolidWorks three-dimensional graphics
2, click on the title bar "new" icon, select "From parts/assembly system for engineering drawings"
3, select template Click to confirm
4, into the "Engineering drawing" interface, select the right side of the "isometric", and th
SolidWorks how to draw a curve? In three-dimensional drawings, for complex curves, you can create them through the XYZ point, as follows.
1, open the SolidWorks software, and click the "New" button.
2, in the New SolidWorks file dialog box, select Parts and click the OK button.
3, click Curves on the Insert menu, and click t
What does the SolidWorks standard view do? In the process of modeling with SolidWorks, the appropriate standard view can help us to work out in the process of drawing, however, sometimes the default standard view of the software is not the ideal view, as shown in the following figure, the same as the front view, The figure A and B are completely different, how do you turn the front view from figure A to Fig
How can we determine a feature?
If we define a feature object:
Dim curfeature as sldworks. Feature
Then this feature is obtained through selectmgr, and then feature. gettypename can be used to determine the type of feature:
Select case curfeature. gettypename
Case "cut" 'a stretch cut feature
Do something.
Case "holewzd" 'a special hole feature
Do something.
Case else
End select
End select
This is the Syntax:
Syntax (OLE Automation)
Retval = feature. gettypename ()
It returns
(BS
SolidWorks How do I modify the callout size font size?
1, first open SolidWorks engineering drawings, the author here has been made, mainly about how to modify the size of the callout size font, as shown in the figure
2, choose the size of the preparation to be modified, as shown in the Left Pop-up Dimension Properties dialog box,
3, in the Left Dimension Properties dialog box,
SolidWorks how to draw a compression spring? SolidWorks Spring Painting has a lot of, but many friends are not clear how to draw, the following to introduce the compression of the spring painting.
1, click the "New" button to create a part file.
2, select the front view datum, click "Sketch", select "Sketch Drawing" button, enter the sketch interface. A circle with a diameter of 22
Insert SolidWorks Two development--insert parts in assembly
When inserting parts into the assembly, we use the addcomponent function. If you need to configure the selected parts, you need to use ADDCOMPONENT4.
Learn the grammar first:
ADDCOMPONENT4:
retval = Assemblydoc.addcomponent4 (Compname, ConfigName, x, Y, z)
Input: (BSTR) compname Path name of a loaded part or assembly to add as a component
Input: (BSTR) ConfigName
Got a feature feature, how to judge the kind?
If we define a feature object:
Dim curfeature As Sldworks.feature
Then you get this feature through Selectmgr, and then you can use feature. Gettypename to judge the kind of:
Select case Curfeature. Gettypename
Case "Cut" ' a stretch removal feature
Do sth.
Case "Holewzd" ' an irregular hole feature
Do sth.
Case Else
End Select
End Select
This is the syntax:
Syntax (OLE Automation)
retval = Feature.gettypename ()
It will
Release date:Updated on:
Affected Systems:SolidWorks Workgroup PDM 2014 SP2Description:--------------------------------------------------------------------------------Bugtraq id: 65751
SolidWorks Workgroup PDM software helps individuals and small working groups manage projects and control their design versions.
SolidWorks Workgroup PDM 2014 SP2 and other versions have the Arbitrary File Overwrite Vulnerabil
How do I insert a symbol in a solidworks annotation?
1. First, open the SolidWorks and open your project diagram as shown
2, enlarge the screen, (easy to see), the annotation part to enlarge, as shown in the picture
3, the mouse clicks on the annotation content, the left side pops up the annotation attribute related menu, as shown in the picture
4, click on the left s
Today I made an example of updating the file variables. It took a while to get it out. Paste the code.
File before variable change
Create a class library in VS and add the following method
'''
Then create a form. before changing the variable, read the file (written in SolidWorks EPDM secondary development entry (1) and add a button.
The button code is as follows:
Try Finfo. batchUpdateFileVariable ("Project No.", "A395") 'calls the background updat
After the above training, I should have a general understanding of the Object Model of SolidWorks,ProgramThe operating mechanism is also clear. It will become more and more easy to control. The following figure shows the object model of SolidWorks. As a reference, you may not know where the API is hidden when you need a function or want to control a function:
Overall structure: http://gallery.computer.mbl
Visit | Data SolidWorks two times development -03-access feature data
' Coder Arden
' Filename:getchoosed.swp
' Date:2005-03-22
' Used to get ' simple hole infomation DEP Dia
' Finished lucky!!
'------------------------------------------------------------
Option Explicit
Dim Swapp as Sldworks.sldworks
Dim Model as ModelDoc2
Dim Curfeature as feature
Dim Boolstatus as Boolean
Dim Featdata as SimpleHoleFeatureData2 ' declares a simple straight hole ob
Create a console project with VC, supporting ATL and MFC
Copy sldworks. tlb, swconst. tlb, and swpublished. tlb under the SolidWorks installation path to the project folder.
Add the following code to the Code:
# Import "sldworks. tlb "raw_interfaces_only, raw_native_types, no_namespace, named_guids # import" swpublished. tlb "raw_interfaces_only, raw_native_types, no_namespace, named_guids # import" swconst. tlb "raw_interfaces_only, callback, no_nam
I believe you will often put the code in the SolidWorks API help directly to the direct use of the code is not available today. Now share your experience:True) > _publicClass clspropmgrThe above code will error: "The attribute specifier is not a complete statement." Use the line continuation character to apply the attribute to the following statement. "How to solve it? It's really simple!Workaround 1:Two lines of composite lineTruepublicClass clspropm
MCADEx development SolidWorks secondary development to obtain the maximum shape of the model, mcadexsolidworks
Please follow the MCADEx Official Website: www.mcadex.com
IModelDoc2 * pMdl;
ISwApp-> get_IActiveDoc2 ( pMdl );
If (pMdl = NULL)
Return S_FALSE;
// Obtain the Part
CComPtr
PMdl-> QueryInterface (IID_IPartDoc, (LPVOID *) pPart );
If (pPart = NULL)
Return S_FALSE;
// Obtain PartBox
VARIANT dPoint;
PPart-> GetPartBox (FALSE, dP
SolidWorks How to draw a planar graphic
1, open the software, and create a new part diagram.
2, select the front view, right click, click "Face"
3, click to select "Sketch Drawing", click Sketch 1, into the front view of the sketch editing mode
4. You can see the Operation command of sketch drawing, choose some kind of drawing command to draw the corresponding figure in sketch.
5, for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.