Some extrusions in loop in solidworks VBA don't work

。_饼干妹妹 提交于 2019-12-06 14:06:03

Check the value of brightness.

Perhaps if you tried to use 3DSketch instead of Sketch, this code above will work. Select it with a mark of 0.

If the problem comes from FeatureExtrusion2, you could try FeatureExtrusion3 for SolidWorks 2014 and above

Also Part.Extension.SelectByID2(Sketch, "SKETCH", ... is not necessary since you applied the FeatureExtrude to the last created sketch .And if it fails FeatureExtrude won't work.

Or at least make sure the sketch is selected before sending FeatureExtrude by reading the 'boolstatus' value.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!