Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Insert Sheet command

Status
Not open for further replies.

MI95SHO

Mechanical
Dec 20, 2012
35
0
0
US
I am trying to use a PAX file to control the templates available for my department, both New templates and Insert Sheet. The New template command seems to be working with my PAX file, and the Insert Sheet command shows all the templates, but will not actually load in the new sheet. If I leave the sheet PAX with only one callout, it does work however. All files are in the correct directory, and file access is granted.

Drawing PAX
Code:
<?xml version="1.0" encoding="UTF-8"?>

<Palette xmlns="[URL unfurl="true"]http://www.ugsolutions.com/Schemas/2002/UGPalettes"[/URL] schemaVersion="1.0">

<Presentation name="Customized" bitmap="\\shapecorp.com\k-drive\ug\title_blocks\NX8.5\Shape.jpg" FileNewTab="Shape Drawing" application="All" UsesMasterModel="Yes"/>


<PaletteEntry id="d1">
  <References/>
  <Presentation name="Metric B-Size" description="B-Size Shape Template w/ Metric Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_b_metric.prt"/>
  </Presentation>
  <ObjectData class="DrawingTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_b_metric.prt</Filename>
	<Units>Metric</Units>
	<UsesMasterModel>Yes</UsesMasterModel>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d2">
  <References/>
  <Presentation name="Metric A-Size" description="A-Size Shape Template w/ Metric Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_a_metric.prt"/>
  </Presentation>
  <ObjectData class="DrawingTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_a_metric.prt</Filename>
	<Units>Metric</Units>
	<UsesMasterModel>Yes</UsesMasterModel>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d3">
  <References/>
  <Presentation name="English B-Size" description="B-Size Shape Template w/ English Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_b_english.prt"/>
  </Presentation>
  <ObjectData class="DrawingTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_b_english.prt</Filename>
	<Units>English</Units>
	<UsesMasterModel>Yes</UsesMasterModel>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d4">
  <References/>
  <Presentation name="English A-Size" description="A-Size Shape Template w/ English Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_a_english.prt"/>
  </Presentation>
  <ObjectData class="DrawingTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_a_english.prt</Filename>
	<Units>English</Units>
	<UsesMasterModel>Yes</UsesMasterModel>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d5">
  <References/>
  <Presentation name="Dual DIM A-Size" description="A-Size Shape Template w/ Dual Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_a_dual.prt"/>
  </Presentation>
  <ObjectData class="DrawingTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_a_dual.prt</Filename>
	<Units>Metric</Units>
	<UsesMasterModel>Yes</UsesMasterModel>
  </ObjectData>
</PaletteEntry>


</Palette>

Insert Sheet PAX
Code:
<?xml version="1.0" encoding="utf-8"?>

<Palette xmlns="[URL unfurl="true"]http://www.ugsolutions.com/Schemas/2001/UGPalettes"[/URL] schemaVersion="1.0">

  <Presentation name="Sheet Templates" bitmap="drawing_new.bmp" FileNewTab="" application="All" UsesMasterModel="No"/>


<PaletteEntry id="d1">
  <References/>
  <Presentation name="Metric B-Size_NewSheet" description="B-Size Shape Template Sheetw/ Metric Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_b_metric_ns.prt"/>
  </Presentation>
  <ObjectData class="SheetTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_b_metric_ns.prt</Filename>
	<Units>Metric</Units>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d2">
  <References/>
  <Presentation name="Metric A-Size_NewSheet" description="A-Size Shape Template Sheet w/ Metric Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_a_metric_ns.prt"/>
  </Presentation>
  <ObjectData class="SheetTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_a_metric_ns.prt</Filename>
	<Units>Metric</Units>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d3">
  <References/>
  <Presentation name="English B-Size_NewSheet" description="B-Size Shape Template Sheet w/ English Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_b_english_ns.prt"/>
  </Presentation>
  <ObjectData class="SheetTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_b_english_ns.prt</Filename>
	<Units>English</Units>
  </ObjectData>
