RoutingApplicationView Class¶
-
class
NXOpen.Preferences.
RoutingApplicationView
¶ Bases:
object
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
New in version NX4.0.0.
Properties¶
Property | Description |
---|---|
ApplicationType | Returns or sets the given routing application type. |
CurrentDiscipline | Returns or sets the current discipline. |
CurrentSpecification | Returns or sets the current specification for the current discipline. |
Description | Returns the application view description. |
Filename | Returns the filename of the current application view. |
Name | Returns the application view name. |
Methods¶
Method | Description |
---|---|
GetDisciplines | Returns all of the disciplines available in the current application view. |
GetFabricationCharacteristics | Returns fabrication characteristics. |
GetOptionalCharacteristics | Returns the intersection of the optional stock characteristics and optional part characteristics for the current discipline of the application view. |
GetRequiredCharacteristics | Returns the intersection of the required stock characteristics and required part characteristics for the current discipline of the application view. |
GetSpecifications | Returns the specifications available in the current discipline. |
LoadAppView | Loads the preferences from an application view file. |
Enumerations¶
RoutingApplicationViewAppType Enumeration | Routing application types |
Property Detail¶
ApplicationType¶
-
RoutingApplicationView.
ApplicationType
¶ Returns or sets the given routing application type.
This is only used in the context of routing to execute design rules. Application type should be set to:py:class:Preferences.RoutingApplicationViewAppType.None <Preferences.RoutingApplicationViewAppType> before exiting from the routing applications.
-------------------------------------
Getter Method
Signature
ApplicationType()
Returns: Return type: NXOpen.Preferences.RoutingApplicationViewAppType
New in version NX5.0.0.
License requirements: routing_base (“Routing Basic”)
-------------------------------------
Setter Method
Signature
ApplicationType(appType)
Parameters: appType ( NXOpen.Preferences.RoutingApplicationViewAppType
) –New in version NX5.0.0.
License requirements: routing_base (“Routing Basic”)
CurrentDiscipline¶
-
RoutingApplicationView.
CurrentDiscipline
¶ Returns or sets the current discipline.
A discipline value of “” (the empty string) indicates no current discipline.
-------------------------------------
Getter Method
Signature
CurrentDiscipline()
Returns: Return type: str New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
-------------------------------------
Setter Method
Signature
CurrentDiscipline(discipline)
Parameters: discipline (str) – New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
CurrentSpecification¶
-
RoutingApplicationView.
CurrentSpecification
¶ Returns or sets the current specification for the current discipline.
A specification value of “” (the empty string) indicates no current specification.
-------------------------------------
Getter Method
Signature
CurrentSpecification()
Returns: Return type: str New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
-------------------------------------
Setter Method
Signature
CurrentSpecification(currentSpec)
Parameters: currentSpec (str) – New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
Description¶
-
RoutingApplicationView.
Description
¶ Returns the application view description.
-------------------------------------
Getter Method
Signature
Description()
Returns: Return type: str New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
Method Detail¶
GetDisciplines¶
-
RoutingApplicationView.
GetDisciplines
¶ Returns all of the disciplines available in the current application view.
Signature
GetDisciplines()
Returns: Return type: list of str New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
GetFabricationCharacteristics¶
-
RoutingApplicationView.
GetFabricationCharacteristics
¶ Returns fabrication characteristics.
These characteristics must be set for any fabrication created out of a Routing assembly.
Signature
GetFabricationCharacteristics()
Returns: Return type: list of NXOpen.Routing.CharacteristicListCharacteristicInformation_Struct
New in version NX9.0.0.
License requirements: routing_base (“Routing Basic”)
GetOptionalCharacteristics¶
-
RoutingApplicationView.
GetOptionalCharacteristics
¶ Returns the intersection of the optional stock characteristics and optional part characteristics for the current discipline of the application view.
Signature
GetOptionalCharacteristics()
Returns: Return type: list of NXOpen.Routing.CharacteristicListCharacteristicInformation_Struct
New in version NX9.0.0.
License requirements: routing_base (“Routing Basic”)
GetRequiredCharacteristics¶
-
RoutingApplicationView.
GetRequiredCharacteristics
¶ Returns the intersection of the required stock characteristics and required part characteristics for the current discipline of the application view.
Signature
GetRequiredCharacteristics()
Returns: Return type: list of NXOpen.Routing.CharacteristicListCharacteristicInformation_Struct
New in version NX9.0.0.
License requirements: routing_base (“Routing Basic”)
GetSpecifications¶
-
RoutingApplicationView.
GetSpecifications
¶ Returns the specifications available in the current discipline.
Signature
GetSpecifications()
Returns: Return type: list of str New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)
LoadAppView¶
-
RoutingApplicationView.
LoadAppView
¶ 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.<code> 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” );
</code>
Signature
LoadAppView(fileName)
Parameters: fileName (str) – filename of application view. NOTE: The full Unicode character set is not supported for this parameter. New in version NX4.0.0.
License requirements: routing_base (“Routing Basic”)