mgCreateModgenConstraintAsLayout
mgCreateModgenConstraintAsLayout(d_cvId l_InstanceList[l_AbuttedInstances] ) =>g_constraintID/nil
Description
Creates a Modgen constraint that uses the current layout to drive the initial Modgen constraint and row/column assignments.
Arguments
Value Returned
Examples
Creates a Modgen constraint that uses the specified instances.
window = hiGetCurrentWindow() cvId = geGetEditCellView(window) when(cvId~>objType == "cellView" && cvId~>cellViewType == "maskLayout" instances = cellView~>instances when(instances mgCid = mgCreateModgenConstraintAsLayout(cvId instances) )
)
The following example works only if the current cellview is of the layout type. geGetEditCellView returns a valid layout cellview ID. The Modgen includes the instances that are selected in the cellview.
mgCid = mgCreateModgenConstraintAsLayout(geGetEditCellView() geGetSelSet())
Return to top