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

Get Feature name from UI Block styler

$
0
0

Hello again,

I cant find out how to get name of selected feature from UI Block styler. I have a block SelectPattern As NXOpen.BlockStyler.SelectFeature and I want to get name of this feature and use it for something. For example

Dim lw As ListingWindow = theSession.ListingWindow
Dim SelectPatternProps As PropertyList = SelectPattern.GetProperties()
Dim pattern0 As String = SelectPatternProps.GetString("Cue")
SelectPatternProps.Dispose()
SelectPatternProps = Nothing
 
lw.Writeline("Feature name: " & pattern0)

Of course, this code just find name of selected block, but how can combine it with .GetFeatureName? I also tried something like this, but with no succes:

Dim SelectPatternProps As String = SelectPattern.ToString()
lw.Writeline("Feature name " & SelectPatternProps)

Viewing all articles
Browse latest Browse all 783

Trending Articles



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