Template:— assigning_cad_model (ass_cad_mod)
Capability:assigning_product_properties
Date: 2011/10/07 08:40:46
Revision: 1.1

[warning:]Error T1: There is no template_proxy in the capability assigning_product_properties for the template assigning_cad_model

This section specifies the template assigning_cad_model.

NOTE  The template has been defined in the context of the capability assigning_product_properties 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 the assignment of a CAD model to the part it represents.

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


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

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

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 assigning_cad_model template

Figure 2 —  The graphical representation of the assigning_cad_model template

Input parameters
The following input parameters are defined for this template:
shape_for (Type= 'ENTITY (Part_view_definition)' )
The Part_view_definition for the part whose shape is represented by the CAD model.
cad_doc_for (Type= 'ENTITY (Part_view_definition)' )
The Part_view_definition for the part to which the CAD document is assigned.
cad_rep (Type= 'ENTITY (External_geometric_model)' )
The External_geometric_model of the CAD model that represents the shape of a part.
ass_cad_doc (Type= 'ENTITY (Document)' )
The Document for the CAD model that represents a part.
doc_ass_role (Type='CLASS')
The name of the External_class used to determine the role of the assignment.
The following classes and their sub-classes can be used:
classifications: "Document_assignment" (urn:plcs:rdl:std:Document_assignment)
doc_ar_ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The id of the External_class_library that stores the External_class used to classify the Document_assignment.
Reference parameters
The following reference parameters are defined for this template:
item_shape(Type='ENTITY (Item_shape)')
Allow the Item_shape entity instantiated in this path to be referenced when this template is used.
Note: The Item_shape entity can be referenced in a template path by:
%^target = $assigning_cad_model.item_shape%
where target is the parameter to which the Item_shape is bound.
Uniqueness constraints

The following parameter combinations specify a uniqueness constraint:
Unique constraint: Item shape
Each instance of the entity (Item_shape) within the data set shall be uniquely identified by the following parameters on this template (assigning_cad_model) namely: shape_for.
The instance is referenced by the following template parameter: item_shape.
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 Item_shape
Item_shape

-- Bind the Item_shape to the parameter ^item_shape
%^item_shape = Item_shape%

-- Set the unused Item_shape attributes to be ignored
Item_shape.id = '/IGNORE'
Item_shape.description = '/IGNORE'

-- Set the used Item_shape relationship to the corresponding input parameter
Item_shape.described_element -> @shape_for

-- Instantiate Shape_description_association
Shape_description_association

-- Set the unused Shape_description_association attributes to be ignored
Shape_description_association.role = '/IGNORE'
Shape_description_association.description = '/IGNORE'

-- Set the used Shape_description_association relationship to the corresponding input parameter
Shape_description_association.representation -> @cad_rep

-- Instantiate the used Shape_description_association relationship within the template
Shape_description_association.represented_characteristic -> ^item_shape

-- Assign CAD document
/assigning_document(
    doc_ass_role=@doc_ass_role,
    doc_ar_ecl_id=@doc_ar_ecl_id,
    is_assigned_to=@cad_doc_for,
    assigned_document=@ass_cad_doc)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Item_shape.id '/IGNORE'
Item_shape.description '/IGNORE'
Shape_description_association.role '/IGNORE'
Shape_description_association.description '/IGNORE'
Instance diagrams
The instance diagram in Figure  3 shows an example of the EXPRESS entities and templates that are instantiated by the template:
/assigning_cad_model(shape_for='@10', cad_doc_for='@10', cad_rep='@65', ass_cad_doc='@65', doc_ass_role='Document_assignment', doc_ar_ecl_id='urn:plcs:rdl:std')/
(an illustration of the consolidated assigning_cad_model template is shown in Figure 4 below.)


Figure 3 —  Entities instantiated by assigning_cad_model template

Figure 3 —  Entities instantiated by assigning_cad_model 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:
/assigning_cad_model(shape_for='@10', cad_doc_for='@10', cad_rep='@65', ass_cad_doc='@65', doc_ass_role='Document_assignment', doc_ar_ecl_id='urn:plcs:rdl:std')/


Figure 4 —  Instantiation of assigning_cad_model template

Figure 4 —  Instantiation of assigning_cad_model template

Characterizations
No common characterizations of the template assigning_cad_model 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