[Contents] [Index] [Books]

CoCreate OneSpace Designer - Commands Reference Manual


CREATE_RELATION terminate action

CREATE_RELATION creates a new Relation definition.

Syntax


---->(CREATE_RELATION)----+
                          |
  +-----------<-----------+
  |
  |  +->(:FIXED)-------+
  +--+                 |
  |  +->(:RIGID)-------+
  |                    |
  |  +-----------------+-----------------------------------------------+
  |  |                 |                                               |
  |  |                 +---------------------<--------------------+    |
  |  |                 |                                          |    |
  |  |                 +-(:NAME)-----------|enter Relation name|--+    |
  |  |                 |                                          |    |
  |  |                 +-(:OBJECTS)--------|select objects|-------+    |
  |  |                 |                                          |    |
  |  |                 +-(:PREVIEW)-------------------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:AUTO_SOLVE)--+--(:YES)--+-------------+    |
  |  |                 |                 |          |                  |
  |  +--<--(:NEXT)--<--+                 +--(:NO)---+                  |
  |                    |                                               |
  |                    +-----------------------------------------------+
  |                                                                    |
  +--(:FREE_DISTANCE)--+                                               |
  |                    |                                               |
  +--(:FREE_ANGLE)-----+                                               |
  |                    |                                               |
  +--(:FREE_NUMBER)----+                                               |
  |                    |                                               |
  |  +-----------------+-----------------------------------------------+
  |  |                 |                                               |
  |  |                 +---------------------<--------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:NAME)--|name|-------------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:VALUE-TYPE)--|type|-------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:VALUE)--|value|-----------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:EXPR-TYPE)--|type|--------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:EXPR)--|expression|-------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:PREVIEW)------------------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:AUTO_SOLVE)--+--(:YES)--+-------------+    |
  |  |                 |                 |          |                  |
  |  +--<--(:NEXT)--<--+                 +--(:NO)---+                  |
  |                    |                                               |
  |                    +-----------------------------------------------+
  |                                                                    |
  +--(:MEASURE_LENGTH)-+                                               |
  |                    |                                               |
  +--(:MEASURE_RADIUS)-+--+--(:MAJOR)--+---+                           |
  |                    |  |            |   |                           |
  |                    |  +--(:MINOR)--+   |                           |
  |                    |                   |                           |
  |  +--->-------------+---------<---------+                           |
  |  |                 |                                               |
  |  |            |select ref|                                         |
  |  |                 |                                               |
  |  +---<-------------+------------------------------------------+    |
  |  |                 |                                          |    |
  |  |                 +---------------------<--------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:NAME)--|name|-------------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:REF)--(select ref)--------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:PREVIEW)------------------------------+    |
  |  |                 |                                          |    |
  |  |                 +--(:AUTO_SOLVE)--+--(:YES)--+-------------+    |
  |  |                 |                 |          |                  |
  |  +--<--(:NEXT)--<--+                 +--(:NO)---+                  |
  |                    |                                               |
  |                    +-----------------------------------------------+
  |                                                                    |
  |  +->-(:DISTANCE)----------+                                        |
  |  |                        |                                        |
  |  +->-(:REL_ANGLE)---------+                                        |
  |  |                        |                                        |
  |  +->-(:PARALLEL)----------+                                        |
  +--+                        |                                        |
  |  +->-(:PERPENDICULAR)-----+                                        |
  |  |                        |                                        |
  |  +->-(:COINCIDENT)--------+                                        |
  |  |                        |                                        |
  |  +->-(:TANGENT)-----------+                                        |
  |  |                        |                                        |
  |  +->-(:MEASURE_DISTANCE)--+                                        |
  |  |                        |                                        |
  |  +->-(:MEASURE_ANGLE)-----+                                        |
  |                           |                                        |
  |                 +---------+                                        |
  |                 |                                                  |
  |       |select 1st ref elem|                                        |
  |                 |                                                  |
  |       |select 2nd Ref Elem|                                        |
  |                 |                                                  |
  |                 +---------------------<------------------------+   |
  |                 |                                              |   |
  |                 +-(:NAME)----------|enter Relation name|-------+   |
  |                 |                                              |   |
  |                 +-(:FIRST_REF)-----|select 1st ref elem|-------+   |
  |                 |                                              |   |
  |                 +-(:SECOND_REF)----|select 2nd ref elem|-------+   |
  |                 |                                              |   |
  |                 |                  +-->(:NO)-------------------+   |
  |                 +-(:PLANAR)--------+                           |   |
  |                 |                  +-->(:YES)---+              |   |
  |                 |                               |              |   |
  |                 |  +----------------------------+              |   |
  |                 |  |                                           |   |
  |                 |  +-(:PLANE_REF)--|select plane reference|----+   |
  |                 |                                              |   |
  |                 |                                              |   |
  |                 |  +->-(:FOCUS1_BASIC)-------------------------+   |
  |                 |  |                                           |   |
  |                 |  +->-(:FOCUS1_CENTER)------------------------+   |
  |                 +--+                                           |   |
  |                 |  +->-(:FOCUS1_AXIS)--------------------------+   |
  |                 |  |                                           |   |
  |                 |  +->-(:FOCUS1_PLANE)-------------------------+   |
  |                 |  |                                           |   |
  |                 |  +->-(:FOCUS1_DIRECTION)---------------------+   |
  |                 |                                              |   |
  |                 |                                              |   |
  |                 |  +->-(:FOCUS2_BASIC)-------------------------+   |
  |                 |  |                                           |   |
  |                 |  +->-(:FOCUS2_CENTER)------------------------+   |
  |                 +--+                                           |   |
  |                 |  +->-(:FOCUS2_AXIS)--------------------------+   |
  |                 |  |                                           |   |
  |                 |  +->-(:FOCUS2_PLANE)-------------------------+   |
  |                 |  |                                           |   |
  |                 |  +->-(:FOCUS2_DIRECTION)---------------------+   |
  |                 |                                              |   |
  |                 +  +->(:VALUE-TYPE)-+                          |   |
  |                 +  |                |                          |   |
  |                 +--+----------------+-(:VALUE)--|enter value|--+   |
  |                 +  |                                           |   |
  |                 +  +->(:EXPR-TYPE)--+                          |   |
  |                 +                   |                          |   |
  |                 +  +----------------+                          |   |
  |                 +  |                                           |   |
  |                 +  +-(:EXPR)-------|enter expression|----------+   |
  |                 |                                              |   |
  |                 +  +->(:DIRECTION_POSITIVE)-----------------+  |   |
  |                 |  |                                        |  |   |
  |                 +--+->(:DIRECTION_NEGATIVE)-----------------+--+   |
  |                 |  |                                        |  |   |
  |                 +  +->(:DIRECTION_OPEN)---------------------+  |   |
  |                 |                                              |   |
  |                 |                                              |   |
  |                 +  +->(:NORMALS_SAME)-----------------------+  |   |
  |                 |  |                                        |  |   |
  |                 +--+->(:NORMALS_OPPOSITE)-------------------+--+   |
  |                 |  |                                        |  |   |
  |                 +  +->(:NORMALS_OPEN)-----------------------+  |   |
  |                 |                                              |   |
  |                 +  +->(:SIDE_INFRONT)-----------------------+  |   |
  |                 |  |                                        |  |   |
  |                 +--+->(:SIDE_BEHIND)------------------------+--+   |
  |                 |  |                                        |  |   |
  |                 +  +->(:SIDE_OPEN)--------------------------+  |   |
  |                 |                                              |   |
  |                 +-(:PREVIEW)-----------------------------------+   |
  |                 |                                              |   |
  |                 +-(:AUTO_SOLVE)----+-->(:YES)---+--------------+   |
  |                 |                  |            |                  |
  +---<-(:NEXT)<----+                  +-->(:NO)----+                  |
                    |                                                  |
                    +--------------------------------------------------+

Options

The following qualifiers apply to Fixed and Rigid Relations:

The following qualifiers apply to Variable Relations:

The following qualifiers apply to Measured Length and Measured Radius Relation types:

The following qualifiers apply to Value and Logical Relations as well as to Measured Distance and Measured Angle Relations:

When to use

Use this action to create a new Relation definition within the active Relation Set.

Example

  1. The following parameter sequence creates a Fixed Relation called "fix1" for part "p2" in assembly "a2". The solution will be previewed, but the Relation Set will not be solved.

    CREATE_RELATION :FIXED :NAME "fix1" :OBJECTS "/a2/p2" :PREVIEW :AUTO_SOLVE :NO COMPLETE

  2. The following parameter sequence creates an Angle Relation called "ang1" with a positive planar angle of "45" degrees between the axes of 2 Reference Elements (e.g. cylinders). The solution will be previewed, but the Relation Set will not be solved.

    CREATE_RELATION :REL_ANGLE [specify 1st Reference Element] [specify 2nd Reference Element] :NAME "ang1" :PLANAR :PLANE_REF [specify plane reference] :FOCUS1_AXIS :FOCUS2_AXIS :VALUE_TYPE :VALUE "45" :DIRECTION_POSITIVE :PREVIEW :AUTO_SOLVE :NO COMPLETE

All input strings must be enclosed by double quotes (" ").

See also

MODIFY_RELATION terminate action SOLVE_RELATION_SET terminate action SET_RELATIONS terminate action ANIMATE_RELATION terminate action SET_CURRENT_REL_SET terminate action ANCHOR_RELATION_LABEL terminate action
[Contents] [Index] [Books]