NX How to set teamcenter role for managed nx session

2021-10-06T23:27:29Z
NX Open NX System Administration

Summary


Details

How to set teamcenter role for managed nx session

Solution



The following code will do it: 


Session theSession = NXOpen.Session.GetSession();


SessionSettings ss = theSession.NewDatabaseSessionOptions();


ss.Role = "DBA";


 


Make sure that the role to set is valid in Teamcenter for the user. For example, under the Organization
App, the user infodba under the group dba has the role DBA and ITAR Admin as below.
Those roles could be used for the example above.



 



Hardware/Software Configuration

Platform: AMD64
OS: windows
OS Version: 10_1709
Product: NX
Application: SYSENG
Version: V11.0.2
Function: NXOPEN

Ref: 002-8015687

KB Article ID# PL8015687

Contents

SummaryDetails

Associated Components

Block/UI Interface Stylers Knowledge Fusion Menuscript NX Open - All Languages NX Open Python Open for C/C++ Open for CAE Open for GRIP Open for Java Pre-NX6 UI Styler SNAP UDO