示例#1
0
        /// <summary>
        /// 提取边到新Part
        /// </summary>
        /// <param name="Spart">新Part</param>
        /// <param name="UserSelected">用户选择的参考边</param>
        /// <returns>创建的新边</returns>
        public HybridShapeExtract NwExtraEdge(Part Spart, Reference UserSelected)
        {
            HybridShapeFactory PartShape         = (HybridShapeFactory)Spart.ShapeFactory;
            HybridShapeExtract extractWeightEdge = PartShape.AddNewExtract(UserSelected);

            extractWeightEdge.PropagationType      = 3;
            extractWeightEdge.ComplementaryExtract = false; //补充模式
            extractWeightEdge.IsFederated          = false;
            HybridBodies PartHybodies = Spart.HybridBodies;
            HybridBody   PartHyBody   = PartHybodies.Item(1);

            PartHyBody.AppendHybridShape(extractWeightEdge);
            Spart.InWorkObject = extractWeightEdge;
            Spart.Update();
            return(extractWeightEdge);
        }