Posts

CS_NXOpen_0011_MoveBodies2Components

using System; using NXOpen; using NXOpen.UF; public class NXJournal {     static Session theSession = Session .GetSession();     static UFSession theUFSession = UFSession .GetUFSession();     static Part workPart = theSession.Parts.Work;     public static void Main( string [] args)     {         // Move multiple bodies from Assembly level into an individual components         theSession.SetUndoMark( Session . MarkVisibility .Visible, "Create Body Components" );         bool nxMan = false ;         theUFSession.UF.IsUgmanagerActive( out nxMan);         string tmp_dir = null ;         theUFSession.UF.TranslateVariable( "UGII_TMP_DIR" , out tmp_dir);...

CS_NXOpen_0010_ExtrudeCurves

Image
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Collections; // Calling Array List using NXOpen; using NXOpen.UF; namespace Extrude {     public class EX_Extrude     {          private static UFSession theUfSession;         private static Session theSession;         // Constants         public const double PI = 3.14159265358979324;         public static void Main( string [] args)         {             theSession = Session .GetSession();             theUfSessi...