Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX9 - Create Custom Dialog Box for Attributes 1

Status
Not open for further replies.

jmarkus

Mechanical
Jul 11, 2001
377
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
 
Replies continue below

Recommended for you

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
 
You can get a Visual Studio IDE for free (the 'express' or 'community' versions) here:

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:

www.nxjournaling.com
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor