Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Journal and view triad? 1

Status
Not open for further replies.

kukelyk

Industrial
Mar 21, 2005
315
Hi.
Is it possible to switch on and off the view triad by journal?
Thanks in advance

----
kukelyk
 
Replies continue below

Recommended for you

Following code turns the triad off and then on again.

Code:
using System;
using NXOpen;

public class ViewTriadHideNShow
{
    public static void Main(string[] args)
    {
        Session theSession = Session.GetSession();
        UI theUI = UI.GetUI();

        NXOpen.Preferences.SessionPreferences sesPrefs = theSession.Preferences;

        sesPrefs.ScreenVisualization.TriadVisibility = 0;

        theUI.NXMessageBox.Show("Triad", NXMessageBox.DialogType.Information, "Turned Off now");

        sesPrefs.ScreenVisualization.TriadVisibility = 1;
                

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

Suresh
 
Thanks. Is this code in c#?
Can I run it from journal?

----
kukelyk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor