示例#1
0
 public AStirrups()
 {
     editor = Application.DocumentManager.MdiActiveDocument.Editor;
     db = Application.DocumentManager.MdiActiveDocument.Database;
     doc = Application.DocumentManager.MdiActiveDocument;
     acMark = new ACMark();
     adaptator = new BWCadAdaptator();
 }
示例#2
0
        private void InitializeBWCad12(Transaction trans, short barNumber, double scale, short barAmount,
            short tierAmount, double barDiameter, double spanStep, Point3d barPoint1, Point3d barPoint2,
            Point3d spanPoint1, Point3d spanPoint2, Point3d descriptionSignPoint, double descriptionSignRotation,
            bool adaptate)
        {
            this.scale = scale;
            this.barNumber = barNumber;
            this.barAmount = barAmount;
            this.tierAmount = tierAmount;
            this.barDiameter = barDiameter;
            this.spanStep = spanStep;
            this.barPoint1 = barPoint1;
            this.barPoint2 = barPoint2;
            this.spanPoint1 = spanPoint1;
            this.spanPoint2 = spanPoint2;
            this.descriptionSignPoint = descriptionSignPoint;
            this.descriptionSignRotationDeg = descriptionSignRotation;
            this.adaptate = adaptate;

            editor = Application.DocumentManager.MdiActiveDocument.Editor;
            db = Application.DocumentManager.MdiActiveDocument.Database;
            doc = Application.DocumentManager.MdiActiveDocument;

            xDataAdder = new XDataAdderForReinfBars(barNumber, BarLength, true,
                scale, barAmount, tierAmount, spanStep, barDiameter, OperationNumber);
            bm = new BlockManager();

            lm = new LayerManager();
            this.trans = trans;
            xDataAdder = new XDataAdderForReinfBars(barNumber, BarLength, true,
                scale, barAmount, tierAmount, spanStep, barDiameter, OperationNumber);

            if (adaptate)
            {
                adaptator = new BWCadAdaptator();
            }
        }