admin管理员组

文章数量:1574097

输入点,在图纸中插入dwg文件

DrawingHandler MyDrawingHandler = new DrawingHandler();
Tekla.Structures.Drawing.UI.Picker picker = MyDrawingHandler.GetPicker();
TSG.Point point = null;
ViewBase view = null;
picker.PickPoint("请拾取插入点", out point, out view);
if (MyDrawingHandler.GetConnectionStatus())
{
EmbeddedObjectAttributes attributes = new EmbeddedObjectAttributes();
attributes.XScale = 0.5;
attributes.YScale = 0.5;
DwgObject dxf = new DwgObject(view, point, Path.GetFullPath("N.dwg"), attributes);
dxf.Insert();
}

本文标签: 图纸文件TeklastructuresDWG