Automatically sequences child objects in an assembly or block. The children can be parts, assemblies, assembly blocks, or blocks.
Visual Basic Project: [Programming Resources Folder]\Programming\ExampleCode\Planning\Rules\Assembly\Sequence\GscadAssemSeqRules.vbp
Compiled Rule: [Reference Data Folder]\SharedContent\bin\Planning\Rules\Release\SM3DPlnAssemblySeqRules.dll
Bulkload: Planning Rules Workbook
The following class modules are included in the Visual Basic project:
SeqBySizeRule.cls
Sequences assembly/block child objects by size using the following process:
-
Gets the size of each child by calculating the x-y area of the range box of the object in manufacturing orientation position. If another manufacturing orientation has not been defined, the position in the global coordinate system is used.
-
Sorts the child objects by area, from largest to smallest.
-
Sequences the assembly or block by the sort order.
You can modify the logic used to sort the child objects.
SeqByWeightRule.cls
Sequences assembly/block child objects by weight using the following process:
-
Gets the weight of each child.
-
Sorts the child objects by weight, from heaviest to lightest.
-
Sequences the assembly or block by the sort order.
You can modify the logic used to sort the child objects.