Showing results for 
Search instead for 
Do you mean 
Reply

How to replace the "populate Title block" with your own code (NX10)

As I already posted it over in CAM, I thought I'd post it here.

If you want to completely replace the Siemens supplied "Populate Title Block" dialog, you can do it, but you need 2 .MEN files, as some of the buttons/actions are not defined until you actually enter drafting.

 

With much help from GTAC (Thanks Amy!) and development...

 

First, you have to add this .MEN file in the \startup\ folder of (whaveter) "standard folder structure" folder you set up:

VERSION 120

EDIT UG_GATEWAY_MAIN_MENUBAR

MODIFY
  APPLICATION_BUTTON UG_APP_DRAFTING
  MENU_FILES GTAC_Populate_Title_Block.men  
END_OF_MODIFY

Second, you have to add this (as GTAC_Populate_Title_Block.men) in the \application\ folder of the "standard folder structure":

 

VERSION 120

EDIT UG_GATEWAY_MAIN_MENUBAR

MODIFY
  ! This button is for populate title block command launched from Drawing Format toolbar
  BUTTON UG_DRAFT_DRAWING_FORMAT_TITLE_BLOCK_POPULATE
  ACTIONS/REPLACE GTAC_Populate_Title_Block.dll

  ! This button is for populate title block command when a MB3 > Populate on title block is invoked
  BUTTON UI_TITLE_BLOCK_EDIT_TITLE_BLOCK
  ACTIONS/REPLACE GTAC_Populate_Title_Block.dll
  
  ! This button is for populate title block command when a new drawing is created
  BUTTON UI_DRAFT_EDIT_TITLE_BLOCK_FOR_DRAWING
  ACTIONS/REPLACE GTAC_Populate_Title_Block.dll
  
  ! This button is for populate title block command when a new sheet is inserted
  BUTTON UI_DRAFT_EDIT_TITLE_BLOCK_FOR_SHEET
  ACTIONS/REPLACE GTAC_Populate_Title_Block.dll

END_OF_MODIFY

With the appropriate changes for the name of the DLL.

 

Ken

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


5 REPLIES

Re: How to replace the "populate Title block" with your own code (NX10)

if someone needed it - I can provide you a NXOpen program I have written.

It replace the exisiting tilteblock in all sheets in a NX drawing part, with another titleblock , which have been modified a little ( added two extra cells)..

All cell's in titleblock is populated with attributes from component and drawingpart itself.

All associatives to the cells,  are maintained after the replacement....so it's very nice.

Lars

Re: How to replace the "populate Title block" with your own code (NX10)

Lars -

Some may be interested in that, but what I'm talking about is the dialog that comes up to fill in the "manual" values in the title block.

If you are in drafting, the "Drafting Tools" tab -> "Populate Title Block" icon (and the other 3 ways that I know of that pop up the same dialog).

If you don't want to use Siemen's dialog, you can replace it with your own.   And its somewhat "non-obvious" how to do that.

Writing the GUI & code to do the work is left as an "exercise for the reader".

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: How to replace the "populate Title block" with your own code (NX10)

Hi Lars,

I'm interested to your code.

Thank you...

Using NX 11 / RuleDesigner PDM

Re: How to replace the "populate Title block" with your own code (NX10)

Ken,

can you post the men and dll file ?

Thank you...

Using NX 11 / RuleDesigner PDM

Re: How to replace the "populate Title block" with your own code (NX10)

The 2 .men files are in the original post.  The name of the 1st one can be whatever you want (just make sure it is in the \startup\ folder UGII_SITE/GROUP/USER/VENDOR/WHATEVER_DIR.

The name of the other one is in the original post - again, the name doesn't really matter but it has to match.

 

The DLL is something you have to write (as I have NO IDEA how you would want to edit your title block).  If you want to play, start by writing a little DLL that pops up a "Hello World" dialog.  Then abuse from there.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled