Model.hm_getprojceid#
- Model.hm_getprojceid(index)#
Returns the connector entity from the FE weld data array for a given index. This function should only be used from within a connector-registered property script (which is executed during connector FE realization). The projection data this function relies upon is removed immediately after connector FE realization.
- Parameters:
index (int) – The index of the weld in the FE weld data array.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:connector (Entity) - The entity object representing the connector.
Example#
Get the connector ID for the 10th index in the weld data array#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getprojceid(index=10) ce_id = result.connector print("ce_id:", result.ce_id)