Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

title block attribute syntax?

Status
Not open for further replies.

mthomp

Mechanical
May 4, 2010
7
Ok... here's the dumb question of the day! TC2007 & NX6. I've been tasked to update our TC drawing template files so that parts of the title block info gets filled in automatically via model attributes. The problem I have is that the text only pics up the attributes in the drawings... not from the model. Any ideas? Is there something in the syntax that tells the note to pick up the model attribute versus the drawing attribute? If, via the note dialogue box, I try to put in the attribute <W@DB_PART_NO> it only sees the dwg db part number and not the models. Any ideas what I'm doing wrong?
 
Replies continue below

Recommended for you

Jerry,
I'm still having an issue. Essentially, the note is calling the object attribute of the comp as <W!12345@?DB_PART_NO> in the template drawing file. When the pallet calls the drawing template onto a new model, the note wigs out and displays as a box w/a slash thru it. If I edit the note, it displays as <W!O@?DB_PART_NO>.

As far as I can tell, the note is expecting the original model and won't recognize the substituted model, even though identical attributes exist in both. How do I over come this? ...any ideas?
 
I think I remember a thread pertaining to this - I just need to find it.
Do you have a seperate drawing and model file (master model) ?
 
Jerry,

Yes... seperate models and drawings. Also running TC2007 (or at least getting ready too...).

I've been searching the boards all morning without much success... However, the thread you mentioned did help. It seems there are some canned attributes that can get passed from models to dwgs that update correctly when using a template part from a pallet.. these include:
<W@$SH_SHEET_NUMBER>
<W@$SH_NUMBER_OF_SHEETS>
<W@$SH_SHEET_SCALE_NUMERATOR>
<W@$SH_SHEET_SCALE_DENOMINATOR>
<W@$SH_SHEET_SIZE>
<W@$SH_SHEET_UNITS>
<W@$SH_SHEET_PROJECTION_ANGLE>
<W@$SH_MASTER_PART_NAME>
<W@$SH_PART_NAME>
What I'd like to find are anothers that are available for NX6 & TC, such as the std db attributes:
db_part_name
db_part_no
db_part_rev
db_part_desc
etc....

Any ideas where I could find this info?
 
There are no built-in routines for 'db_' attributes, but if those attributes have been added to the NX part file and they are visible under the Part Properties dialog, you can link text notes directly to the Attributes without having to use a built-in extraction routine, just use the 'Reference' option when creating the notes.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
John I have question to the workflow, you told in other thread above. The master model template for drawings is working - fine. What is the workfow for sheet templates?
for example the second sheet in the same drawing?
How must handle create sheet templates and attributes?
TIA
 
The second sheet is NOT a file of it's own, once it has been added to an existing drawing. What NX does is take the 'drafting' content of the 'Sheet Template' and 'imports' it into the existing Drawine file and moves all of this information onto an additional Drawing sheet that's created by this operation. Continuing to invoke the 'Add Sheet' funtion will continue to repeat the above process over and over again, adding N-number of additional 'sheets'. However, the original Drawing Template file used to create the original Master Model Drawing is still the FILE in 'charge' of the stuff which has been discussed in this and the referenced thread.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
thx, John,
I'm still fighting - inheriting the attributes from the master to the second sheet ( from sheet template) - or did I miss something?
thx
 
Here's a question, a bit different but certainly related....
I'm trying to modify an existing native pax file to load TC drawing templates. Unfortunately, I can't seem to get it right. Anyone have a clue as to what I'm mucking up?
<code>
<PaletteEntry id="d1">
<References/>
<Presentation name="D-SIZE, 1 SHT">
<PreviewImage type="UGPart" location="tc-dwg-d-size/a.prt"/>
</Presentation>
<ObjectData class="DrawingTemplate">
<TemplateFileType>none</TemplateFileType>
<Filename>tc-dwg-d-size/a.prt</Filename>
</code>
</ObjectData>
</PaletteEntry>
 
Mthomp,

Here's an example (from
"%UGII_BASE_DIR%\ugii\templates\nxdm_ugs_drawing_templates.pax")
showing the Teamcenter notation. Note that there is never a .prt needed and that the @DB/ precedes all part names.

Hope this helps, Joe

<PaletteEntry id="d1">
<References/>
<Presentation name="A - Drawing" description="NX Example, 2 Sheets">
<PreviewImage type="UGPart" location="@DB/A-drawing-template/A"/>
</Presentation>
<ObjectData class="DrawingTemplate">
<TemplateFileType>none</TemplateFileType>
<Filename>@DB/A-drawing-template/A</Filename>
<Units>English</Units>
<UsesMasterModel>Yes</UsesMasterModel>
<ItemType>Item</ItemType>
<RelationType>specification</RelationType>
</ObjectData>
</PaletteEntry>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor