コード例 #1
0
ファイル: DIMINC.cs プロジェクト: nbright/utility_funcs
 public DimInc_Preview(AC_Transactions AC_tr, DIM_Settings set)
 {
     tr     = AC_tr;
     DIMset = set;
     acMath = new AC_Math();
     tr.AC_Doc.Editor.PointMonitor += Editor_PointMonitor;
 }
コード例 #2
0
ファイル: DIMINC.cs プロジェクト: nbright/utility_funcs
 public DimInc_Create(bool softInit)
 {
     if (softInit)
     {
         //INIT TRANSACTION CLASS
         tr = new AC_Transactions();
         //INIT SETTINGS
         DIMset = new DIM_Settings();
         //INIT UTILITY_MATH
         acMath = new AC_Math();
     }
     else
     {
         //INIT TRANSACTION CLASS
         tr = new AC_Transactions();
         //INIT SETTINGS
         DIMset = new DIM_Settings();
         //INIT PREVIEW CLASS
         preview = new DimInc_Preview(tr, DIMset);
         //INIT MOD CLASS
         DimIncMod = new DimInc_Modified();
         //INIT UTILITY_MATH
         acMath = new AC_Math();
         //INIT POINTS AND TEXT ARRAY
         Points   = new List <Point3d>();
         DIMtexts = new ObjectIdCollection();
         GUID     = Guid.NewGuid().ToString();
     }
 }
コード例 #3
0
ファイル: DIMINC.cs プロジェクト: nbright/utility_funcs
                public gripPointModified(ObjectId DimInc, ObjectId DimTexts)
                {
                    DimInc_pLine = DimInc;
                    DimInc_texts = DimTexts;
                    tr           = new AC_Transactions();
                    DIMset       = new DIM_Settings();
                    acMath       = new AC_Math();

                    GripIndexs = new List <int?>();
                    GripIndexs.Add(null);
                    GripIndexs.Add(null);

                    calculateMidPoints();

                    ObjectId[] ids;
                    ids = new ObjectId[1] {
                        DimInc_pLine
                    };
                    SetIdFilter(ids);
                    tr.AC_Doc.Editor.PointMonitor                 += Editor_PointMonitor;
                    tr.AC_Doc.Editor.SelectionAdded               += Editor_SelectionAdded;
                    tr.AC_Doc.Editor.SelectionRemoved             += Editor_SelectionRemoved;
                    Application.DocumentManager.DocumentDestroyed += DocumentManager_DocumentDestroyed;
                }
コード例 #4
0
ファイル: DIMINC.cs プロジェクト: darkimage/utility_funcs
 public DimInc_Preview(AC_Transactions AC_tr,DIM_Settings set)
 {
     tr = AC_tr;
     DIMset = set;
     acMath = new AC_Math();
     tr.AC_Doc.Editor.PointMonitor += Editor_PointMonitor;
 }
コード例 #5
0
ファイル: DIMINC.cs プロジェクト: darkimage/utility_funcs
                public gripPointModified(ObjectId DimInc, ObjectId DimTexts)
                {
                    DimInc_pLine = DimInc;
                    DimInc_texts = DimTexts;
                    tr = new AC_Transactions();
                    DIMset = new DIM_Settings();
                    acMath = new AC_Math();

                    GripIndexs = new List<int?>();
                    GripIndexs.Add(null);
                    GripIndexs.Add(null);

                    calculateMidPoints();

                    ObjectId[] ids;
                    ids = new ObjectId[1] { DimInc_pLine };
                    SetIdFilter(ids);
                    tr.AC_Doc.Editor.PointMonitor += Editor_PointMonitor;
                    tr.AC_Doc.Editor.SelectionAdded += Editor_SelectionAdded;
                    tr.AC_Doc.Editor.SelectionRemoved += Editor_SelectionRemoved;
                    Application.DocumentManager.DocumentDestroyed += DocumentManager_DocumentDestroyed;
                }
コード例 #6
0
ファイル: DIMINC.cs プロジェクト: darkimage/utility_funcs
 public DimInc_Create(bool softInit)
 {
     if (softInit)
     {
         //INIT TRANSACTION CLASS
         tr = new AC_Transactions();
         //INIT SETTINGS
         DIMset = new DIM_Settings();
         //INIT UTILITY_MATH
         acMath = new AC_Math();
     }
     else
     {
         //INIT TRANSACTION CLASS
         tr = new AC_Transactions();
         //INIT SETTINGS
         DIMset = new DIM_Settings();
         //INIT PREVIEW CLASS
         preview = new DimInc_Preview(tr, DIMset);
         //INIT MOD CLASS
         DimIncMod = new DimInc_Modified();
         //INIT UTILITY_MATH
         acMath = new AC_Math();
         //INIT POINTS AND TEXT ARRAY
         Points = new List<Point3d>();
         DIMtexts = new ObjectIdCollection();
         GUID = Guid.NewGuid().ToString();
     }
 }