Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

BlockStyler - Enumeration Block

Status
Not open for further replies.

lklo

Industrial
Joined
Nov 24, 2010
Messages
226
Location
DK
Hi -

In blockstyler it is possible to create a enumeration block - with different presentations style..> OPTION MENU, RADIO BOX , PULLDOWN.
I'm used to only use the style OPTION MENU - which also make it possible to programmatically decide which option should be shown , when program is launched..
What I mean is, that it is not always the first option, that should be shown...This works very well ,
when I use the xxx.GetProperties().SetEnumMembers("Value", ****) and xxx.GetProperties().SetEnum("Value",***)...in the public sub: dialogShown_cb in my VB code...

My question is.. Can this also be done if the enumeration block has it's style as RADIO BOX ?
In the attached screenshot there is a small test dialog which shows OPTION MENU and RADIO BOX.
I would like to know if someone can tell me if it is possible to decide programmatically which option should be pre-selected in sample B , when dialog is shown.
But it should be controlled from the VB code - not the dialog file itself, because the pre-selected RADIO BOX should differ depending on which NX part is displayed during runtime..

regards lkl
 
 http://files.engineering.com/getfile.aspx?folder=2f4dab4e-9419-448e-9593-c13efe6c35bc&file=2017-02-16_15_25_13-2017-02-16_14_49_59-NX8.5_for_Siemens_Wind_Power_-_Block_UI_Styler_-_[D1542015_0.png
Hi ufsure -

Thank you so much for your reply....

The reason I asked was that I did some test for some days ago - without succeeding....
Today I tried again - but still without a "positive result"....in 1. attempt.

It seems like its possible to populate Option Menu & Pull Down from the vb code....But not the Radio Box.....please see page 1 , 2 , 3 in attached pdf file.

Then I made a 2.attempt...
I simply populated the options in "Values" AAA, BBB, CCC, DDD, in BlockStyler - and then it works.......please see page 4 in attached pdf file.

I just wonder why this is necessary in use of " Radio Box " - but maybe it is the way it works....?

regard lklo
 
 http://files.engineering.com/getfile.aspx?folder=eeca1b87-a242-41f9-8d4b-0171d91a9932&file=Enumeration_in_Block_styler.pdf
I was talking about setting the default option in Radio Box.

Regarding the items in Radio Box, the documentation says 'You can change the list of options after initialization only if presentation style is set to Option Menu'


Suresh
 
See Attached screenshot of the NX 11 documentation

Enum_Documentation_uft5fy.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top