×
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

NX9 - Create Custom Dialog Box for Attributes

NX9 - Create Custom Dialog Box for Attributes

NX9 - Create Custom Dialog Box for Attributes

(OP)
We use part attributes to populate our drawing title block. Currently we right click on the part in the assembly navigator and edit each attribute as required. Is there a way to make a custom dialog box to load and display specific attributes so that they can be edited through the dialog box and updated in the part?

Thanks,
Jeff

RE: NX9 - Create Custom Dialog Box for Attributes

(OP)
Thanks studiotreccani!

Since that thread is now closed, I would like to ask if there is a way to loop the attributes assignment and text boxes. For example, if I want to edit the journal to use 8, or 10, or more attributes, I need to declare Label1, Label2, Label3...Label10. It would be much easier if I could use a For-Next loop or something like that, but I don't see a way to so that in the code for the form (I don't have or know how to get Windows Form designer, and I am more partial to coding by line instead of by GUI).

Thanks,
Jeff

RE: NX9 - Create Custom Dialog Box for Attributes

You can get a Visual Studio IDE for free (the 'express' or 'community' versions) here:
https://www.visualstudio.com/en-us/products/visual...

I highly recommend using an IDE if you are creating windows forms; it will let you drag and drop controls into place and will help write the code to manage the events that they fire. Even if you aren't creating windows forms, I still recommend using an IDE; the 'auto-complete' feature in the IDE helps you to write the code faster with no syntax errors.

If you want to create an array of controls at run time do a websearch on the term "{programming language of choice} control array". You'll get lots of hits, here is one example for VB.net:
http://stackoverflow.com/questions/5299435/how-to-...

www.nxjournaling.com

RE: NX9 - Create Custom Dialog Box for Attributes

I have created a VB code for this. Program is using BlockStyler instead of Windowsform...Think it's a little more nice, with the dialogs, in NX form.
Program display "type in" field for about 20 predefined attributes. If attributes doesn't exits, the will be created during runtime...A very nice feature in this program ,is when attributes already have a value - this value is being displayed in the type in field, when program launch the menu....If you like , I'll share code...
lklo

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