Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
兔郭兔兔 郭10/03/2025
SldWorks swApp = Utility.ConnectToSolidWorks();
if (swApp == null) return;
ModelDoc2 swModelDoc = (ModelDoc2)swApp.ActiveDoc;
if (swModelDoc == null) return;
try
{
// 获取接口
ModelView activeView = swModelDoc.IActiveView;
FeatureManager featMgr = swModelDoc.FeatureManager;
SketchManager sketchMgr = swModelDoc.SketchManager;
// 保存原始设置
bool originalGraphicsUpdate = activeView.EnableGraphicsUpdate;
bool