예제 #1
0
        internal static int NxGetBits(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            int          num2       = SnapPointsStateSet.Chop17(properties.GetBits(propertyName));

            properties.Dispose();
            return(num2);
        }
예제 #2
0
        internal static void NxSetBits(UIBlock block, string propertyName, int value)
        {
            PropertyList properties = block.GetProperties();
            int          num2       = SnapPointsStateSet.Chop17(properties.GetBits(propertyName));
            int          bitsSc     = SnapPointsStateSet.Chop17(value);

            if (bitsSc != num2)
            {
                properties.SetBits(propertyName, bitsSc);
            }
            properties.Dispose();
        }
예제 #3
0
        private void Initialize()
        {
            base.Type = "Specify Point";
            base.Show = true;
            this.AutomaticProgression = true;
            this.BalloonTooltipImage  = "";
            this.BalloonTooltipLayout = Snap.UI.Block.BalloonTooltipLayout.Horizontal;
            this.BalloonTooltipText   = "";
            this.BeginGroup           = false;
            this.Enabled = true;
            this.EnableFacetSelection = false;
            this.Expanded             = true;
            this.InterpartSelection   = InterPartSelectionCopy.None;
            this.Label                  = "Specify Point";
            this.LabelString            = "Select Point";
            this.Position               = Snap.Position.Origin;
            this.PrivateSelectedObjects = new NXObject[0];
            this.StepStatus             = Snap.UI.Block.StepStatus.Required;
            SnapPointsStateSet set = new SnapPointsStateSet(this)
            {
                ArcCenter        = SnapPointState.Selected,
                BoundedGridPoint = SnapPointState.Shown,
                ControlPoint     = SnapPointState.Shown,
                EndPoint         = SnapPointState.Selected,
                ExistingPoint    = SnapPointState.Selected,
                Intersection     = SnapPointState.Shown,
                MidPoint         = SnapPointState.Selected,
                PointConstructor = SnapPointState.Shown,
                PointOnCurve     = SnapPointState.Shown,
                PointOnSurface   = SnapPointState.Shown,
                QuadrantPoint    = SnapPointState.Shown,
                ScreenPosition   = SnapPointState.Shown
            };

            this.SnapPointStates           = set;
            this.SnapPointTypesEnabled     = set.TypesEnabled;
            this.SnapPointTypesOnByDefault = set.TypesOnByDefault;
        }