Journal

You might also like

You are on page 1of 1

// NX 2306

// Journal created by Andre on Mon Sep 18 21:16:18 2023 E. South America Standard
Time
//
using System;
using NXOpen;

public class NXJournal


{
public static void Main(string[] args)
{
NXOpen.Session theSession = NXOpen.Session.GetSession();
NXOpen.Part workPart = theSession.Parts.Work;
NXOpen.Part displayPart = theSession.Parts.Display;
// ----------------------------------------------
// Menu: Tools->Resource Bar Tabs->Operation Navigator->Output-
>Postprocess...
// ----------------------------------------------
workPart.CAMSetup.OutputBallCenter = false;

NXOpen.CAM.CAMObject[] objects1 = new NXOpen.CAM.CAMObject[1];


UI theUI = UI.GetUI();

objects1[0] =
((NXOpen.CAM.NCGroup)theUI.SelectionManager.GetSelectedTaggedObject(0));
workPart.CAMSetup.PostprocessWithPostModeSetting(objects1,
"GRUPO_MAQUINAS_COM_FOLHA", "C:\\temp\\PROGRAMA.ptp",
NXOpen.CAM.CAMSetup.OutputUnits.PostDefined,
NXOpen.CAM.CAMSetup.PostprocessSettingsOutputWarning.PostDefined,
NXOpen.CAM.CAMSetup.PostprocessSettingsReviewTool.PostDefined,
NXOpen.CAM.CAMSetup.PostprocessSettingsPostMode.Normal);

// ----------------------------------------------
// Menu: Tools->Automation->Journal->Stop Recording
// ----------------------------------------------

}
public static int GetUnloadOption(string dummy) { return
(int)NXOpen.Session.LibraryUnloadOption.Immediately; }
}

You might also like