Example #1
0
 public static dynamic GetTSObject(EmbeddedObjectAttributes dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }
Example #2
0
        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();
        }