NX Using NXOpen.Annotations.Gdt.GetText in place of ufs.Drf.AskGdtSymbol

2021-10-06T23:26:44Z
NX Open NX System Administration

Summary


Details

--------------- 
An MESException is thrown when method ufs.Drf.AskGdtSymbolInfo is used to get 
GD&T symbol information. The method NXOpen.Annotations.Gdt.GetText will 
retrieve the information and not throw an exception.



Solution

 The error "Unhandled operating system exception: e0434352" is thrown when 
method AskGdtSymbolInfo is used to get GD&T symbol information.


The .Net function NXOpen.Annotations.Gdt.GetText() will get the text and not 
throw an exception.


The code:


UFDrf.GdtSymbolInfo[] symbolInfo; 
theUfSession.Drf.AskGdtSymbolInfo(viewObjTag, symbolOrigin, out symbolInfo); 
symbolText = symbolInfo[0].text_info[0].text


Becomes:


NXOpen.Annotations.Gdt gdt1; 
gdt1 = (Gdt) NXOpen.Utilities.NXObjectManager.Get(viewObjTag); 
symbolText = gdt1.GetText(); 


See example program (Document ID: nx_api5089).


Note: This problem occurs in NX 10. Until the problem is resolved, 
NXOpen.Annotations.Gdt.GetText can be used as a work around.



Notes and References


Hardware/Software Configuration

Platform: AMD64
OS: window
OS Version: 764SP1
Product: NX
Application: SYSENG
Version: V10.0.1
Function: NXOPEN

Ref: 002-7008243

KB Article ID# PL7008243

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