makePart()

Synopsis

Creates a part with parameters as given in paramList and returns the new part . The part is made in the context of the part in which the function is called. Note that the Design (required), and Quantity (optional) expressions need to be supplied as part of the paramList.

Note: Parts created with makePart do not have the same semantics as parts created by child rules . For example, a part created by makePart will not appear in the children list of the parent.

Syntax

makePart ( paramList As List ) As Part 
Argument Type Description
paramList List The list of parameters and values to be supplied to the newly created part .

Example 1

Intent >makePart({:Design, :IvBlock, :height, 9, :width, 4}) 
--> Root.%child_1
Note that the part gets an internally-generated name unless specified.

Example 2

Intent >makePart({:Design, :IvBlock, :GivenName, "MyBlock", :height, 9, :width, 4}) 
--> Root.MyBlock