Sign in to your account to download products and manage your subscription.
Automatic frame for an engineering report
- Guides and tutorials for TechEditor
- Hits: 1047
A high-quality report is not only about correct calculations. The way the document is designed is also important.
Often, textual technical documentation needs to be framed. It can be the requirements of building codes, the wishes of the customer, or an element of your corporate style.
If you work in a regular text editor, you need to draw such a frame separately and insert it as a background image, for example. This may cause problems with document margins and other artifacts. But is there a way to draw the frame directly in the report, without taking into account any margins and indents?
That's exactly what TechEditor does. To get started, let's use the drawing automation. Enter the "rectangle" command, specify the necessary coordinates, and make sure that the report gets a frame. For these purposes, we use a simple script. Each command of this script draws a graphic primitive or sets the necessary graphic attributes.
Let's make it a little more complicated. For example, let's make sure that the title page of the report does not contain any frames. To do this, let's create a loop that goes through all the sheets of the report except the first one. By default, the script commands draw graphics on all pages of the report. But if you specify the sheet number explicitly, the TechEditor will take it into account. Make sure that the frame is displayed starting from the second sheet.

