Cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Text Annotation

Creator
Creator

I want to automatic some text blocks

 

I have a drawing (draft mode) that is the master model that has 3 separate parts (models) imported into it.

 

I would like the text box that is in the drawing to automatically give me

- "ID" value of the drawing

- "Name" value of the drawing

- "Revision" value of the drawing

- "Date" that the drawing was created or even the current date

- "Sheet # of #" --> If I am on Sheet 2 of 3, I want it to say "Sheet 2 of 3"

 

9 REPLIES 9

Re: Automatic Text Annotation

Honored Contributor
Honored Contributor

Teamcenter managed, or native?

-Dave
NX1867(if it had versions) | Teamcenter 11.6 | Windows 10

Re: Automatic Text Annotation

Creator
Creator

Team Center managed

Re: Automatic Text Annotation

Honored Contributor
Honored Contributor

Phoenix PLM has some videos:

 

http://www.phoenxplm.com.au/files/tips_tricks/TipsTricks_201504_NXattributes.pdf

 

http://www.phoenxplm.com.au/files/tips_tricks/TipsTricks_201507_AutoText.pdf

 

See if those help

-Dave
NX1867(if it had versions) | Teamcenter 11.6 | Windows 10

Re: Automatic Text Annotation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

See also docs:

https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_help/#uid:index_drafting:id700849:id1268622:id...

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


Re: Automatic Text Annotation

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @bdemps ,

 

Create following expressions in part and use them in Table or Note:

 

ug_askPartAttrValue("DB_PART_NO")

ug_askPartAttrValue("DB_PART_NAME")

ug_askPartAttrValue("DB_PART_REV")

subString( ug_askPartAttrValue( "date" ),1, 11) -> Unitless in Dimensionality

 

Create date attribute named "date" in part .

Use SHEET <W@$SH_SHEET_NUMBER> of <W@$SH_NUMBER_OF_SHEETS> for Sheet number.

 

Or watch 2nd video which uses Part attributes directly.

 

(view in My Videos)

 

(view in My Videos)

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!

Re: Automatic Text Annotation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Hey @SamadhanGaikwad ,

In your first video, when you create the date attribute it says "May 10", but when you create the expression and add the note on the drawing it says "May 9"?

Re: Automatic Text Annotation

Siemens Phenom Siemens Phenom
Siemens Phenom

@cowski1 you're right. That shouldn't happen, observed twice at different time. I thought it's at my end only.

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!

Re: Automatic Text Annotation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I'd suggest referencing the part attribute ("DATE") directly with the expression. The date format can be controlled with the UGII_DEFAULT_DATE_ATTRIBUTE_DISPLAY_FORMAT variable.

Re: Automatic Text Annotation

Siemens Esteemed Contributor Siemens Esteemed Contributor
Siemens Esteemed Contributor

Since it's being managed by teamcenter, you can use attribute mapping to map the creation date, released date, revised date, etc from Teamcenter to NX.

Ben Broad | PLM Enthusiast | Siemens GCSS

NX (v17 - 1876) | Teamcenter (9 - 12)
Value Based Licensing | Adaptive UI | BETA Registration