Template:— representing_geometric_context (rep_geom_cntx)
Capability:representing_properties_numerically
Date: 2011/10/21 08:39:53
Revision: 1.2

[warning:]Error T1: There is no template_proxy in the capability representing_properties_numerically for the template representing_geometric_context

This section specifies the template representing_geometric_context.

NOTE  The template has been defined in the context of the capability representing_properties_numerically which provides an overall description of the relevant parts of the ISO 10303-239 information model and a description of related templates.

NOTE  An explanation of a template and the associated instantiation path is provided in the Template overview section.

Description

This template describes how to represent a geometric context.

Model diagrams
The EXPRESS-G diagram in Figure 1 shows the templates and EXPRESS entities that are required to represent the template "representing_geometric_context". The text highlighted in blue shows the template parameters.


Figure 1 —  An EXPRESS-G representation of the Information model for representing_geometric_context

Figure 1 —  An EXPRESS-G representation of the Information model for representing_geometric_context

The graphic for the template to be used in other EXPRESS-G diagrams is shown in Figure  2 below.


Figure 2 —  The graphical representation of the representing_geometric_context template

Figure 2 —  The graphical representation of the representing_geometric_context template

Input parameters
The following input parameters are defined for this template:
length_unit (Type='CLASS')
The name of the unit.
The following classes and their sub-classes can be used:
classifications: "Length_unit" (urn:plcs:rdl:std:Length_unit)
length_unit_ecl (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library that holds the definition of the class referenced by the parameter @length_unit.
plane_angle_unit (Type='CLASS')
The name of the unit.
The following classes and their sub-classes can be used:
classifications: "Plane_angle_unit" (urn:plcs:rdl:std:Plane_angle_unit)
plane_angle_unit_ecl (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library that holds the definition of the class referenced by the parameter @plane_angle_unit.
si_length_unit (Default=false,Type='BOOLEAN')
Value should be set to true if the unit is a SI base unit defined by ISO, i.e. kilogram (kg) for Mass, second (s) for Time, metre (m) for Displacement, ampere (A) for Electrical current, kelvin (K) for Temperature, mole (mol) for Amount of substance, and candela (cd) for Luminous intensity. If this is not the case it should be set to false.
Note that the representation of true and false depends on exchange format. In Part 11 (a STEP file) true is represented by the string ".T.", and false by ".F.", while in Part 28 (XML) they are represented by text strings "true" and "false".
dimension_count (Default=3,Type='INTEGER')
The number of dimensions (2 or 3) of the geometric context.
Reference parameters
The following reference parameters are defined for this template:
coordinate_space(Type='ENTITY (Geometric_coordinate_space)')
Allow the Geometric_coordinate_space entity instantiated in this path to be referenced when this template is used.
Note: The Geometric_coordinate_space entity can be referenced in a template path by:
%^target = $representing_geometric_context.coordinate_space%
where target is the parameter to which the Geometric_coordinate_space is bound.
Instantiation path
The instantiation path shown below specifies the entities that are to be instantiated by the template.
A description of templates and the syntax for the instantiation path is provided in the Templates Help/Information section.
-- Instantiate Length_unit
Length_unit

-- Set the unused Length_unit name attribute to be ignored
Length_unit.name = '/IGNORE'

-- Set the used Length_unit si_unit attribute to the corresponding input parameter
Length_unit.si_unit = @si_length_unit

-- Assign reference data for Length_unit
/assigning_reference_data(
    items=Length_unit,
    class_name=@length_unit,
    ecl_id=@length_unit_ecl)/

-- Instantiate Plane_angle_unit
Plane_angle_unit

-- Set the unused Plane_angle_unit name attribute to be ignored
Plane_angle_unit.name = '/IGNORE'

-- Set the Plane_angle_unit si_unit attribute to "false"
Plane_angle_unit.si_unit = '.F.'

-- Assign reference data for Plane_angle_unit
/assigning_reference_data(
    items=Plane_angle_unit,
    class_name=@plane_angle_unit,
    ecl_id=@plane_angle_unit_ecl)/

-- Instantiate Geometric_coordinate_space
Geometric_coordinate_space

-- Bind the Geometric_coordinate_space to the parameter ^coordinate_space
%^coordinate_space = Geometric_coordinate_space%

-- Set the unused Geometric_coordinate_space.id attribute to be ignored
Geometric_coordinate_space.id = '/IGNORE'

-- Set the Geometric_coordinate_space.kind attribute to the default value for PLCS 'external'
-- since all geometry representations are external to PLCS
Geometric_coordinate_space.kind = 'external'

-- Set the used Geometric_coordinate_space attributes to the corresponding input parameters
Geometric_coordinate_space.dimension_count = @dimension_count

-- Instantiate the used Geometric_coordinate_space relationship
Geometric_coordinate_space.units -> Length_unit
Geometric_coordinate_space.units -> Plane_angle_unit
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Length_unit.name '/IGNORE' Unit.name
Length_unit.si_unit @si_length_unit Unit.si_unit
Plane_angle_unit.name '/IGNORE' Unit.name
Plane_angle_unit.si_unit '.F.' Unit.si_unit
Geometric_coordinate_space.id '/IGNORE' Representation_context.id
Geometric_coordinate_space.kind 'external' Representation_context.kind
Geometric_coordinate_space.dimension_count @dimension_count
Instance diagrams
The instance diagram in Figure  3 shows an example of the EXPRESS entities and templates that are instantiated by the template:
/representing_geometric_context(length_unit='Metre', length_unit_ecl='urn:plcs:rdl:std', plane_angle_unit='Radian', plane_angle_unit_ecl='urn:plcs:rdl:std', si_length_unit='true', dimension_count='3')/
(an illustration of the consolidated representing_geometric_context template is shown in Figure 4 below.)


Figure 3 —  Entities instantiated by representing_geometric_context template

Figure 3 —  Entities instantiated by representing_geometric_context template

The instance diagram in Figure 4 shows the graphic symbol for the template that is to be used in other instance diagrams. The example template is:
/representing_geometric_context(length_unit='Metre', length_unit_ecl='urn:plcs:rdl:std', plane_angle_unit='Radian', plane_angle_unit_ecl='urn:plcs:rdl:std', si_length_unit='true', dimension_count='3')/


Figure 4 —  Instantiation of representing_geometric_context template

Figure 4 —  Instantiation of representing_geometric_context template

Characterizations
No common characterizations of the template representing_geometric_context have been identified. However, the ISO 10303-239 EXPRESS model may enable other assignments to the entities instantiated by the template.

© OASIS 2010 — All rights reserved