Defining Children

You can create children which are similar to attributes with two distinctions:

  • Their types can only be KML concepts.
  • The link between an object and its Children is stronger than the link to an attribute: children are aggregated by their father KML objects. Thus, every KML object has an "Owner" attribute pointing to its father Object.


Before you begin: You have created a concept called MyTable of BaseConcept type.
See Also
About Children Definition
Defining an Attribute
  1. In the Know-how Apps Logic Editor, key in the following script:
    Children
             {
                 /* A table is made up of a Top and a Foot... Whose Reference is instantiated 4 times! */
                 MyTableTop tableTop;
                 MyTableFoot tableFoot; 
                 /* The table is also made up of constraints used to position the feet instances.*/
                 /*  The Constraint concepts are defined in the SampleTools library. */
                 List(KMLCoincidenceConstraint) tableConstraints;
             }
  2. Proceed to the next step: Defining an Attribute.

To view an example, import the KMLSample.3dxml file located in win_b64\startup\Knowledgeware\KMLSamples\Sample1 in the installation folder.