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
SolidWorks learns 1. Basic Knowledge points Summary Datum view main: Look back from the front, top of the baseline: from the top down, the upper view of the baseline side view: Right-to-left, right-looking datum sketch requires a single seal, sketch to be attached to a position
Draw approximate shape
Determining relations, location relationships, positioning dimensions
Callout Sketch Shape dimensions
Shortcut key zoom: Middle key
This article is a problem encountered in the actual development process. I have received help from my colleagues and would like to thank you.
In the secondary development process of SolidWorks, the asynchronous mode is used, and the following code has a problem in use (where the problem may occur, I have watched it)
BOOL CSWFun: GetProfileLength (CComPtr
After the code is changed to the following, it will be normal
BOOL CSWFun::GetProfileLength(CCo
When you open a new part, the first feature you generate is a sketch. A sketch is the basis of a 3D model. A sketch generates an entity after being stretched, rotated, scanned, or loosed, and then modifies the entity. This is the general modeling process of SolidWorks.
To insert a sketch, you must first determine its placement plane. It can be a preset reference plane or a user-painted reference plane. Or a plane on the object.
The three main inform
Many people feel that the creation of the entity is simpler than the surface and the sheet metal, so here are some ways to convert the entity to sheet metal in SolidWorks.
1, here at random to draw a step entity, and create a cut sketch, finished using the conversion sheet Metal command.
2, according to the steps to select the fixed surface and bending line, and then make a cut
3, the width of the inc
SolidWorks How to draw a hinge hole bolt two-dimensional engineering drawing?
1, click on the blank page "new" frame to the right of the drop-down arrow, select "From parts/assembly drawings to make engineering drawings"
2, select "A4" Engineering drawings, click "OK", into the engineering drawing editor
3, you can see the right side "drag the view to the engineering drawing drawings", which "on", "after" and "isometric" t
SolidWorks API Help is still very comprehensive, there are many see simple and effective procedures, all day in the API help bubble, and now the speed of the program is faster. It's like I've been recording macros in Excel all day long to see the code. The following program is in the API help to show all parts of the assembly. I use it for my colleagues, they feel good:). The program uses a simple recursive method to traverse the assembly.
Make all As
Today we provide an example of sending messages. Below we will post the code for discussion.
Design a class library with two files. Message. vb, policy. vb
'Message. vb Code Namespace Notification Public Interface IPJMessage 'defines an Interface
1, click Interference Inspection (Assembly toolbar) or Tools > interference inspection. Under PropertyManager options, select Create a matching trim thread folder. When you click Calculation, the interference caused by the correct matching of
Refer to the following code to select the two sides of the part, and then add a matching reference for this part, first select the face for the reference of the first reference surface. and is the same direction, coincide with. The second one is
Failed to decode Response:zlib_decode (): Data error
Retrying with degraded mode, check Https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
Composer mirroring is not supported by HTTPS
Open a Command line window
First, record a macro that generates the stretching feature and analyze the VBA code.
Recording macro:
1. Call the macro recording function;
2. Insert stretching features
2.1 draw a sketch
2.2 complete feature Creation
3. Tensile features are
When I first published a blog post, we thought it was wrong or bad. Please make more bricks.
After reading the secondary development document, the general feeling is that EPDM provides many interfaces. If you want to do a good job of development
The following program reads every note of the current drawing and prints the result in debug.
Option explicitDim swname as stringDim swtext as stringSub main ()
Dim swapp as sldworks. sldworksDim swmodel as sldworks. modeldoc2Dim swdraw as sldworks.
characterization, conformation database, three-dimensional structure query, drug group positioning, etc. in high-throughput research there are high-throughput screening analysis, binary structure-effect relationship research, combinatorial chemical molecular library synthesis, etc. active in molecular designSite detection, molecular docking, fragment analysis, and so on, there are homologous simulation, mutation evolution, mechanical analysis in the field of protein simulation, strong field and
Cadence PDK Automation System (PAS) Release v03.05.003 windows/linux 1CDLibrary builder Pas Library builder can automatically generate a complete PDK of the developed GTE data, which means that library Builder runs all of the above GTE generators to create the PDK library, which contains PCell, CDF callback, PV files, technical files, device model files, and symbol. The generated PDK library can be used directly to the user. The PV rule file pas GTE allows users to graphically customize the proc
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.