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
Thanks,
Jeff





RE: NX9 - Create Custom Dialog Box for Attributes
thread561-353249: Windows edit attribute
NX 7.5 64bit
NX 9.0.3.4 MP4 64bit
NX 10.0.3.5 MP3 64bit
www.studiotreccani.com
RE: NX9 - Create Custom Dialog Box for Attributes
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
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
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