powered by CADENAS

Manual

Manual

5.11.1.2. Example

An example will explain all steps required for displaying an alternatively shortened 2D view in detail. In order to clarify the effect, a vastly simplified block cylinder is chosen. The length ("HUB") is to be displayed alternatively shortened. To do this two further variables are required as Control variable (here in this example 'HUB2D') and as Default value for control variable (here in this example 'XHUB'). After activation of the option Optimize drawing view on paper size, in the 2D view, the variable's 'XHUB' value is used for the calculation of the cylinder's length.

[Note] Note

The example can be found in the training catalog under "shortened_view_2".

At first a part is designed, then this is used in an assembly.

Proceed as follows:

  1. As starter a cylinder with the variables 'HUB' for length and 'D' for diameter is used.

    Expand the table in PARTdesigner:

    1. Apply the alternative variable for the shortened 2D view, which is entered as Control variable in PARTproject (in the following example "HUB2D")

      [Important] Important

      This variable has to be created with Status "Value range variable" mandatorily.

      The activation changes the value of 'HUB2D'. So it may not be set to a fixed value.

    2. Apply a column with Default value for control variable (in the following example "XHUB")

    Columns for alternative measurement: 'HUB2D' and 'XHUB'

    Columns for alternative measurement: 'HUB2D' and 'XHUB'

  2. Adjust the length of the cylinder.

    For the length 'HUB' had been used by default.

    Now in the input field Width, do not use the entry 'HUB' in the usual way, but with the following condition:

    IF HUB2D = 0 THEN HUB ELSE XHUB ENDIF

    Field entry with IF condition

    Field entry with IF condition

    If 'HUB2D' equals '0' (this is the default state), then the variable 'HUB' is used.

    When activating the option Optimize drawing view on paper size, 'HUB2D' is set to a value unequal '0'. It is for this reason why the variable may not have a fixed value, but has to be stated as value range variable.

    However, if HUB2D is unequal to '0', then 'XHUB' is used for the calculation of Width.

    For the Height use 'D/2'.

  3. Set the connection points. These may also be used for automatic dimensioning.

    [Note] Note

    Make sure that all features,which are related to "HUB2D", also use a corresponding IF condition. Otherwise, a connection point which is normally located on a "Reference plane" is suddenly floating around as soon as the shortened view is turned on.

    IF HUB2D = 0 THEN HUB ELSE XHUB ENDIF

    Shortened view

    Shortened view

  4. For the cylinder project, set following entries under PARTproject -> Edit project -> tabbed page General -> section Alternative 2D size:

    1. Control variable: Here in this example 'HUB2D'

    2. Default value for control variable: Here in this example 'XHUB'

      Depending on the requirements also a fixed value can be set for the project's default value.

    Alternative 2D size

    Alternative 2D size

    This entry effects,

    1. that in PARTdataManager, in the 2D view, the option Optimize drawing view on paper size (Shortened view) is not grayed, but displayed in active state.

      Optimize drawing view on paper size (Shortened view)

      Optimize drawing view on paper size (Shortened view)

      and

    2. that internally within the program, the alternative variable (Control variable) is used for calculation.

  5. Optionally, you may set the automatic dimensioning. The displayed measure should not change when turning on the shortened view! Therefore, no IF condition is used for Text, neither {AUTOMATIC}, but '{HUB}'.

    A detailed description of automatic dimensioning can be found under Section 5.10, “Specify automatically created dimensionings (notations) for 3D view and 2D derivation ”.

  6. In order to visualize the Shortened view, add a sketch with a "cosmetic drawing" on the same plane as the main sketch (in this example plane XY).

    For the curved line, use the function Arc through 3 points on circle.

    For the positioning of the points, use the variable for the shortened hub ("XHUB").

    XHUB/2

    Positioning the points along the help line

    Positioning the points along the help line

    In order for the help lines to only be visible with activated option Optimize drawing view on paper size, use the function Delete element with condition with the following condition:

    HUB2D = 0

    'HUB2D=0' is according to the default setting. In this case it shall be deleted. Only if the value of variable 'HUB2D' is unequal to '0', the sketch shall not be deleted, meaning the cosmetic drawing shall be visible.

    Condition for cosmetic drawing

    Condition for cosmetic drawing

  7. Result:

    [Note] Note

    Testing the function Optimize drawing view on paper size (Shortened view) only works in PARTdataManager, not in PARTdesigner.

    • Optimize drawing view on paper size (Shortened view) deactivated

      Optimize drawing view on paper size (Shortened view) deactivated

    • Optimize drawing view on paper size (Shortened view) activated

      Optimize drawing view on paper size (Shortened view) activated

  8. Now the cylinder is used in an assembly. In this example a vastly simplified configuration consisting of one cylinder and two blocks is used.

    Block cylinder configuration

    Block cylinder configuration

    1. As the cylinder contains value ranges (HUB and HUB2D), please pay attention to set the Value range assignments.

    2. Create the dimensioning, this time for the assembly.

    3. Under Alternative 2D size, this time enter the respective values for the assembly.

    4. Test the alternative 2D size for the assembly.

      "Optimize drawing view on paper size" ("Shortened view") deactivated

      "Optimize drawing view on paper size" ("Shortened view") deactivated

      "Optimize drawing view on paper size" ("Shortened view") activated

      "Optimize drawing view on paper size" ("Shortened view") activated