</PaletteEntry>

<PaletteEntry id="d4">
  <References/>
  <Presentation name="English A-Size_NewSheet" description="A-Size Shape Template Sheet w/ English Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_a_english_ns.prt"/>
  </Presentation>
  <ObjectData class="SheetTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_a_english_ns.prt</Filename>
	<Units>English</Units>
</ObjectData>
</PaletteEntry>

<PaletteEntry id="d5">
  <References/>
  <Presentation name="Dual DIM A-Size_NewSheet" description="A-Size Shape Template Sheet w/ Dual Dimensions">
	<PreviewImage type="UGPART" location="ShapeNX8.5\dwg_a_dual_ns.prt"/>
  </Presentation>
  <ObjectData class="SheetTemplate">
	<TemplateFileType>none</TemplateFileType>
	<Filename>ShapeNX8.5\dwg_a_dual_ns.prt</Filename>
	<Units>Metric</Units>
  </ObjectData>
</PaletteEntry>
  
  
</Palette>

Is there something wrong within my PAX? or is something else going on?

Thanks

Kyle

--
CAD Detail and Designer II
NX 7.5, 8, and 8.5 with SmarTeam Integration.
CATIA V5 R20-R22
 
Replies continue below

Recommended for you

Have you looked in the NX log file after you try and add one of your sheets?
Do you get any sort of error message?


Anthony Galante
Senior Support Engineer

NX5.0.6, NX6.0.5, NX7.5.5, NX8.0.0 -> NX8.0.3
NX8.5.0 -> NX8.5.3, NX9.0.0 -> NX9.0.2, NX10 Beta
 
From what I can tell, no.

Code:
Loading "C:\Program Files\Siemens\NX 8.5\ugii\templates\ShapeNX8.5\dwg_b_metric_ns.prt" which was saved in NX V8.5
  Read in all for part "C:\Program Files\Siemens\NX 8.5\ugii\templates\ShapeNX8.5\dwg_b_metric_ns.prt", cpu    0.032, real    0.032
