Ejemplo n.º 1
0
 public static BbSlottedHole Create(
     BbElement hostElement,
     BbCoordinate2D position,
     double centerToCenter,
     double radius,
     BbDirection2D refDirection,
     SemHoleLocation location,
     bool through,
     BbPropertySet bbPropertySet,
     string featureSubType
     )
 {
     var sl = new BbSlottedHole(hostElement, position, centerToCenter, radius, refDirection, location, through);
     sl.AddSlottedHoleProperty(bbPropertySet, featureSubType, centerToCenter, centerToCenter + (radius * 2), radius);
     BbInstanceDB.AddToExport(sl);
     return sl;
 }
Ejemplo n.º 2
0
        public static BbSlottedHole Create(
            BbElement hostElement,
            BbCoordinate2D position,
            double centerToCenter,
            double radius,
            BbDirection2D refDirection,
            SemHoleLocation location,
            bool through,
            BbPropertySet bbPropertySet,
            string featureSubType
            )
        {
            var sl = new BbSlottedHole(hostElement, position, centerToCenter, radius, refDirection, location, through);

            sl.AddSlottedHoleProperty(bbPropertySet, featureSubType, centerToCenter, centerToCenter + (radius * 2), radius);
            BbInstanceDB.AddToExport(sl);
            return(sl);
        }