DrawingHandler myDrawingHandler = new DrawingHandler();
DrawingObjectEnumerator allViews = myDrawingHandler.GetActiveDrawing().GetSheet().GetAllViews();
allViews.MoveNext();
ViewBase curView = allViews.Current as ViewBase;
Plugin myPlugin = new Plugin(curView, "COGDimensioning");
PluginPickerInput newPluginInput = new PluginPickerInput();
newPluginInput.Add(new PickerInputPoint(curView, new TSG.Point(100, 200)));
newPluginInput.Add(new PickerInputPoint(curView, new TSG.Point(300, 400)));
myPlugin.SetPickerInput(newPluginInput);
myPlugin.Insert();
(Tekla Structures二次开发)图纸中使用插件
最新推荐文章于 2023-09-21 16:35:23 发布