Partition info: RM:1 (0.0, 0.0) CM:1 (0.0, 0.0) EXP:1 (0.0, 0.0) PATT:1 (0.0, 0.0) OCC:1 (0.0, 0.0) KF:1 (0.0, 0.0) 
Loaded and updated part "C:\Program Files\Siemens\NX 8.5\ugii\templates\ShapeNX8.5\dwg_b_metric_ns.prt" cpu    0.032, real    0.034
Closing/deleting Basic C:\Program Files\Siemens\NX 8.5\ugii\templates\ShapeNX8.5\dwg_b_metric_ns.prt
Called CONSTRUCTOR()
&MACRO ASK_ITEM 524288 (1 LIST 0) = 1  ! List
&MACRO      POSITION = 0 "Metric B-Size_NewSheet" ! Index/contents of selected item
&MACRO ASK_ITEM 524288 (1 LIST 0) = 1  ! List
&MACRO      POSITION = 0 "Metric B-Size_NewSheet" ! Index/contents of selected item
&MACRO END_ITEM 327680 (1 RADI 0) = 0  ! Use Template
&MACRO END_ITEM 524288 (1 LIST 0) = 1  ! List (Items selected)
&MACRO      POSITION = 0 "Metric B-Size_NewSheet" ! Index/contents of selected item
&MACRO END_ITEM 1507328 (1 LIST 0) = 1  ! List (Items selected)
&MACRO      POSITION = 0 "English B-Size_NewSheet" ! Index/contents of selected item
&MACRO END_ITEM 2490368 (1 OPTM 0) = 4  ! A0 - 841 x 1189
&MACRO END_ITEM 2686976 (1 OPTM 0) = 0  ! A - 8.5 x 11
&MACRO END_ITEM 2883584 (1 REAL 0) = 841.0000000000000000  ! Height
&MACRO END_ITEM 3080192 (1 REAL 0) = 1189.0000000000000000  ! Length
&MACRO END_ITEM 3276800 (1 OPTM 0) = 5  ! 1:1
&MACRO END_ITEM 3473408 (1 OPTM 0) = 3  ! 1:1
&MACRO END_ITEM 3670016 (1 REAL 0) = 1.0000000000000000  ! :
&MACRO END_ITEM 3866624 (1 REAL 0) = 1.0000000000000000  ! 
&MACRO END_ITEM 4849664 (1 OPTM 0) = 0  ! Model
&MACRO END_ITEM 5701632 (1 LIST 0) = 0  ! List (Items selected)
&MACRO END_ITEM 6684673 (1 STRN 0) = "SHT2"  !  
&MACRO END_ITEM 7208960 (1 STRN 0) = "2"  ! 
&MACRO END_ITEM 7602176 (1 STRN 0) = ""  ! 
&MACRO END_ITEM 7798784 (1 STRN 0) = "A"  ! Revision
&MACRO END_ITEM 8388608 (0 RADI 0) = 0  ! Millimeters
&MACRO END_ITEM 8585216 (0 RADI 0) = 1  ! 3rd Angle Projection
&MACRO END_ITEM 8781824 (1 BOOL 0) = 1  ! Automatically Start View Creation
&MACRO END_ITEM 8978432 (1 RADI 0) = 0  ! View Creation Wizard
&MACRO END_ITEM 9371648 (1 BOOL 0) = 0  ! No Title
&MACRO END_ITEM 9764866 (1 BOOL 0) = 1  ! Preview
&MACRO DIALOG_END -2, 0 ! ##01Sheet: OK
&MACRO FOCUS CHANGE IN 1
UNDO_UG: Recyclable status of mark 47  set to True  
&MACRO MENU, 0, UG_LWIN_FILE_EXIT ListingWindowMenuBar !
&MACRO FOCUS CHANGE IN 1
&MACRO MENU, 0, UG_HELP_SYSTEM_LOG UG_GATEWAY_MAIN_MENUBAR <UG_HELP> ## !

--
CAD Detail and Designer II
NX 7.5, 8, and 8.5 with SmarTeam Integration.
CATIA V5 R20-R22
 

Kyle,

Two questions:

Have you tried temporarily adding one of the NX OOTB template parts to the pax file to see if those parts work from this pax file?
Have your template parts been marked as templates? ("Menu -> Tools -> Drawing Format -> Mark As Template...")

Regards,
Joe
 
Joe,

I just verified, the templates are marked as templates, and if I try to insert a A0-A3 (NX default) sheets in my PAX, they work great.

Thanks.

Kyle

--
CAD Detail and Designer II
NX 7.5, 8, and 8.5 with SmarTeam Integration.
CATIA V5 R20-R22
 
I copied your PAX file and tested on my system with NX8.5 and NX9 and it works.
I just copied some templates I have, renamed them and put them in a ShapeNX8.5 folder so I didn't have to make any edits to your pax.

I can only surmise from that, that the PAX file is ok. To me it's either your environment or template files.
Can you post your log again from a session where you try and add your sheets, just make sure this time that you post more of it (before and after where the template is added).
Usually the bit I'm interested in is before what you posted.

Anthony Galante
Senior Support Engineer

NX5.0.6, NX6.0.5, NX7.5.5, NX8.0.0 -> NX8.0.3
NX8.5.0 -> NX8.5.3, NX9.0.0 -> NX9.0.2, NX10 Beta
 
Thanks PhoeNX for looking into the PAX. I did some for evaluation of the template files and found that the issue; it was do to the sheet setup being set for the metric templates to inches to achieve A & B size drawings. Once I converted the sheet size to metric of the equivalent A/B size sheets, everything started working smoothly.

Issue resolved. Thanks for everyone's help!

Kyle.

--
CAD Detail and Designer II
NX 7.5, 8, and 8.5 with SmarTeam Integration.
CATIA V5 R20-R22
 
Status
Not open for further replies.
Back
Top