BCT EasyPlot allows convenient and flexible stamping of drawings in various formats.

Therefore BCT EasyPlot offers numerous options which influence the stamping behaviour in different ways. The following explains how to add custom stamps and gives some examples for typical stamps.

Adding a new stamp

All stamp defintions need to be listed in the file %BCT_DEF_DIR%/config/bct_easyplot_printer.ini in the [BCT_EASYPLOT_STAMPS] section.

Follow these steps to add a new stamp.

1. Define a new stamp block by copying an existing one e.g.
    [TimestampFixedPosition]
    POSITION = TOPLEFT
    OFFSET_X = 8
    OFFSET_Y = 8
    ROTATION = 0
    FONTSIZE = 10
    FONTSTYLE = normal
    COLOR = RGB(160,160,164)
    OPACITY = 1.0
    SCALE = no
    SCALE_POSITION = no
    TEXT = "User" print_user:"Date" print_date
    SEPARATOR = " "
    Add the stamp to the list of all available stamps in
    [BCT_EASYPLOT_STAMPS] e.g.

    stamps = DYNAMIC:Timestamp:Objectstamp:TimestampFixedPosition

2. Use the stamp in a virtual printer, e.g.
    [CAD_A3]
    DINA0H = A3:auto:auto:P:auto:HP LaserJet 8000 Series PS:0::TimeStampFixedPosition

Note:
After adding or modifying a stamp in bct_easy_plot.ini you can apply the change by using file->Reload printer Configuration in BCT EasyPlot Server.

Position and Offset

For each stamp a "POSITION", an "OFFSET_X" and an "OFFSET_Y" need to be defined.  "OFFSET_X" and "OFFSET_Y" are indicated in millimeters. The following image illustrates the possible values for "POSITION" and how "OFFSET_X" and "OFFSET_Y" are influencing each "POSITION".

Defining the stamp text

The text of a stamp is defined by the attribute "TEXT" in the stamp definition.

Below are some typical samples for stamp texts.

A plain text can be added to the drawing like this:

[TIPS_NAME]
POSITION = BOTTOMLEFT
OFFSET_X = 10
OFFSET_Y = 10
ROTATION = 0
FONTSIZE = 10
FONTSTYLE = bold
TEXT = "Printed with BCT EasyPlot"
SCALE = yes

This is how it looks like:



The fixed keywords print_user and print_date allow adding the Teamcenter username and the print date to a stamp:

TEXT = "printed by" print user: "on" print_date

The output looks like this:



To concatenate the two sections with a space instead of a comma the separator can be defined.

[TIPS_STAMP]
POSITION = BOTTOMLEFT
OFFSET_X = 10
OFFSET_Y = 10
ROTATION = 0
FONTSIZE = 10
FONTSTYLE = bold
TEXT = "printed by" print_user: "on" print_date
SCALE= yes
SEPARATOR = " "

The ouput looks like this:

The item ID can be added to a stamp this way:

TEXT = "Component" Item:item_id

The output looks like this:



If the drawing is printed in assembly context, information on the top assembly can be added:

TEXT = "Component" Item:object_name: "is used" TOP:quantity: "times in assembly" TOP:Item:object_name

Output:



The following table lists various samples for attributes that can be used in a stamp text:

 

SyntaxDescription
print_userUser name
print_dateCurrent date
Item:item_idItem ID
Dataset:object_nameName of the drawing
Dataset:object_typeType of drawing
Dataset:owning_user.user_idName of the drawing owner
Dataset:last_mod_dateLast modification date
Dataset:object_descDrawing description
Form:Item:user_data_1Content of the user_data_1 attribute of the ItemMasterForm
Form:ItemRevision:user_data_1     Content of the user_data_1 attribute of the ItemRevisionMasterFormul

Stamps depending on values of Teamcenter attributes

It is possible to have a stamp only added to a drawing depending on the value of a certain Teamcenter attribute.

For example you can have a  "RELEASED" stamp applied only if the  release_status has the value 60 .

[TIPS_STAMP]
POSITION = CENTER
OFFSET_X = 0
OFFSET_Y = 0
ROTATION = -30
FONTSIZE = 28
FONTSTYLE = bold
OPACITY = 0.2
TC_ATTRIBUTE = ItemRevision:release_status = 60
TEXT = "RELEASED"

Output:

Contact

Do you have questions or need detailed information?

Please do not hesitate to contact us: Ms. Jasmin Meier, phone: +49 7852 996-253 or use the following [contact form].

More information about BCT EasyPlot


Do you have further questions regarding this topic?
We invite you to an active exchange with other users... Join our LinkedIn Group!