Skip to main content
The Cross-Section Diagram is used throughout the modern platform to plot arbitrary cross-sections, potentially with section data such as centroid, mesh, and principal axes. It uses diagram widget type "crossSection".

Implementation

Plot Parameters

Short Form Section Names

Within dev-environment/solver, the short form names for sections can be found in the file dsection_properties_v1.py. These names are used within the cross-section remote widget for the type parameter.

General Starting Tips and Pointers for Creating Diagrams

Diagrams can be created just from the diagram widget, specifically using lines and dimensions to outline the shape using the cross-section.

Basic Lines and Dimensions

Notice that units have to be added to prevent any errors. The points section outlines the line which can be colored and have line weights. The dimensions allows a dimensioning line to go along a certain length based on the values added in the x1, x2, y1, and y2 arguments.

Using Iteration for Complex Diagrams

Iteration is often required for creating diagrams. Take a look at the code for the story cross-sections below from timberShearWallASD:
This iterate function automatically creates an array which can be concatenated. Otherwise, you’ll need to specify using []. This is later called by the remote widget and sends this argument array to sectionsData.

Working with Remote Widgets

Cross-section diagrams are commonly used with remote widgets that generate section property data:

Best Practices

  1. Units: Always include units in coordinate specifications to prevent errors
  2. Organization: Group related lines and dimensions logically
  3. Color Coding: Use consistent colors for different materials or components
  4. Labels: Provide clear labels for dimensions and important features
  5. Iteration: Use the iterate() function for repetitive elements rather than manual arrays
When using the principalAxis parameter, ensure that a centroid location is also provided, as the principal axis will be plotted through the centroid.