knowledegware tips tricks

Download Knowledegware Tips Tricks

Post on 05-Apr-2018

227 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • 8/2/2019 Knowledegware Tips Tricks

    1/55

    COE Ask The Expert

    Welcome to the COE Ask the Expert Webinar

    Presented by Jeff Roark

    Our next Ask the Expert will be August 29th at 10:00 am CentralPresented by Ed Ladzinski

    Visit http://www.coe.org/events/experts.cfm for event details!

    http://www.coe.org/events/experts.cfmhttp://www.coe.org/events/experts.cfm
  • 8/2/2019 Knowledegware Tips Tricks

    2/55

    KBE Tips and Tricks

    Speakers:

    Jeff Roark

  • 8/2/2019 Knowledegware Tips Tricks

    3/55

    KBE Topics

    KWA Rules, Reactions and Checks

    Topology Control in Power Copies

    Knowledge Pattern

  • 8/2/2019 Knowledegware Tips Tricks

    4/55

    Design of a simple rib

  • 8/2/2019 Knowledegware Tips Tricks

    5/55

    What is there to consider?

    Function

    Structural

    Aesthetic

    Manufacturing

    Quality

    Time

    Assembly

    Material ABS Polypro Nylon

    Every design consideration is complex

    Constraints:

    Draft

    Function

    Material

    Thickness

    Texture

    Function

    Thickness Base Material Rib Thickness Material Selection

  • 8/2/2019 Knowledegware Tips Tricks

    6/55

    Basic Rib Design Rules

  • 8/2/2019 Knowledegware Tips Tricks

    7/55

    Basic Rib Design Rules

  • 8/2/2019 Knowledegware Tips Tricks

    8/55

    Basic Rib Design Rules

  • 8/2/2019 Knowledegware Tips Tricks

    9/55

    How can all these rules be captured?

    KWA:

    Rules

    If Then conditions

    Unchanging facts or conditions

    Reactions

    Dynamically overload values

    Multiple rules can modify a parameter

    For While looping

    Checks

    Testing the state of a parameter for

    True or False

  • 8/2/2019 Knowledegware Tips Tricks

    10/55

    Parameters

  • 8/2/2019 Knowledegware Tips Tricks

    11/55

    Rib To Wall Reaction

  • 8/2/2019 Knowledegware Tips Tricks

    12/55

    Rib Height Reaction

  • 8/2/2019 Knowledegware Tips Tricks

    13/55

    Top Of Length Reaction

  • 8/2/2019 Knowledegware Tips Tricks

    14/55

    Rib To Wall Rule

  • 8/2/2019 Knowledegware Tips Tricks

    15/55

    How it works

    Modify Parameters

    Checks are evaluated

    The Rule Overloads

    Rib_To_Wall_Max

    Reactions evaluate

    If they need to fire or not

    Checks are evaluated

    The Part Updates

  • 8/2/2019 Knowledegware Tips Tricks

    16/55

    Resolving Rules/Reactions

  • 8/2/2019 Knowledegware Tips Tricks

    17/55

    Rib Height Reaction Fired

  • 8/2/2019 Knowledegware Tips Tricks

    18/55

    Top Of Rib Reaction Fired

  • 8/2/2019 Knowledegware Tips Tricks

    19/55

    Rib To Wall Reaction Fired

  • 8/2/2019 Knowledegware Tips Tricks

    20/55

    Top Of Rib Reaction Re-fires

  • 8/2/2019 Knowledegware Tips Tricks

    21/55

    Before

  • 8/2/2019 Knowledegware Tips Tricks

    22/55

    After

  • 8/2/2019 Knowledegware Tips Tricks

    23/55

    Comparison

    Before After

  • 8/2/2019 Knowledegware Tips Tricks

    24/55

    Topology Control in PowerCopies

    David Burke

    Johnson Controls Inc.

  • 8/2/2019 Knowledegware Tips Tricks

    25/55

    Overview

    Background of Topology

    Problem/Solution Scenario

    Example #1

    Example #2 Advantages/Disadvantages

  • 8/2/2019 Knowledegware Tips Tricks

    26/55

    Topology Control in PowerCopies

    What is topology? A boolean that describes the orientation of an object. Could be known as positive/negative, true/false,

    up/down, etc.

    Why is it important? Topology of objects help control many actions in

    CATIA. The default direction of a split, offset plane,start/end of a line, etc. are all determined by the topologyof their reference object.

    PowerCopies rely on topology to be defined on the flyfrom a user since all of their reference objects are beingreplaced upon instantiation.

  • 8/2/2019 Knowledegware Tips Tricks

    27/55

    Problem:

    Users trying to instantiate PowerCopies accidentally usethe wrong orientation (flipping of arrows) which causesthe PowerCopy to fail or the result is undesirable.

    Arrows Dont MatchResult is undesirable

    or part fails

  • 8/2/2019 Knowledegware Tips Tricks

    28/55

    Solution:

    Use Knowledge Advisor (KWA) to test fororientation and control it so a desirable result isachieved every time.

    Arrows Dont Match

    Intended result is

    still achieved.

  • 8/2/2019 Knowledegware Tips Tricks

    29/55

    Example #1

    Using a measure to test a planes orientation A PowerCopy with a plane and a point for inputs

    The arrow always needs to point towards the point input

  • 8/2/2019 Knowledegware Tips Tricks

    30/55

    How Does it Work?

    A KWA rule controls the topologyDeclare some variables to be used later. Create the test plane to measure

    off of and control its direction

    with a boolean.

    Make two measures to be compared.

    Evaluate the measures and decide if the

    reference should be set to the original plane

    the user selected or an inverse of that plane.

    All of the geometry in the PowerCopy should reference the plane

    created as a formula instead of the plane selected by the user. This

    way the reference plane is swapped to the correct orientation by the

    rule before any geometry can fail.

  • 8/2/2019 Knowledegware Tips Tricks

    31/55

    How Does it Work? Now the user can select either orientation and the

    PowerCopy will still work as intended.

  • 8/2/2019 Knowledegware Tips Tricks

    32/55

    Example #2 Another strategy to test a surfaces orientation

    A PowerCopy with three planes and a surface for inputs.

    The surface will trim the part, and the side with the leastamount of material must be removed.

  • 8/2/2019 Knowledegware Tips Tricks

    33/55

    How Does it Work? First some geometry is created to measure from

    A line that is as long as the entire part

    without the trim is created.

    The aforementioned line is trimmed

    with the input surface.

    These lines will be evaluated later in the

    KWA rule

  • 8/2/2019 Knowledegware Tips Tricks

    34/55

    How Does it Work? The lines are evaluated in a KWA rule.

    Measurement variables declared in the rule.

    Set one distance to the entire length and

    the other to the length of the split line.

    If the NormalDist is lessthan the MeasuredDist,

    the split must be OK

    since the larger amount

    of material is left over.

    Otherwise the split must

    be flipped by swappingsurfaces because the

    smaller amount of

    material would be left

    over.The geometry is swapped

    by the rule just as in the

    first example.

  • 8/2/2019 Knowledegware Tips Tricks

    35/55

    How Does it Work? Now no matter what the user sets for the orientation of the

    surface, the larger part of the material will be left over.

  • 8/2/2019 Knowledegware Tips Tricks

    36/55

    Some Advantages and Disadvantages

    Advantages: Users can use PowerCopies much easier

    The intended result is generated every time

    The PowerCopy is more robust

    The creator of the PowerCopy can make moreassumptions about the result since it will be the sameevery time

    There are many ways to test for topology, only a coupleare shown here

    i.e. center of gravity, volume, area, etc

  • 8/2/2019 Knowledegware Tips Tricks

    37/55

    Some Advantages and Disadvantages

    Disadvantages: It is difficult to come up with a solution for each

    PowerCopy, since each solution will be different

    Extra geometry needs to be created, which could be aproblem with large and/or complicated surfaces.

    Note that instead of swapping the surface, one could activateand deactivate two splits that split in the opposite direction

    There needs to be an input that acts as a reference(something to measure off of perhaps)

    It can become confusing to try to control more than oneinput since one input switching could affect another

  • 8/2/2019 Knowledegware Tips Tricks

    38/55

    Knowledge Pattern

    Anthony Pulcini

    Johnson Controls Inc.

  • 8/2/2019 Knowledegware Tips Tricks

    39/55

    Contents

    What is Knowledge pattern Advantages

    Where is knowledge pattern

    Knowledge pattern interface

    Example 1 Knowledge Language Notes

    Example 2

    Knowledge Language Notes

    Capability Speaker Grill Example

    Conclusion

  • 8/2/2019 Knowledegware Tips Tricks

    40/55

    What is a Knowledge Pattern

    Creates a pattern of datums (points, lines, planes) orudf templates in an associative way using theknowledgeware language.

    Associative is key

  • 8/2/2019 Knowledegware Tips Tricks

    41/55

    Advantages of using a Knowledge Pattern

    Allows user to make a pattern of datums that arecontrolled by parameters.

    Allows user to bring in the same template many times

    with different results (instances). Allows user to bring in multiple templates in the same

    pattern.

    Automates UDF instantiation (no user interaction).

  • 8/2/2019 Knowledegware Tips Tricks

    42/55

    Where is Knowledge Pattern

    Located in Product Knowledge Template (PKT)workbench

  • 8/2/2019 Knowledegware Tips Tricks

    43/55

    Knowledge Pattern Interface

    Highlights Execution Mode

    List Editor

    Pattern

    Definition Parameter

    Dictionary

    LanguageBrowser Panel

  • 8/2/2019 Knowledegware Tips Tricks

    44/55

    Example 1

    Parametersdrive numberof planes and

    spacing inpattern

  • 8/2/2019 Knowledegware Tips Tricks

    45/55

    Example 1

    Add lists

    For while loop

    Set variable p

    Name p

    Tip: List will

    automaticallypopulate uponexecution

  • 8/2/2019 Knowledegware Tips Tricks

    46/55

    Knowledge Language Notes

    CreateOrModifyDatum

    Creates the planes and populates the list planeoffset

    Offsets the plane a certain length (l)

  • 8/2/2019 Knowledegware Tips Tricks

    47/55

    Example 2

    Bring in aUDF usingthe planes

    as inputs.

  • 8/2/2019 Knowledegware Tips Tricks

    48/55

    Example 2

    UDF inputsthat need to

    be defined.

  • 8/2/2019 Knowledegware Tips Tricks

    49/55

    Example 2

    For while loop Finds UDF in

    Catalog

    Sets inputs

    Names UDF

  • 8/2/2019 Knowledegware Tips Tricks

    50/55

    Knowledge Language Notes

    CreateOrModifyTemplate Finds UDF in a catalog and populates list

    udf_cylinder.height_plane Sets first input of UDF to a plane in the list Planes2

    Planes2.GetItem(i) Gets plane from list at index I

  • 8/2/2019 Knowledegware Tips Tricks

    51/55

    Capability

    Automatic execution upon any change affecting the pattern

  • 8/2/2019 Knowledegware Tips Tricks

    52/55

    Capability

    A simple if elsestatement canchange which

    template isbrought in

  • 8/2/2019 Knowledegware Tips Tricks

    53/55

    Speaker Grill Example

    Design requirements Holes need to be in

    die draw

    Two types of holes:through holes andblind holes

    Speaker grill isnormally not perfectcircle

    Each hole is uniquebased on the surface

  • 8/2/2019 Knowledegware Tips Tricks

    54/55

    Speaker Grill Example

    Due to design requirements a typical pattern cannotbe used

    This process was automated by projecting points ontoa surface and using a knowledge pattern

    The same process works for every speaker grill andspacing can be modified quickly

    Before automation designers would have to manuallyuse the draft command more than 1000 times in some

    cases Automation reduced design time from 40hrs to 3hrs

  • 8/2/2019 Knowledegware Tips Tricks

    55/55

    Conclusion Knowledge Pattern

    Can bring in the same UDF with different instancesthat depend on the inputs the creator sets.

    Can bring in totally different UDFs that may require

    different inputs. Parameters can modify which UDF comes in, and the

    inputs of the UDF, which allows the ability to makequick and easy modifications.