powered by CADENAS

Manual

Manual

10.2.3. Conparts

Defines which parts can be connected and in which way.

Definition

  <conparts>
    <connection ftype="..." ttype:"..." both="..." >
      <condtion>
        <variable part="to" valuefrom="100" valueto="200">
      </condition>
      <flip tcon="tocon" angles="..." trev="tocon_face"
      <tabmapping tvar="..." fvar="..." sync="..." />
    </connection>
  </conparts>

conparts (connection parts)

Child element:

  • connection

    Attributes

    fid

    Name of the part (optional if ftype is specified)

    fcon

    Name of connection points

    ftype

    Alternative to fid + fcon, the type could be specified. Multiple types can be specified by using a “,” separator.

    tid

    Name of the part (optional if ttype is specified)

    tcon

    Name of connection points

    ttype

    Alternative to tid +tcon, the type could be specified. Multiple types can be specified by using a “,” separator.

    [Hinweis] Hinweis

    There are two basic ways to specify the connection:

    1. The id attribute under <part> is referenced by the fid and tid attribute under <connection> and

      the name attribute under <part> -> <cp> is referenced by the fcon and tcon attribute under <connection>.

    2. A more flexible way of referencing is using the type attribute.

      The type attribute under <part> -> <cp> is referenced by the ftype and ttype attribute under <conparts>.

    both

    Value = 0: One direction. "FROM" part can be connected with "TO" part.

    Value = 1: Both directions

    [Hinweis] Hinweis

    Normally the value should be '1'.

    Please check, and possibly change to '1'.

    automatic

    Value "1": If there is no other rule to follow and no other part possible, the connection would be automatically processed.

    [Achtung] Achtung

    Avoid recursive calls.

    destroyWithConnection

    If the connection will be destroyed (concerning "from" part or "to" part), the connected element will also be destroyed.

    [Hinweis] Hinweis

    Example:

    If the connection point is not available with a certain size, the connection elements will be destroyed.

    Child elements:

    • flip (especially for angles)

      Attributes:

      tcon
      angles: (comma separated listed; the first value is default.
      strict: values: 0/1(1:only specified angles may be used)
    • distance

      This tag allows setting a distance between two connected parts.

      Attributes:

      valuefrom: minimum value of distance
      valueto: maximum value of distance
      values: values the distance can take
      strict: has to be one of the given values
    • tabmapping (mapping of table values)

      Example: The element to be inserted should have the same hight.

      Attributes:

      fvar: Name of the variables in part FROM.
      tvar: Name of the variables in part TO.
      fvalue: Value for fvar.
      tvalue: Value for tvar.
      force: 1: Is always mapped. It does not matter whether 'a' is connected at 'b' or the other way around.
      reset: 1: If connection is released, the value in resetval will be returned.
      resetval:
      sync="always" : If this option is selected, a tab mapping will be done after every change of the named variable. If not used, a tab mapping will be done only during the first building of the part.
    • condition

      A condition must be used, when the connection is only valid under a certain condition.

      [Hinweis] Hinweis

      Example:

      The connection element for a slide door has to have a minimum size. This should be specified using a condition element.

Example

  <conparts>
    <connection ftype="pipe_l" ttype="pipe_r,pipe_l,bow" both="1">
      <flip tcon="tocon" angles="0,45,60,90,115,180,215,270" trev="tocon_face" />
      <tabmapping tvar="DURCHMESSER" fvar="DURCHMESSER" sync="always" />
      <tabmapping tvar="STAERKE" fvar="STAERKE" sync="always" />
    </connection>
  </conparts>