Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 783

Read data from BlockStyler

$
0
0

I have created a block styler in NX, with Vb.net code generated.
I got these thing in code generated.
Private Shared theSession As Session
Private Shared theUI As UI
Private theDlxFileName As String
Private theDialog As NXOpen.BlockStyler.BlockDialog
Private group0 As NXOpen.BlockStyler.Group' Block type: Group
Private string0 As NXOpen.BlockStyler.StringBlock' Block type: String

now i need to read the "string" entered in UI , and print that string using NXmessegeBox, when Apply button is pressed.

Public Function apply_cb() As Integer
Dim errorCode as Integer = 0
Try
/*Please come with code*/
Catch ex As Exception

'---- Enter your exception handling code here -----
errorCode = 1
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString)
End Try

how to fetch data from String block styler, please come with syntax.
I couldn't even trigger a listing window using Apply_cb(). Some one suggest.
thanks.


Viewing all articles
Browse latest Browse all 783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>