Model.CE_GlobalSetInt#
- Model.CE_GlobalSetInt(name, value)#
Sets the value of a global integer connector variable.
- Parameters:
name (hwString) –
The name of the parameter to set:
g_ce_colorby
Determines the connector coloring:
0 - by state
1 - by component
2 - by layer
3 - by style
Range: 0 - 3
g_ce_imprint_remesh_rebuild_layers
Defines the number of layers of mesh to be rebuilt around imprinted elements for connectors. Must be greater than or equal to 0.
g_ce_realizedvis
Turn off/on realized connectors
Range: 0, 1
g_ce_unrealizedvis
Turn off/on unrealized connectors.
Range: 0, 1
g_ce_failedvis
Turn off/on failed connectors.
Range: 0, 1
g_ce_modifiedvis
Turn off/on modified connectors.
Range: 0, 1
g_ce_lt2tvis
Turn off/on connectors with fewer than 2 layers.
Range: 0, 1
g_ce_2tvis
Turn off/on connectors with 2 layers.
Range: 0, 1
g_ce_3tvis
Turn off/on connectors with fewer than 3 layers.
Range: 0, 1
g_ce_gt3tvis
Turn off/on connectors with 3 layers.
Range: 0, 1
g_ce_spotvis
Turn off/on spot connectors.
Range: 0, 1
g_ce_seamvis
Turn off/on seam connectors.
Range: 0, 1
g_ce_areavis
Turn off/on area connectors.
Range: 0, 1
g_ce_boltvis
Turn off/on bolt connectors.
Range: 0, 1
g_ce_applymassvis
Turn off/on apply mass connectors.
Range: 0, 1
g_skip_imprint
Skip the imprint run and places the imprint elements in a separate component when set to 1.
Range: 0, 1
g_do_strict_imprint
Resolve conflicts during the mesh imprint when set to 1.
Range: 0, 1
g_do_keep_snap
Snap to an edge or feature during mesh imprint when set to 1.
Range: 0, 1
g_ce_boltcylinderdisplaystatus
Display status:
0 - Bold on
1 - Bolt dynamic
2 - Bolt off
Range: 0 - 2
g_ce_boltcylinderdisplaytransparency
Set the transparency for the bolt cylinder.
Range: 0 - 10
value (int) – The value of the variable.
Example#
Set the connector coloring by component#import hm import hm.entities as ent model = hm.Model() model.CE_GlobalSetInt(name="g_ce_colorby", value=1)