Restricting the number of revisions on a drawing template

Tekla Structures
Not version-specific
Tekla Structures
Environment
Not environment-specific
Question:
I would like to restrict my drawing template to only show the last 10 drawing revisions. How can I achieve this?

Answer:
You need to edit the drawing template used in your drawing. The easiest way is to double click the drawing, which will open in Template Editor. Insert the following formula on the 'Revision' row:

if GetValue("NUMBER")>GetValue("LAST")-10 then
  Output()
else
  StepOver()
endif

where "NUMBER" is the revision number, and "LAST" is the revision number of the last revision.
도움이 되었습니까?