示例#1
0
        //--------------------------------------------------------------------------------------------------

        public void SetColor(Quantity_Color color)
        {
            if (!_EnsureAisObject())
            {
                return;
            }

            _AisAxis.SetColor(color);
            AisContext.RecomputePrsOnly(_AisAxis, false);
        }
示例#2
0
        //--------------------------------------------------------------------------------------------------

        bool _EnsureAisObject()
        {
            if (_AisAxis != null)
            {
                return(true);
            }

            _AisAxis = new AIS_AxisEx(new Geom_Line(Ax1.OX));
            _AisAxis.SetWidth(3);
            _AisAxis.SetColor(new Quantity_Color(Quantity_NameOfColor.Quantity_NOC_RED));

            var datumAspect = new Prs3d_DatumAspect();

            datumAspect.LineAspect(Prs3d_DatumParts.Prs3d_DP_XArrow).SetTypeOfLine(Aspect_TypeOfLine.Aspect_TOL_SOLID);
            datumAspect.ArrowAspect().SetLength(5);

            SetAspects(_AisAxis, _Style);

            AisContext.Display(_AisAxis, false);
            AisContext.Deactivate(_AisAxis);
            return(true);
        }