Example #1
0
        private void cmdSetPointAtCenter_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Point3d pnt3dTAR = Pub.pnt3dO;

            boolSetPointAtCenter = true;
            Grading_Floor.AVG(idBldgLim, Centroid, Convert.ToDouble(cmbSlope.SelectedValue), Convert.ToDouble(txtPadElev.Text), boolSetPointAtCenter, pnt3dTAR);
        }
Example #2
0
        private void cmdSetPoint_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            boolSetPointAtCenter = false;
            bool escape = true;

            Point3d pnt3dTAR = Pub.pnt3dO;

            BaseObjs.acadActivate();
            Object osMode = SnapMode.getOSnap();

            SnapMode.setOSnap((int)osModes.PER);

            double slope = Convert.ToDouble(cmbSlope.SelectedValue);

            if (slope != 0.0)
            {
                pnt3dTAR = Grading_Floor.getPoint("Select Building Edge in Direction of Increasing Slope", Centroid, out escape);
            }

            Grading_Floor.AVG(idBldgLim, Centroid, slope, Convert.ToDouble(txtPadElev.Text), boolSetPointAtCenter, pnt3dTAR);
            idBldgLim.delete();
            SnapMode.setOSnap((int)osMode);
        }