Plateia Cross sections - Work with Macro commands

First, Draw cross-section view

Then prepare one cross-section with TCS Elements

In addition to the geometry of the TCS elements, the macro can also remember:
- planimetry,
- blocks,
- labeling,
- projection points.

An example of a prepared cross-section:

mceclip0.png

 

Save macro

After you complete one cross-section you have to save it.
1. Run Save Macro (41H5).

mceclip1.png
2. In the drawing, click on the cross-section you prepared earlier.
3. In the Record macro dialog click the mceclip3.png button and select an existing LPS file or define a new one.

mceclip2.png
The list of macro-definitions includes a list of all macros that are recorded in the LSP file.
4. Type the name of the current macro in the »New cross-section macro - definition name« edit field.

mceclip4.png
5. Confirm by pressing the OK button.

 

Run Macro

The created macro can now be played on the remaining cross-sections.
1. Run Macro (51H3).

mceclip5.png
2. Select the area where the macro should run. In this case, from the second to the last cross-section.

mceclip6.png
3. Confirm by pressing OK.

mceclip7.png

mceclip8.png

 

Recreate Macro into the new one

In this case, we are going to change the slope of the embankments. After that, we are going to save it as a new macro in the LSP file.
1. Run the Edit (41I8) command and select the embankment.

mceclip9.png
2. Change the slope of the embankment. In our case, we changed from 1:1.5 to 1:3.0.

mceclip10.png
3. Do the same with the embankment on the other side.
4. Run Save Macro (41H5).

5. In the drawing, select the cross-section you edited.
6. Save a new macro with a different name than before.

mceclip11.png
7. Confirm by pressing the OK button.

 

Pre-prepared Macros

The Plateia software also offers a library of pre-defined macros. With the help of these macros, the user can quickly draw cross-sections. In addition, you can also modify, save and reuse these macros.
If you followed this tutorial you must first delete all existing TCS elements with the Erase Elements (41I6) command.
1. Run the Macro command.

mceclip12.png
2. Click on the tick button to select all the cross-sections.
3. Press on the folder button to find pre-prepared macros. They are saved in the following folder:
C:\Users\%USERNAME%\AppData\Roaming\CGSA\CGSApps202X%lang%

mceclip13.png
4. Select pre-prepared macro.

mceclip14.png
5. Confirm by pressing OK.

 

Plateia Cross-Sections – Save and Play Macro for All Cross-Sections

(from CGS Labs 2025.1) 

A macro allows you to save the configuration of a prepared cross-section and reuse it on other cross-sections.

In addition to the geometry of the TCS Elements, the macro can also store planimetry, blocks, labeling, and projection points.

With CGS Labs 2025.1, the macro workflow can be used to save and play macro definitions for all cross-sections, making it easier to transfer prepared cross-section configurations.


Prepare a Cross-Section

First, create the cross-section view and prepare one cross-section with the required TCS Elements.

[Example: Prepare one cross-section with the required pavement, embankments, planimetry, labels, blocks, or projection points.]

The prepared cross-section is then used as the basis for the macro.


Save Macro

After you complete the required cross-section, save it as a macro.

Workflow

  1. Run Save Macro (41H5).
  2. In the drawing, select the prepared cross-section.
  3. In the Record macro dialog, select an existing LSP file or define a new one.
  4. Enter the name of the macro in the New cross-section macro-definition name field.
  5. Confirm by pressing OK.

[Note: The macro-definition list contains the macros already recorded in the selected LSP file.]


Play Macro on Cross-Sections

Once the macro has been saved, it can be applied to the required cross-sections.

  1. Run Macro (51H3).
  2. In the Run Macro dialog, select the required cross-section range.
  3. Select the saved macro definition.
  4. Choose how existing TCS Elements should be handled.
  5. Confirm by pressing OK.

In the example from the existing workflow, the macro is applied from the second cross-section to the last cross-section.

[Tip: Use the cross-section selection options in the Run Macro dialog to control where the macro is applied.]


Save and Play Macro for All Cross-Sections

When working with a large number of cross-sections, you can use the improved macro workflow to work with all cross-sections.

The basic workflow is:

[Prepare Cross-Section] → [Save Macro] → [Select All Cross-Sections] → [Play Macro]

This is useful when the same cross-section configuration needs to be reused throughout a project.

Example

Prepare one cross-section with the required TCS Elements, planimetry, blocks, labels, and projection points.

Then:

1. Save the configuration

Run Save Macro (41H5) and save the prepared cross-section as a macro definition.

2. Select the required cross-sections

Use the macro workflow to select the cross-sections where the macro should be applied.

3. Play the macro

Run Macro (51H3) and select the saved macro definition.

4. Apply the macro

Confirm the operation to apply the macro to the selected cross-sections.

[Result: The prepared cross-section configuration can be reused instead of creating the same TCS Elements and related settings manually on each cross-section.]


Modify and Save a Macro as a New Definition

A saved macro can also be modified and stored as a new macro definition.

For example, you can change the slope of an embankment and save the modified configuration under a different name.

  1. Run Edit (41I8) and select the embankment.
  2. Change the embankment slope.
  3. Apply the same modification to the other side if required.
  4. Run Save Macro (41H5).
  5. Select the edited cross-section.
  6. Save the macro with a different name.
  7. Confirm by pressing OK.

In the example support article, the embankment slope is changed from 1:1.5 to 1:3.0 before the modified cross-section is saved as a new macro definition.


Commands

Command Number Purpose
Save Macro 41H5 Save a prepared cross-section as a macro definition
Macro 51H3 Play/apply a saved macro to selected cross-sections
Edit 41I8 Modify existing TCS Elements before saving a new macro
Erase Elements 41I6 Remove existing TCS Elements when required before applying a macro

[Version: CGS Labs 2025.1]

 

Keywords; Plateia, Cross-Sections, TCS Elements, Typical Cross Sections, Cross-Section Macros, Macro Commands, Save Macro, Run Macro, Play Macro, Macro Definition, Macro Library, Pre-prepared Macros, LSP File, Cross-Section Configuration, Planimetry, Projection Points, Embankment Slope, Edit, Erase Elements, Plateia, CGS Labs, planimetry, blocks, labeling, projection points, Save Macro (41H5), Macro (51H3), Edit (41I8), and Erase Elements (41I6), CGS 2025.1