Block Group <BlockGroup>

Synopsis

This design is used to create multiple instances arranged in a three dimensional matrix within a larger block reference frame.

Mixins

BlockMixin

BasePart

Parameters

Name Type Description
ChildType name The name of the child design to instantiate. The default value is :Block. Note that the BlockGroup design presumes that the childType design has length, width and height parameters.
ChildLength number Length of the individual child instances.
ChildWidth number Width of the individual child instances.
ChildHeight number Height of the individual child instances.
NXChildren integer Number of children in the local X direction of the BlockGroup. Default is 1.
NYChildren integer Number of children in the local Y direction of the BlockGroup. Default is 1.
NZChildren integer Number of children in the local Z direction of the BlockGroup. Default is 1.
ChildAdditionalParameters list List of pairs containing names and values of "additional" parameters to be supplied to the creation of the child at runtime.

Rules

Name Type Description
ChildType name The name of the child design to instantiate. The default value is :Block. Note that the BlockGroup design presumes that the childType design has length, width and height parameters.
ChildLength number Length of the individual child instances.
ChildWidth number Width of the individual child instances.
ChildHeight number Height of the individual child instances.
NXChildren integer Number of children in the local X direction of the BlockGroup. Default is 1.
NYChildren integer Number of children in the local Y direction of the BlockGroup. Default is 1.
NZChildren integer Number of children in the local Z direction of the BlockGroup. Default is 1.
ChildAdditionalParameters list List of pairs containing names and values of "additional" parameters to be supplied to the creation of the child at runtime.

Child Rules

Name Type Description
Blocks list List of NtotalChildren child instances that get created. The child parameters Length, Width, and Height, as well as the positioning, are calculated from the other BlockGroup parameters.

Example 1

Name: blockGroup_Ex01
Design: BlockGroup acDrawingDocument
Name Type Formula
height number 20
width number 20
length number 100
ChildWidth number width
ChildLength number 2
NYChildren integer floor(length / width)
Child Name: base
Child Design: :Block
Name Type Supplied
height number 2
width number width
length number length
LocalMatingPointName name :fTop
MatingPoint point fBottom

Example 2

Name: blockGroup_Ex02
Design: BlockGroup acDrawingDocument
Name Type Formula
height number 100
width number 20
length number 100
ChildHeight number 20
ChildWidth number 20
ChildLength number 100
ChildType name :blockGroup_Ex01
NZChildren integer 5
Child Name: top
Child Design: :Block
Name Type Supplied
height number 2
width number width
length number length
LocalMatingPointName name :fBottom
MatingPoint point fTop
color string "jungle green"
Child Name: backing
Child Design: :Block
Name Type Supplied
height number height
width number 1
length number length
LocalMatingPointName name :fLeft
MatingPoint point fRight
color string "dandelion"