Navigation:  Sections >

Scripting Sections

Print this Topic Previous pageReturn to chapter overviewNext page

Sections Command Scripting Reference

 

Orca3D's Sections command can be scripted using Rhino's command scripting, and also using RhinoScript. Below the syntax of the command scripting is given.

 

 

Command Name: -OrcaSections (note that the "-" is required; otherwise the OrcaSections dialog will open)

Select type of section to create or <Enter> to finish ( ClearAll  Stations  Buttocks  Waterlines  Diagonals  Cants  Inclines  LayeringOptions ):

 

Notes:

1.Must have one or more surface/polysurface/mesh objects selected
2.Lists of values use standard Orca3D list syntax; e.g. 0,1,…,10
3.The decimal separator must be a dot "." and the list separator must be the comma ","

 

Command Options:

ClearAll – deletes all currently defined sections

Stations - specify Station information

Add - enter location values for the Stations, separated by commas; the Orca3D list syntax may be used (e.g., 0,1,...,10,12,...,20)

ClearExisting - delete the existing Stations

LayerName or LayerPrefix - enter the name or the prefix (depending on the LayeringOptions setting) of the layer that the Stations are to be put on

Color - set the R,G,B value for the Station color

EnableDisable - toggle the calculation and drawing of Stations

Buttocks - specify Buttock information

Add - enter location values for the Buttocks, separated by commas; the Orca3D list syntax may be used (e.g., 0,1,...,10,12,...,20)

ClearExisting - delete the existing Buttocks

LayerName or LayerPrefix - enter the name or the prefix (depending on the LayeringOptions setting) of the layer that the Buttocks are to be put on

Color - set the R,G,B value for the Buttocks color

EnableDisable - toggle the calculation and drawing of Buttocks

Waterlines - specify Waterline information

Add - enter location values for the Waterlines, separated by commas; the Orca3D list syntax may be used (e.g., 0,1,...,10,12,...,20)

ClearExisting - delete the existing Waterlines

LayerName or LayerPrefix - enter the name or the prefix (depending on the LayeringOptions setting) of the layer that the Waterlines are to be put on

Color - set the R,G,B value for the Waterline color

EnableDisable - toggle the calculation and drawing of Waterlines

Diagonals - specify Diagonal information

Add - enter location values for the Diagonals, separated by commas; the Orca3D list syntax may be used (e.g., 0,1,...,10,12,...,20). First enter a list of heights, then an angle.

ClearExisting - delete the existing Diagonals

LayerName or LayerPrefix - enter the name or the prefix (depending on the LayeringOptions setting) of the layer that the Diagonals are to be put on

Color - set the R,G,B value for the Diagonal color

EnableDisable - toggle the calculation and drawing of Diagonals

Cants - specify Cant information

Add - enter location values for the Cants, separated by commas; the Orca3D list syntax may be used (e.g., 0,1,...,10,12,...,20). First enter a list of longitudinal locations, then an angle.

ClearExisting - delete the existing Cants

LayerName or LayerPrefix - enter the name or the prefix (depending on the LayeringOptions setting) of the layer that the Cants are to be put on

Color - set the R,G,B value for the Cant color

EnableDisable - toggle the calculation and drawing of Cants

Inclines - specify Incline information

Add - enter location values for the Inclines, separated by commas; the Orca3D list syntax may be used (e.g., 0,1,...,10,12,...,20). First enter a list of heights, then an angle.

ClearExisting - delete the existing Inclines

LayerName or LayerPrefix - enter the name or the prefix (depending on the LayeringOptions setting) of the layer that the Inclines are to be put on

Color - set the R,G,B value for the Incline color

EnableDisable - toggle the calculation and drawing of Inclines

LayeringOptions - Sections may be put on layers by their section type (i.e., all Stations on one layer, etc.), or each section may be put on its own layer.

       LayerLocation - toggles between LayerByType and LayerBySection

       DeleteEmptySection - Toggles between Yes and No. If set to Yes, any Orca Section layers that have been previously defined but are now empty will be deleted.