![]() T1- Termination type for the first end as defined in swEndConditions_e. Sd - True for a single-ended cut, False for a doubled-ended cut.įlip- True to remove material outside of the profile of the flip side to cut, False to not.ĭir - True for Direction 1 to be opposite of the default direction. This FeatureCut4 takes following parameters as explained: This FeatureManager is again part of ModelDoc2 object. We create Extrude Cut by setting the value of variable swFeature by FeatureCut4 method.įeatureCut4 method is part of FeatureManager object. In above line of code we create a Extrude Cut feature. FeatureCut4 ( True, False, False, swEndCondThroughAll, 0, 0.01, 0.01, False, False, False, False, 1, 1, False, False, False, False, False, True, True, True, True, False, swStartSketchPlane, 0, False, False ) ' Create Extrude Cut Feature Set swFeature = swDoc. I also give some □ links so that you can go through them if there are anything I explained in previous articles. Now let us walk through each line in the above code, and understand the meaning and purpose of every line. □ SOLIDWORKS Macros - Create Extrude/BossĪlso, we will apply checks in this article, so the code we write should be error free most of the time.If you want to create Extrude feature programmatically then please refer to below article. If you want to create Sketch2 programmatically then please refer to below articles.įor Circle □ read SOLIDWORKS Macros - Create Circle article.įor CenterPoint Arc □ read SOLIDWORKS Macros - Create Center Rectangle article. Sketch2 : This is our profile of holes for Extrude Cut feature. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |