Template:— representing_cad_model (rep_cad_mod)
Capability:representing_properties_numerically
Date: 2011/10/21 15:52:37
Revision: 1.6
Template: representing_cad_model

XML references to the Template

These can be cut and pasted into the XML as required.

representing_cad_model

Set up a hyperlink to the template definition.
<template_ref name="representing_cad_model" capability="representing_properties_numerically"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_cad_model" capability="representing_properties_numerically">
  <param name="geometric_context">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="x_axis_coordinates">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="y_axis_coordinates">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="origin_coordinates">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_doc_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_doc_id_class_name">
    <param_value>Document_identification_code</param_value>
    <description></description>
  </param>
  <param name="cad_doc_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="cad_doc_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_doc_org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="cad_doc_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="cad_doc_ver_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_doc_ver_id_class_name">
    <param_value>Version_identification_code</param_value>
    <description></description>
  </param>
  <param name="cad_doc_ver_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="cad_doc_ver_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_doc_ver_org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="cad_doc_ver_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="cad_file_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_file_class_name">
    <param_value>AP203_file</param_value>
    <description></description>
  </param>
  <param name="cad_file_class_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="domain">
    <param_value>Product_life_cycle_support</param_value>
    <description></description>
  </param>
  <param name="domain_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="life_cycle_stage">
    <param_value>Support_stage</param_value>
    <description></description>
  </param>
  <param name="life_cycle_stage_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_cad_model">
  <param_in name="geometric_context" value=""/>
  <param_in name="x_axis_coordinates" value=""/>
  <param_in name="y_axis_coordinates" value=""/>
  <param_in name="origin_coordinates" value=""/>
  <param_in name="cad_doc_id" value=""/>
  <param_in name="cad_doc_id_class_name" value="Document_identification_code"/>
  <param_in name="cad_doc_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="cad_doc_org_id" value=""/>
  <param_in name="cad_doc_org_id_class_name" value="Organization_name"/>
  <param_in name="cad_doc_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="cad_doc_ver_id" value=""/>
  <param_in name="cad_doc_ver_id_class_name" value="Version_identification_code"/>
  <param_in name="cad_doc_ver_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="cad_doc_ver_org_id" value=""/>
  <param_in name="cad_doc_ver_org_id_class_name" value="Organization_name"/>
  <param_in name="cad_doc_ver_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="cad_file_id" value=""/>
  <param_in name="cad_file_class_name" value="AP203_file"/>
  <param_in name="cad_file_class_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="domain" value="Product_life_cycle_support"/>
  <param_in name="domain_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="life_cycle_stage" value="Support_stage"/>
  <param_in name="life_cycle_stage_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_cad_model
/representing_cad_model(geometric_context='', x_axis_coordinates='', y_axis_coordinates='', origin_coordinates='', cad_doc_id='', cad_doc_id_class_name='Document_identification_code', cad_doc_id_ecl_id='urn:plcs:rdl:std', cad_doc_org_id='', cad_doc_org_id_class_name='Organization_name', cad_doc_org_id_ecl_id='urn:plcs:rdl:std', cad_doc_ver_id='', cad_doc_ver_id_class_name='Version_identification_code', cad_doc_ver_id_ecl_id='urn:plcs:rdl:std', cad_doc_ver_org_id='', cad_doc_ver_org_id_class_name='Organization_name', cad_doc_ver_org_id_ecl_id='urn:plcs:rdl:std', cad_file_id='', cad_file_class_name='AP203_file', cad_file_class_ecl_id='urn:plcs:rdl:std', domain='Product_life_cycle_support', domain_ecl_id='urn:plcs:rdl:std', life_cycle_stage='Support_stage', life_cycle_stage_ecl_id='urn:plcs:rdl:std')/

Path

-- Instantiate Digital_file
Digital_file

-- Set the unused Digital_file attributes to be ignored
Digital_file.id = '/IGNORE'
Digital_file.version = '/IGNORE'
Digital_file.contained_data_type = '/IGNORE'

-- Bind the Digital_file to the parameter ^cad_file
%^cad_file = Digital_file%

-- Identify the Digital_file
/assigning_identification(
    items=^cad_file,
    id=@cad_file_id,
    id_class_name='File_identification_code',
    id_ecl_id='urn:plcs:rdl:std',
    org_id=@cad_doc_org_id,
    org_id_class_name=@cad_doc_org_id_class_name,
    org_id_ecl_id=@cad_doc_org_id_ecl_id)/

-- Classify the Digital_file
/assigning_reference_data(
    items=^cad_file,
    class_name=@cad_file_class_name,
    ecl_id=@cad_file_class_ecl_id)/

-- Assign representing_digital_document to Digital_file
/representing_digital_document(
    doc_id=@cad_doc_id,
    doc_id=@cad_doc_id,
    doc_id_class_name=@cad_doc_id_class_name,
    doc_id_ecl_id=@cad_doc_id_ecl_id,
    doc_org_id=@cad_doc_org_id,
    doc_org_id_class_name=@cad_doc_org_id_class_name,
    doc_org_id_ecl_id=@cad_doc_org_id_ecl_id,
    doc_vn_id=@cad_doc_ver_id,
    doc_vn_id_class_name=@cad_doc_ver_id_class_name,
    doc_vn_id_ecl_id=@cad_doc_ver_id_ecl_id,
    doc_vn_org_id=@cad_doc_ver_org_id,
    doc_vn_org_id_class_name=@cad_doc_ver_org_id_class_name,
    doc_vn_org_id_ecl_id=@cad_doc_ver_org_id_ecl_id,
    domain=@domain,
    domain_ecl_id=@domain_ecl_id,
    life_cycle_stage=@life_cycle_stage,
    life_cycle_stage_ecl_id=@life_cycle_stage_ecl_id,
    digital_file=Digital_file)/

-- Instantiate Cartesian_point
Cartesian_point

-- Bind the Cartesian_point to the parameter ^origin
%^origin = Cartesian_point%

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

-- Set the used Cartesian_point attribute to the corresponding input parameter
Cartesian_point.coordinates = @origin_coordinates

-- Instantiate Direction of X axis
Direction

-- Bind the Direction to the parameter ^x_axis
%^x_axis = Direction%

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

-- Set the used Direction attribute to the corresponding input parameter
Direction.coordinates = @x_axis_coordinates

-- Instantiate Direction of Y axis
Direction

-- Bind the Direction to the parameter ^y_axis
%^y_axis = Direction%

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

-- Set the used Direction attribute to the corresponding input parameter
Direction.coordinates = @y_axis_coordinates

-- Instantiate Axis_placement
Axis_placement

-- Bind the Axis_placement to the parameter ^axis_place
%^axis_place = Axis_placement%

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

-- Instantiate the used Axis_placement relationships within the template
Axis_placement.origin -> ^origin
Axis_placement.x_axis -> ^x_axis
Axis_placement.y_axis -> ^y_axis

-- Instantiate External_geometric_model
External_geometric_model

-- Set the unused External_geometric_model attributes to be ignored
External_geometric_model.id = '/IGNORE'
External_geometric_model.name = '/IGNORE'
External_geometric_model.description = '/IGNORE'
External_geometric_model.version_id = '/IGNORE'

-- leave the Model_extent unset
-- Set the used External_geometric_model relationship to the corresponding input parameters
External_geometric_model.context_of_items -> @geometric_context

-- Instantiate the used External_geometric_model relationships within the template
External_geometric_model.items -> ^axis_place
External_geometric_model.external_file -> ^cad_file
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Digital_file.id '/IGNORE' File.id
Digital_file.version '/IGNORE' File.version
Digital_file.contained_data_type '/IGNORE' File.contained_data_type
Cartesian_point.name '/IGNORE' Representation_item.name
Cartesian_point.coordinates @origin_coordinates
Direction.name '/IGNORE' Representation_item.name
Direction.coordinates @x_axis_coordinates
Direction.name '/IGNORE' Representation_item.name
Direction.coordinates @y_axis_coordinates
Axis_placement.name '/IGNORE' Representation_item.name
External_geometric_model.id '/IGNORE' Representation.id
External_geometric_model.name '/IGNORE' Representation.name
External_geometric_model.description '/IGNORE' Representation.description
External_geometric_model.version_id '/IGNORE' Geometric_model.version_id

XML representation of path

<refpath
   template="representing_cad_model">
   <comment>
      Instantiate Digital_file
   </comment>
   <instantiate
      entity="Digital_file"
      context="">
      
   </instantiate>
   <comment>
      Set the unused Digital_file attributes to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Digital_file"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Digital_file"
            attribute="version"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Digital_file"
            attribute="contained_data_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Digital_file to the parameter ^cad_file
   </comment>
   <bind
      parameter="cad_file">
      <express_entity
         entity="Digital_file"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Identify the Digital_file
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^cad_file">
         
      </param_in>
      <param_in
         name="id"
         value="@cad_file_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="'File_identification_code'">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="org_id"
         value="@cad_doc_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@cad_doc_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@cad_doc_org_id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Classify the Digital_file
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^cad_file">
         
      </param_in>
      <param_in
         name="class_name"
         value="@cad_file_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@cad_file_class_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign representing_digital_document to Digital_file
   </comment>
   <call_template
      name="representing_digital_document"
      business_context="">
      <param_in
         name="doc_id"
         value="@cad_doc_id">
         
      </param_in>
      <param_in
         name="doc_id"
         value="@cad_doc_id">
         
      </param_in>
      <param_in
         name="doc_id_class_name"
         value="@cad_doc_id_class_name">
         
      </param_in>
      <param_in
         name="doc_id_ecl_id"
         value="@cad_doc_id_ecl_id">
         
      </param_in>
      <param_in
         name="doc_org_id"
         value="@cad_doc_org_id">
         
      </param_in>
      <param_in
         name="doc_org_id_class_name"
         value="@cad_doc_org_id_class_name">
         
      </param_in>
      <param_in
         name="doc_org_id_ecl_id"
         value="@cad_doc_org_id_ecl_id">
         
      </param_in>
      <param_in
         name="doc_vn_id"
         value="@cad_doc_ver_id">
         
      </param_in>
      <param_in
         name="doc_vn_id_class_name"
         value="@cad_doc_ver_id_class_name">
         
      </param_in>
      <param_in
         name="doc_vn_id_ecl_id"
         value="@cad_doc_ver_id_ecl_id">
         
      </param_in>
      <param_in
         name="doc_vn_org_id"
         value="@cad_doc_ver_org_id">
         
      </param_in>
      <param_in
         name="doc_vn_org_id_class_name"
         value="@cad_doc_ver_org_id_class_name">
         
      </param_in>
      <param_in
         name="doc_vn_org_id_ecl_id"
         value="@cad_doc_ver_org_id_ecl_id">
         
      </param_in>
      <param_in
         name="domain"
         value="@domain">
         
      </param_in>
      <param_in
         name="domain_ecl_id"
         value="@domain_ecl_id">
         
      </param_in>
      <param_in
         name="life_cycle_stage"
         value="@life_cycle_stage">
         
      </param_in>
      <param_in
         name="life_cycle_stage_ecl_id"
         value="@life_cycle_stage_ecl_id">
         
      </param_in>
      <param_in
         name="digital_file"
         value="Digital_file">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate Cartesian_point
   </comment>
   <instantiate
      entity="Cartesian_point"
      context="">
      
   </instantiate>
   <comment>
      Bind the Cartesian_point to the parameter ^origin
   </comment>
   <bind
      parameter="origin">
      <express_entity
         entity="Cartesian_point"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Cartesian_point attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Cartesian_point"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Cartesian_point attribute to the corresponding input parameter
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Cartesian_point"
            attribute="coordinates"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="origin_coordinates">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Direction of X axis
   </comment>
   <instantiate
      entity="Direction"
      context="">
      
   </instantiate>
   <comment>
      Bind the Direction to the parameter ^x_axis
   </comment>
   <bind
      parameter="x_axis">
      <express_entity
         entity="Direction"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Direction attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Direction"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Direction attribute to the corresponding input parameter
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Direction"
            attribute="coordinates"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="x_axis_coordinates">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Direction of Y axis
   </comment>
   <instantiate
      entity="Direction"
      context="">
      
   </instantiate>
   <comment>
      Bind the Direction to the parameter ^y_axis
   </comment>
   <bind
      parameter="y_axis">
      <express_entity
         entity="Direction"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Direction attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Direction"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Direction attribute to the corresponding input parameter
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Direction"
            attribute="coordinates"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="y_axis_coordinates">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Axis_placement
   </comment>
   <instantiate
      entity="Axis_placement"
      context="">
      
   </instantiate>
   <comment>
      Bind the Axis_placement to the parameter ^axis_place
   </comment>
   <bind
      parameter="axis_place">
      <express_entity
         entity="Axis_placement"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Axis_placement attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Axis_placement"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate the used Axis_placement relationships within the template
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Axis_placement"
            attribute="origin"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="origin">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Axis_placement"
            attribute="x_axis"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="x_axis">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Axis_placement"
            attribute="y_axis"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="y_axis">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Instantiate External_geometric_model
   </comment>
   <instantiate
      entity="External_geometric_model"
      context="">
      
   </instantiate>
   <comment>
      Set the unused External_geometric_model attributes to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="version_id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      leave the Model_extent unset
   </comment>
   <comment>
      Set the used External_geometric_model relationship to the corresponding input parameters
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="context_of_items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="geometric_context">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate the used External_geometric_model relationships within the template
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="axis_place">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="External_geometric_model"
            attribute="external_file"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cad_file">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved