About Specifying View Action in Knowledgeware Scripts

Drafting Template Design provides a way to specify the view action in the knowledgeware action.

See Also
Creating a View Update Rule Template
Specifying View Action Sample

Using the knowledgeware action, you can drive the view action from external object like design table or 3D objects attribute values, and add the desired view action in the knowledgeware scripts. During the view update the view action is executed.

To specify the view action in the knowledgeware script, the following things is required:

  • The knowledgeware script must have the ActionList as List argument.
  • You must append the view action as string in the ActionList knowledgeware list.
    • ActionList.Append (View Action as string).
    • Syntax for view action is ViewAction_name (ViewAction values; ViewAction values).
  • Syntax for each possible action is as shown below:
    Syntax Description
    Graphic Properties GraphicProperty(LineType=1;LineWidth=1;LineColor=255,150,0;HLRPriority=LOW;Layer=1)

    Each graphic property must be separated by a semicolon ";". You do not have to input the graphic properties in a specific order. At least one graphic property must be specified.

    • Syntax for line type: LineType=valid line type in numeric value.
    • Syntax for line width: LineWidth=valid line width in numeric value.
    • Syntax for Line Color: LineColor=R,G,B

      The color values for Red, Green and Blue are between 0 and 255.

    • Syntax for HLRPriority : HLRPriority=HLRPriority value.

      Allowed values are Low, High, Normal.

    • Syntax for Layer : Layer=valid layer in numeric value.

    Inhibit View Operator InhibitViewOperators (ViewOperators1;ViewOperators2,...)

    Allowed values for view operators to inhibit are as follows:

    • Clipping: Inhibit clipping operation
    • ClippingOnCuttingObject: Inhibit clipping operation only on cutting object
    • Breakout: Inhibit breakout operation

    Each Inhibit ViewOperator must be separated by semicolon ";", there is no order in which the each Inhibit ViewOperator is specified. At least one inhibit view operator must be specified.

    Example : InhibitViewOperators(Clipping;Breakout)

    Area Fill

    AreaFill (Coloring=R,G,B)

    The color values 0 - 255 which are separated by comma ","

    No Show

    NoShow or NoShow()

    -

Note: After the knowledgeware script defines the action to be applied to the processed object, you cannot specify the view action through the View Update Rule dialog box.