-
From the Compass, click 3D Modeling Apps and select Engineering Rules Capture.
-
From the Engineering Rules Capture section, click Knowledge Pattern
.
The Knowledge Pattern Editor opens.
-
In the Knowledge Pattern Editor, enter the following code:
let i (Integer)
let moduleInst (Visualizable)
let l (List)
i = 1
// Iterate through list of points to instantiate Fin module from local resource.
for i while i <= GEOMETRICAL_SETS\Relations.1\FIN_POINT_POSITION_PATTERN\FIN_POSITION_POINT_LIST.Size()
{
moduleInst = CreateOrModifyTemplate("FIN_DESIGN1",`Gas_Turbine_3DShape ---.000` ,GEOMETRICAL_SETS\
Relations.1\FIN_MODULE_INST_PATTERN\FIN_MODULE_INSTANCE_LIST, i)
if(moduleInst <> NULL)
{
//Set inputs to module
moduleInst.SetAttributeObject("SURFACE_BASE", INPUTS\Revolute.1 )
moduleInst.SetAttributeObject("FIN_POSITION", GEOMETRICAL_SETS\Relations.1\
FIN_POINT_POSITION_PATTERN\FIN_POSITION_POINT_LIST[i])
moduleInst.SetAttributeObject("SURFACE_OUTER_LIMIT", INPUTS\Revolute.2)
}
/* Finalizes the instantiation */
EndModifyTemplate(moduleInst)
moduleInst.Name = "FIN_INSTANCE." + ToString(i)
}
-
Click OK to validate.
|