public static dynamic GetTSObject(EmbeddedObjectAttributes dynObject) { if (dynObject is null) { return(null); } return(dynObject.teklaObject); }
public void Example1() { DrawingHandler MyDrawingHandler = new DrawingHandler(); ViewBase _view = MyDrawingHandler.GetActiveDrawing().GetSheet().GetAllViews().Current as ViewBase; EmbeddedObjectAttributes attributes = new EmbeddedObjectAttributes(); attributes.XScale = 0.5; attributes.YScale = 0.5; DwgObject dxf = new DwgObject(_view, new Point(100, 100), Path.GetFullPath("my_dxf.dxf"), attributes); dxf.Insert(); }