Ejemplo n.º 1
0
        public Snap.NX.Arc Copy(Transform xform)
        {
            TaggedObject obj3 = (TaggedObject)base.Copy(xform).NXOpenTaggedObject;

            NXOpen.Ellipse ellipse = obj3 as NXOpen.Ellipse;
            if (ellipse != null)
            {
                Snap.NX.NXObject.Delete(new Snap.NX.NXObject[] { ellipse });
                throw new ArgumentException("The transform would convert the arc to an ellipse. Please use Curve.Copy instead");
            }
            return((NXOpen.Arc)obj3);
        }
Ejemplo n.º 2
0
 public static Snap.NX.Ellipse Wrap(Tag nxopenEllipseTag)
 {
     if (nxopenEllipseTag == Tag.Null)
     {
         throw new ArgumentException("Input tag is NXOpen.Tag.Null");
     }
     NXOpen.Ellipse objectFromTag = Snap.NX.NXObject.GetObjectFromTag(nxopenEllipseTag) as NXOpen.Ellipse;
     if (objectFromTag == null)
     {
         throw new ArgumentException("Input tag doesn't belong to an NXOpen.Ellipse object");
     }
     return(objectFromTag);
 }
Ejemplo n.º 3
0
 internal Ellipse(NXOpen.Ellipse ellipse) : base(ellipse)
 {
     this.NXOpenEllipse = ellipse;
 }