Passer au contenu principal

RcBuildingCreateFromRoofPrint

Command Name Icon Menu Path
RcBuildingCreateFromRoofPrint
 
Not yet in menu (CLI only)

Overview

This command processes roof geometry for the 3D modeler.

Prerequisites

  • Requires closed 3D roof curves.

  • Input curves can be either attributed or raw geometry.

Attribute Management

  • Building Grouping: If attributes are present, a common identifier (e.g., Building ID) is used to group multiple roof parts. This value is mapped to the BuildingID property in the modeler classes.

  • Elevation (ZMin): An optional attribute can define the building’s base altitude. If provided, generated Roofprint curves are set to this Z-value; otherwise, they are created at Z = 0.0.

Grouping for Raw Geometry

  • If the input curves lack attributes, they must be pre-grouped. The command uses Rhino Group membership to associate different roof elements with their respective building.

Output Options

  • Users can choose to either transform the original curves or duplicate them to create new entities compatible with the 3D modeler.


Workflow

Step 1: Initial Options

ExempleWhen launching the command, the first prompt defines the generation logic:

  • RoofPrintLayer: Select the source layer containing the roof curves (e.g., 'Roofs1').

  • ComputeConstrId (yes/no): Defines if the ConstrID attribute should be initialized. Recommended: yes.

  • OriginalCurves (duplicate/modify):

    • Duplicate: Creates new entities for the modeler while preserving source geometry. (Preferred)

    • Modify: Transforms original curves directly into modeler objects.

Step 2: Attribute Mapping

The second prompt defines how building data is structured:

  • BuildingID: Select the attribute used to group separate roof parts into a single building (e.g., selecting the 'id' attribute).

    • If undefined: The command will fallback to Rhino Groups to identify building units.

  • ZMin: Select the attribute defining the base altitude of the building (e.g., 'r_zminid').

    • If undefined: Roofprint curves are created at Z=0.0.

Step 3: Execution & Selection
  1. Review the summary displayed in the command line.

  2. Select curves: Pick specific curves or hit [Enter] to process all objects on the selected layer.


Example

Once processed, the CLI confirms the creation of the semantic structure:

  • Roofprint & Building feature classes created.

  • Objects stored and mapped with their respective IDs.

  • Ready for modeling: The system confirms you can now proceed to the 3D generation.

(ツ) Success: You can now use the RcBuildingModelerModelize command!