コード例 #1
0
        public void ComCommand()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Editor   ed  = doc.Editor;
            Database db  = doc.Database;

            Line l1 = new Line(new Point3d(250, 250, 0), new Point3d(400, 400, 0));
            Line l2 = new Line(new Point3d(0, 400, 0), new Point3d(150, 300, 0));

            SendClass.ToModelSpace(l1);
            SendClass.ToModelSpace(l2);
            SendClass.FilletCommand(ed, db, l1, l2);
        }
コード例 #2
0
        public void DrawBlocks(Database db, IEnumerable <InsertBlockBase> blocks)
        {
            //setup default layers
            var defultLayers = new LayerCreator();

            defultLayers.Layers();

            var insertBlockTable = new InsertBlockTable(db);

            foreach (var block in blocks)
            {
                insertBlockTable.InsertBlock(block);
            }

            MoveToBottom.SendToBackBlock();
            //MoveToBottom.SendToBackLine();
            SendClass.SendRegen();
            SendClass.SendZoomExtents();
        }