NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Preferences::RoutingApplicationView Class Reference

The RoutingApplicationView class contains all of the various preferences and options available from the Routing Application View file. More...

Public Types

enum  AppType { AppTypeNone, AppTypeMechanical, AppTypeElectrical, AppTypeLogical }
 Routing application types. More...
 

Public Member Functions

NXOpen::Preferences::RoutingApplicationView::AppType ApplicationType ()
 Returns the given routing application type. More...
 
NXOpen::Preferences::RoutingCharacteristicsCharacteristicPreferences ()
 Preferences related to option/required characteristics. More...
 
NXString CurrentDiscipline ()
 Returns the current discipline. More...
 
NXString CurrentSpecification ()
 Returns the current specification for the current discipline. More...
 
NXString Description ()
 Returns the application view description. More...
 
NXString Filename ()
 Returns the filename of the current application view. More...
 
std::vector< NXStringGetDisciplines ()
 Returns all of the disciplines available in the current application view. More...
 
std::vector
< NXOpen::Routing::CharacteristicList::CharacteristicInformation
GetFabricationCharacteristics ()
 Returns fabrication characteristics. More...
 
std::vector
< NXOpen::Routing::CharacteristicList::CharacteristicInformation
GetOptionalCharacteristics ()
 Returns the intersection of the optional stock characteristics and optional part characteristics for the current discipline of the application view. More...
 
std::vector
< NXOpen::Routing::CharacteristicList::CharacteristicInformation
GetRequiredCharacteristics ()
 Returns the intersection of the required stock characteristics and required part characteristics for the current discipline of the application view. More...
 
std::vector< NXStringGetSpecifications ()
 Returns the specifications available in the current discipline. More...
 
void LoadAppView (const NXString &fileName)
 Loads the preferences from an application view file. More...
 
void LoadAppView (const char *fileName)
 Loads the preferences from an application view file. More...
 
NXString Name ()
 Returns the application view name. More...
 
NXOpen::Preferences::RoutingPartPartPreferences ()
 Routing preferences related to parts. More...
 
NXOpen::Preferences::RoutingElectricalRoutingElectrical ()
 Routing electrical preferences structure
Created in NX3.0.0. More...
 
NXOpen::Preferences::RoutingLogicalRoutingLogical ()
 Routing logical preferences
Created in NX3.0.0. More...
 
NXOpen::Preferences::RoutingMechanicalRoutingMechanical ()
 Routing mechanical preferences
Created in NX3.0.0. More...
 
NXOpen::Preferences::RoutingPathRoutingPath ()
 Path preferences structure
Created in NX3.0.0. More...
 
NXOpen::Preferences::RoutingStockRoutingStock ()
 Stock preferences structure
Created in NX3.0.0. More...
 
NXOpen::Preferences::RoutingUserPreferencesRoutingUserPreferences ()
 Routing user preferences
Created in NX11.0.1. More...
 
void SetApplicationType (NXOpen::Preferences::RoutingApplicationView::AppType appType)
 Sets the given routing application type. More...
 
void SetCurrentDiscipline (const NXString &discipline)
 Sets the current discipline. More...
 
void SetCurrentDiscipline (const char *discipline)
 Sets the current discipline. More...
 
void SetCurrentSpecification (const NXString &currentSpec)
 Sets the current specification for the current discipline. More...
 
void SetCurrentSpecification (const char *currentSpec)
 Sets the current specification for the current discipline. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

The RoutingApplicationView class contains all of the various preferences and options available from the Routing Application View file.

