-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProgram.cs
27 lines (25 loc) · 957 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace TheScriptingEngineer
{
using System;
using System.IO; // for path operations
using System.Collections.Generic; // for lists
using NXOpen; // so we can use NXOpen functionality
using NXOpen.CAE; // so we don't need to start everything with NXOpen.CAE
using NXOpenUI;
using NXOpen.UF;
using NXOpen.Utilities;
public class Program
{
// global variables used throughout
public static Session theSession = Session.GetSession();
public static UFSession theUFSession = UFSession.GetUFSession();
public static ListingWindow theLW = theSession.ListingWindow;
public static BasePart basePart = theSession.Parts.BaseWork;
public static void Main(string[] args)
{
// entrypoint for NX
theLW.Open();
theLW.WriteFullline("Starting Main() in " + theSession.ExecutingJournal);
}
}
}