Exemplo n.º 1
0
 public static Snap.NX.Sew Wrap(Tag nxopenSewTag)
 {
     if (nxopenSewTag == Tag.Null)
     {
         throw new ArgumentException("Input tag is NXOpen.Tag.Null");
     }
     NXOpen.Features.Sew objectFromTag = Snap.NX.NXObject.GetObjectFromTag(nxopenSewTag) as NXOpen.Features.Sew;
     if (objectFromTag == null)
     {
         throw new ArgumentException("Input tag doesn't belong to an NXOpen.Features.Sew object");
     }
     return(objectFromTag);
 }
Exemplo n.º 2
0
 internal static Snap.NX.Sew CreateSew(Snap.NX.Body targetBody, Snap.NX.Body[] toolBodies)
 {
     NXOpen.Features.SewBuilder featureBuilder = Globals.WorkPart.NXOpenPart.Features.CreateSewBuilder(null);
     featureBuilder.Type      = NXOpen.Features.SewBuilder.Types.Sheet;
     featureBuilder.Tolerance = Globals.DistanceTolerance;
     featureBuilder.TargetBodies.Add((DisplayableObject)targetBody);
     for (int i = 0; i < toolBodies.Length; i++)
     {
         featureBuilder.ToolBodies.Add((DisplayableObject)toolBodies[i]);
     }
     NXOpen.Features.Sew sew = (NXOpen.Features.Sew)Snap.NX.Feature.CommitFeature(featureBuilder);
     featureBuilder.Destroy();
     return(new Snap.NX.Sew(sew));
 }
Exemplo n.º 3
0
 internal Sew(NXOpen.Features.Sew sew) : base(sew)
 {
     this.NXOpenSew = sew;
 }