In order to call any of the methods of this class (or it's contained objects), first call Preferences::RoutingApplicationView::LoadAppView to load defaults from the application view file.
To obtain an instance of this class, refer to NXOpen::Preferences::SessionPreferences

Created in NX4.0.0.

Member Enumeration Documentation

Routing application types.

Enumerator
AppTypeNone 

Not currently in any of the routing applications.

AppTypeMechanical 

In routing mechanical application.

AppTypeElectrical 

In routing electrical application.

AppTypeLogical 

In routing logical application.

Member Function Documentation

NXOpen::Preferences::RoutingApplicationView::AppType NXOpen::Preferences::RoutingApplicationView::ApplicationType ( )

Returns the given routing application type.

This is only used in the context of routing to execute design rules. Application type should be set toPreferences::RoutingApplicationView::AppTypeNone before exiting from the routing applications.
Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Preferences::RoutingCharacteristics* NXOpen::Preferences::RoutingApplicationView::CharacteristicPreferences ( )

Preferences related to option/required characteristics.


Created in NX3.0.0.

NXString NXOpen::Preferences::RoutingApplicationView::CurrentDiscipline ( )

Returns the current discipline.

A discipline value of "" (the empty string) indicates no current discipline.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

NXString NXOpen::Preferences::RoutingApplicationView::CurrentSpecification ( )

Returns the current specification for the current discipline.

A specification value of "" (the empty string) indicates no current specification.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

NXString NXOpen::Preferences::RoutingApplicationView::Description ( )

Returns the application view description.


Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

NXString NXOpen::Preferences::RoutingApplicationView::Filename ( )

Returns the filename of the current application view.


Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

std::vector<NXString> NXOpen::Preferences::RoutingApplicationView::GetDisciplines ( )

Returns all of the disciplines available in the current application view.

Returns

Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")
std::vector<NXOpen::Routing::CharacteristicList::CharacteristicInformation> NXOpen::Preferences::RoutingApplicationView::GetFabricationCharacteristics ( )

Returns fabrication characteristics.

These characteristics must be set for any fabrication created out of a Routing assembly.

Returns

Created in NX9.0.0.

License requirements : routing_base ("Routing Basic")
std::vector<NXOpen::Routing::CharacteristicList::CharacteristicInformation> NXOpen::Preferences::RoutingApplicationView::GetOptionalCharacteristics ( )

Returns the intersection of the optional stock characteristics and optional part characteristics for the current discipline of the application view.

Returns

Created in NX9.0.0.

License requirements : routing_base ("Routing Basic")
std::vector<NXOpen::Routing::CharacteristicList::CharacteristicInformation> NXOpen::Preferences::RoutingApplicationView::GetRequiredCharacteristics ( )

Returns the intersection of the required stock characteristics and required part characteristics for the current discipline of the application view.

Returns

Created in NX9.0.0.

License requirements : routing_base ("Routing Basic")
std::vector<NXString> NXOpen::Preferences::RoutingApplicationView::GetSpecifications ( )

Returns the specifications available in the current discipline.

Returns

Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")
void NXOpen::Preferences::RoutingApplicationView::LoadAppView ( const NXString fileName)

Loads the preferences from an application view file.

This file may be either a legacy application view file (with a .apv extension) or a new XML style application view file (with a .xml extension). See the Routing Administrator documentation for the format of these files. Once an application view file is loaded, it cannot be unloaded. After loading the file the first time in a session, subsequent loads do not pick up changes made to the application view file, but it does set the preferences to the cached values loaded from that file. Here is some example code, after the second call to Preferences::RoutingApplicationView::LoadAppView the current defaults are defaults initially read from the mechanical application view.

Session.GetSession().Preferences.RoutingApplicationView.LoadAppView ( "ugroute_mech_in.xml" );
Session.GetSession().Preferences.RoutingApplicationView.LoadAppView ( "ugroute_elec_in.xml" );
Session.GetSession().Preferences.RoutingApplicationView.LoadAppView ( "ugroute_mech_in.xml" );


Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
fileNamefilename of application view.
void NXOpen::Preferences::RoutingApplicationView::LoadAppView ( const char *  fileName)

Loads the preferences from an application view file.

This file may be either a legacy application view file (with a .apv extension) or a new XML style application view file (with a .xml extension). See the Routing Administrator documentation for the format of these files. Once an application view file is loaded, it cannot be unloaded. After loading the file the first time in a session, subsequent loads do not pick up changes made to the application view file, but it does set the preferences to the cached values loaded from that file. Here is some example code, after the second call to Preferences::RoutingApplicationView::LoadAppView the current defaults are defaults initially read from the mechanical application view.

Session.GetSession().Preferences.RoutingApplicationView.LoadAppView ( "ugroute_mech_in.xml" );
Session.GetSession().Preferences.RoutingApplicationView.LoadAppView ( "ugroute_elec_in.xml" );
Session.GetSession().Preferences.RoutingApplicationView.LoadAppView ( "ugroute_mech_in.xml" );


Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
fileNamefilename of application view.
NXString NXOpen::Preferences::RoutingApplicationView::Name ( )

Returns the application view name.


Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Preferences::RoutingPart* NXOpen::Preferences::RoutingApplicationView::PartPreferences ( )

Routing preferences related to parts.


Created in NX3.0.0.

NXOpen::Preferences::RoutingElectrical* NXOpen::Preferences::RoutingApplicationView::RoutingElectrical ( )

Routing electrical preferences structure
Created in NX3.0.0.


NXOpen::Preferences::RoutingLogical* NXOpen::Preferences::RoutingApplicationView::RoutingLogical ( )

Routing logical preferences
Created in NX3.0.0.


NXOpen::Preferences::RoutingMechanical* NXOpen::Preferences::RoutingApplicationView::RoutingMechanical ( )

Routing mechanical preferences
Created in NX3.0.0.


NXOpen::Preferences::RoutingPath* NXOpen::Preferences::RoutingApplicationView::RoutingPath ( )

Path preferences structure
Created in NX3.0.0.


NXOpen::Preferences::RoutingStock* NXOpen::Preferences::RoutingApplicationView::RoutingStock ( )

Stock preferences structure
Created in NX3.0.0.


NXOpen::Preferences::RoutingUserPreferences* NXOpen::Preferences::RoutingApplicationView::RoutingUserPreferences ( )

Routing user preferences
Created in NX11.0.1.


void NXOpen::Preferences::RoutingApplicationView::SetApplicationType ( NXOpen::Preferences::RoutingApplicationView::AppType  appType)

Sets the given routing application type.

This is only used in the context of routing to execute design rules. Application type should be set toPreferences::RoutingApplicationView::AppTypeNone before exiting from the routing applications.
Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
appTypeapp type
void NXOpen::Preferences::RoutingApplicationView::SetCurrentDiscipline ( const NXString discipline)

Sets the current discipline.

A discipline value of "" (the empty string) indicates no current discipline.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
disciplinediscipline
void NXOpen::Preferences::RoutingApplicationView::SetCurrentDiscipline ( const char *  discipline)

Sets the current discipline.

A discipline value of "" (the empty string) indicates no current discipline.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
disciplinediscipline
void NXOpen::Preferences::RoutingApplicationView::SetCurrentSpecification ( const NXString currentSpec)

Sets the current specification for the current discipline.

A specification value of "" (the empty string) indicates no current specification.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
currentSpeccurrent spec
void NXOpen::Preferences::RoutingApplicationView::SetCurrentSpecification ( const char *  currentSpec)

Sets the current specification for the current discipline.

A specification value of "" (the empty string) indicates no current specification.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
currentSpeccurrent spec
tag_t NXOpen::Preferences::RoutingApplicationView::Tag ( ) const

Returns the tag of this object.


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.