Exemplo n.º 1
0
                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;
                }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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();
     }
 }