Get Wire Information (ELE_GetWireInformation)

An opening ID is an entry point used to customize business logic. The Get Wire information opening ID is available in the Electrical Logical Resources resource set and is used to define the resistivity, length and cross section of a wire.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked during the Electrical Calculation command.

DefinitionDescription
PLM Opening ID ELE_GetWireInformation
Customization intent Execution
Execution contextClient

Input Objects

Input objects must be of the following types:

  • ThisObject: wire occurrence (EleLogicalWireOcc)
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead or WriteComments
oWireResistivity float WriteThe value of the resistivity in Ohm x meter [Ω.m]. If not defined in this opening ID, the value for copper conductor (2.25x10-8[Ω.m]) is taken into account.
oWireLengthfloatWrite The length of the wire in meter [m].
oWireSection floatWrite The section of the wire in square meter [m²]

Sample

/* Rule : ELE_GetWireInformation */
// output args
let userL(Real)
let section(Real) 

let userL_2(Real)
let routedL(Real)
let instance(EleLogicalWireInst)
let ref(EleLogicalWire)

userL = ThisObject->GetAttributeReal("UserLength")     // value has no Unit, value returned is in m (even if Me-Preference says that length is in mm
routedL = ThisObject->GetAttributeReal("RoutedLength")

set instance = ThisObject.Instance
if (instance <> NULL) {
	userL_2 = instance->GetAttributeReal("V_Elec_UserLength")
}

set ref = ThisObject.Reference
if (NULL <> ref) {
	section = ref->GetAttributeReal("V_Elec_Section")
}

Parameters.SetAttributeReal("oWireLength", userL) 
Parameters.SetAttributeReal("oWireSection", section)
Parameters.SetAttributeReal("oWireResistivity", 0.0000000225)