Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

Add an image to ug palatte file (pax)

Status
Not open for further replies.

KavyaRao

Mechanical
Joined
Jan 22, 2018
Messages
1
Location
IN
Hi,

Could any one help me knowing adding images in pax file is feasible?
Meaning - When i click on File->New->Drawing tab it should show me the image i have added in pax file.
Note- It is not the preview image i am talking about.

Regards,
 
Looking at the .pax files that ship with NX is a great place to start. The entry below comes from the "ugs_drawing_templates_sample.pax" file (NX 9). Note the highlighted line; it will display the "drawing_template.jpg" file in the new drawing dialog box. NX will look for this jpg file in the same folder that the .pax file was loaded from; the .jpg file can be stored elsewhere as long as you provide the full path. This preview image only shows up on the file new dialog, it is separate from the NX part file preview image.

Code:
  <PaletteEntry id="d1">
    <References/>
    <Presentation name="A - Size" description="Creates 8.5in x 11in size drawing" tooltip="This NX template example creates an A size drawing that references an existing model.">
        [highlight #FCE94F]<PreviewImage type="UGPart" location="drawing_template.jpg"/>[/highlight]
    </Presentation>
    <ObjectData class="DrawingTemplate">
        <TemplateFileType>none</TemplateFileType>
        <Filename>Drawing-A-Size-template.prt</Filename>
        <Units>English</Units>
        <UsesMasterModel>Yes</UsesMasterModel>
    </ObjectData>
  </PaletteEntry>

www.nxjournaling.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top