Generates a step elevation symbol (Z-bar) between two overlapping parts in a Tekla drawing based on their 3D Z-level difference.
This feature automatically generates a standard symbol for floor/slab step elevations in Tekla Structures drawings. It calculates the height difference between parts directly from the 3D model.
The logic implemented in StepTagViewModel.cs follows these steps:
DrawingHandler.GetActiveDrawing()).ModelIdentifierSolid of each part and finds the maximum Z-coordinate (MaximumPoint.Z).MatrixFactory.ToCoordinateSystem(view.DisplayCoordinateSystem).The symbol consists of:
ANSI31_13 or custom) representing the step depth.DrawingColors).CreateStepTag Method Signature:public string CreateStepTag(
double textHeight,
string fontName,
string textColor,
double surfLen,
double stepHeight,
double hatchSpc,
double hatchLen,
bool useRectFill = false,
string fillName = "ANSI31_13"
)
textHeight: The font height in drawing units (mm).fontName: The name of the font (e.g., "Arial").textColor: The color name for the text (maps to DrawingColors).surfLen: The extension length of the horizontal/vertical lines of the Z-bar.stepHeight: The length of the offset line connecting the two levels.hatchSpc: Spacing between hatching lines.hatchLen: The depth of the hatching lines.useRectFill: If true, uses a filled polygon instead of lines.fillName: The hatch pattern name (e.g., "ANSI31_13").view.Attributes.Scale to ensure the symbol looks correct at any drawing scale.dh.GetActiveDrawing().CommitChanges() at the end of the operation to persist changes.