private bool BuildDimensionInteractive(Node rectangleNode)
        {
            var       textLocation = DimensionUtils.ComputeMiddlePointPosition(rectangleNode, 2).GpPnt;
            const int translate    = 10;

            textLocation.X = (textLocation.X + translate);
            textLocation.Y = (textLocation.Y + translate);
            textLocation.Z = (textLocation.Z + translate);
            var shape       = ShapeUtils.ExtractSubShape(rectangleNode, 2, TopAbsShapeEnum.TopAbs_EDGE);
            var interactive = DimensionUtils.CreateDependency(shape, textLocation, DsgPrsArrowSide.DsgPrs_AS_BOTHAR);

            if (interactive == null)
            {
                return(false);
            }
            Parent.Set <TreeViewVisibilityInterpreter>();
            Interactive = interactive;
            return(true);
        }
Example #2
0
        private void Execute()
        {
            var midPoint = DimensionUtils.ComputeMiddlePointPosition(Node, Data.ShapeCount);

            SetupPointCoordinate(midPoint);
        }