Model.CE_SetSpecificDetailById#
- Model.CE_SetSpecificDetailById(ce_id, detail_type, int_val, dbl_val)#
Sets a specific detail for a specific connector ID.
- Parameters:
ce_id (unsigned int) – A single connector ID.
detail_type (int) –
The number for the connector detail you are editing:
Generic Connector Details:
1 = thickness (integer)
2 = user control (integer: 0 or 1)
3 = state (integer: 1 = realized, 2 = failed)
Connector Line Details:
101 = spacing (double)
102 = density (integer)
103 = offset (double)
104 = half spacing (integer: 0 or 1)
int_val (int) – Pass necessary integers values through this parameter.
dbl_val (double) – Pass necessary double values through this parameter.
Examples#
Change the thickness of the connectors with ID 8 from 2T to 3T#import hm import hm.entities as ent model = hm.Model() model.CE_SetSpecificDetailById( ce_id=8, detail_type=1, int_val=3, dbl_val=0.0 )
Change the spacing for the line connector with ID 13 to 5.0#import hm import hm.entities as ent model = hm.Model() model.CE_SetSpecificDetail( ce_id=13, detail_type=101, int_val=0, dbl_val=5.0 )
Note
A connector must be in user control mode in order to edit the state.