×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

BlockStyler - Enumeration Block

BlockStyler - Enumeration Block

BlockStyler - Enumeration Block

(OP)
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

RE: BlockStyler - Enumeration Block

Yes you can set the selected value same as you do in option menu. xxx.GetProperties().SetEnum("Value",***)

Suresh
www.technisites.com.au

RE: BlockStyler - Enumeration Block

(OP)
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

RE: BlockStyler - Enumeration Block

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
www.technisites.com.au

RE: BlockStyler - Enumeration Block

See Attached screenshot of the NX 11 documentation

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources