Model.CE_FE_SetCommonDetails#

Model.CE_FE_SetCommonDetails(string_array, reserved)#

Sets common parameters required to realize connectors as welds.

Using this function in scripts is not advised, unless absolutely necessary. Future support may change for this function.

The feconfig.cfg and DiameterMappingTable.txt files are the only parameters that this function still sets. The diameter can now be set on a per-connector basis with Model.CE_DetailSetDouble() or CE_DetailSetDoubleByMark(). If the configuration type used in the feconfig.cfg file has a property script associated with it (in the post line), then that property script is used during the connector realization. However, to set a property script on a connector that does not refer to a feconfig configuration type, use Model.CE_DetailSetString() or Model.CE_DetailSetStringByMark().

Alternatively, all of these variables can be set in the Model.CE_FE_RealizeWithDetails() function, which is generally the preferred option for most scripting needs.

Parameters:
  • string_array (hwStringList) – The list of strings that contains the input data.

  • reserved (double) – Reserved for future development. Must be set to 0.

Example#

Set the common parameters required for realizing connectors#
import hm
import hm.entities as ent
import hw

model = hm.Model()

# Taking the application's executable directory
path = hw.appinfo("HMBIN_DIR")

# Set common parameters before connector realization
model.CE_FE_SetCommonDetails(
    string_array=[f"{path}/feconfig.cfg", f"{path}/DiameterMappingTable.txt"], reserved=0.0
)