1 Intrductin t ilgic 1.1 What is ilgic? ilgic is a Design Intelligence Capture Tl Supprting mre types f parameters (string and blean) Define value lists fr parameters. Then redefine value lists autmatically as values are chsen fr each parameter. Enable autmatic errr crrectin and user feedback fr parameter value limitatins and valid value cmbinatins Supprt mre types f equatins (invlving parameters, attributes, features and cmpnents) Cnditinal Equatins (If Then, Else If) Optimizatins and Iteratins (Fr, While and Where Lps) Define and utilize variables f all kinds (nt just parameters) Supprt rule based parameter relatins. Dcument links are nt required. Cyclical References are nt a cncern. 1.2 Abut the ilgic Panel Overview The Inventr ribbn has tw main panels that are cmmnly used in ilgic. The Parameters panel and the ilgic panel The ilgic Panel The ilgic Panel has a set f cmmnly used cmmands yu use while applying ilgic t a mdel. The ilgic Panel has the fllwing cmmands by default: Add rule: The Add Rule cmmand enables yu t add a rule t yur mdel in Inventr. Rule Brwser: The Rule Brwser cmmand shws all rules applied in the current dcument. Event Triggers: The Event Triggers cmmand helps yu enable r disable the rules applicable fr events. itrigger: itrigger is a user parameter yu can use t activate rules manually. It can execute ne r mre rules. ME 24-688 Intrductin t CAD/CAE Tls Page 1 f 17
Regenerate All Rules: The Regenerate All Rules cmmand helps yu synchrnize the parameters in the rules with yur mdel. Delete All Rules: The Delete All Rules cmmand deletes all the rules assciated with yur mdel. This is ideally used after cnfiguring the mdel t exprt a sample cnfiguratin. Abut ilgic: The Abut ilgic cmmand gives yu the details f the ilgic Extensin. The ilgic brwser Rules: The Rules tab displays all the rules that have been added t the current Part, Assembly r Drawing dcument. Frms: The Frms tab displays all the custm frms that have been added t the current Part, Assembly r Drawing dcument. Glbal Frms: The Glbal frms tab displays the custm frms that are stred in the Design Data flder related t the prject file and are present in every Part, Assembly r Drawing dcument. NOTE: Glbal frms shuld nly cntain inputs that pertain t every Part, Assembly r Drawing dcument. External Rules: The External Rules tab displays generic rules that apply t a wide array f parts, assemblies r drawings and can be laded n demand. ME 24-688 Intrductin t CAD/CAE Tls Page 2 f 17
The Edit Rule dialg bx Snippets System: The System tab cntains snippets f cde t push int r pull ut system elements. Fr example, the Parameter (Dynamic) snippet under the Parameters snippets, adds the fllwing line t the design space Parameter ("d0") = 1.2 which sets the parameter d0 in the current dcument equal t 1.2. Custm: The Custm tab cntains snippets f cde that the authr f the rule feels will be reusable in ther rules. ilgic Utility Grup Mdel: The Mdel tab reflects exactly what is in the mdel brwser f the dcument t which the rule is being added. This give yu access t add rules abut any Part, Feature, Sheet, Parameter, which appears in the mdel brwser t that dcument. File Tree: Only present when a rule is added t an assembly. The File Tree tab shws all the files that are direct children f the assembly. This give yu access t add rules abut any Part, Feature r Parameter that is a direct descendant a child in the assembly. Files: Only present when a rule is added t an assembly. The Files tab is a list f the file name f all the direct children f the assembly. ME 24-688 Intrductin t CAD/CAE Tls Page 3 f 17
Optins: The Optins tab gives the authr ptins t hw ilgic rules lk as well as hw they behave. Search and Replace: The Search and Replace tab allws the authr t search fr specific strings f text within the active rule and replace them with thers. Wizards: The Wizards tab prvides the authr with wizards t add advanced functinality t an ilgic rule. Cde Editing Space: The design space cnsists f tw (2) cmpnents Cde Text Editing Tlbar Print Page Setup Cut Cpy Paste Und Red Increase Indent Decrease Indent Cmment ut selected lines. Uncmment ut selected lines. Design Space: This is where all the rules will be written. The fllwing list identifies what different clr fnts represent. Strings (Cyan) "This is a string" "The duble qutes indicate the beginning and end f a string." MessageBx.Shw () "Hell Wrld" example Functins (Purple) Simply put, a functin perfrms an actin (des smething) Feature.IsActive iprperties Excel Data Links Etc... Cmments (Gray) The apstrphe (') will make everything t the right a cmment Exclude r disable lines f cde Add cmments t cde t explain what it des in simple English. ME 24-688 Intrductin t CAD/CAE Tls Page 4 f 17
Parameters (Blue) Numeric - Multi-value? Text - Multi-value? True/False Key NOTE: Renaming Parameters will update the Internal Rules Cnditinal Statements & Operatrs (Red) If-Then If-Then-Else If-Then-ElseIf Null/Empty Sets (aka D Nthing) Case Selects Values (Black) 0.08 in r 1.5 mm True r False Variables (Dark Red) Temprary variables used in the current rule nly The Parameters Panel With the Parameters panel yu can view r edit parameters assciated with a mdel. Yu can als imprt r exprt parameters frm here. Parameters: This cmmand displays a dialg in which yu can view r edit parameters assciated with yur mdel. Imprt frm XML: With this cmmand yu can use an XML file t cpy the parameters t the dcument. Exprt t XML: This cmmand is used t cpy the parameters frm a dcument t an XML file ME 24-688 Intrductin t CAD/CAE Tls Page 5 f 17
1.3 Prject: Assembly Envirnment 1. Using the ilgic Prjects.ipj 2. Open Railing ilgic Sample Basic.iam. 3. Frm the Manage tab, ilgic panel, click Add Rule. The Rule Name dialg appears. Click OK ME 24-688 Intrductin t CAD/CAE Tls Page 6 f 17
4. Add RailHeight t the design space. On the Mdel tab, click User Parameters On the Parameters tab duble-click RailHeight RailHeight is nw added t the design space. 5. Repeat the previus step fr RailLength and TtalWeight. Place each parameter n its wn line. ME 24-688 Intrductin t CAD/CAE Tls Page 7 f 17
NOTE: The fllwing tw (2) steps highlight the text editing features with the Edit Rule dialg bx. 6. Highlight all the parameter names in the design space Click the Increase Indent buttn Click the Decrease Indent buttn 7. With Lines still highlighted Click the Cmment ut the selected lines buttn Click the Uncmment the selected lines buttn NOTE: A cmmented ut line will have n effect n the results f the rule. It is best practice t place cmments in each rule t identify what it des in layman s terms. ME 24-688 Intrductin t CAD/CAE Tls Page 8 f 17
8. Capture Current State f TpRail_1 Right-click n TpRail_1 and select Capture Current State Nte: Capture Current State adds all the elements that can be cntrlled by ilgic t the design space. ME 24-688 Intrductin t CAD/CAE Tls Page 9 f 17
9. Add an UpdateWhenDne snippet In the Snippets pane under System expand Dcument Duble-click UpdateWhenDne The UpdateWhenDne snippet is nw added t the design space. 10. Click Cancel. In the Edit Rule dialg bx, click Cancel Click N when prmpted t save the changes ME 24-688 Intrductin t CAD/CAE Tls Page 10 f 17
11. Frm the Manage tab, ilgic panel, click ilgic Brwser. The ilgic Brwser is displayed ME 24-688 Intrductin t CAD/CAE Tls Page 11 f 17
Drag the ilgic Brwser under the Mdel Brwser and release t dck it. 12. Right-click n the Frm rule and select Run Rule ME 24-688 Intrductin t CAD/CAE Tls Page 12 f 17
13. Make changes t the frm Change the Paint Clr t Red Change the Bttm Rail Style t Plate Click OK 14. Nte the changes t the mdel. 15. Clse the file. D NOT save. ME 24-688 Intrductin t CAD/CAE Tls Page 13 f 17
1.4 Prject: Part Envirnment 1. Using the ilgic Prjects.ipj 2. Open Air-Bx-2.ipt. 3. Frm the Manage tab, ilgic panel, click Add Rule. The Rule Name dialg appears. Click OK ME 24-688 Intrductin t CAD/CAE Tls Page 14 f 17
4. Capture Current State f Extrusin_1 Right-click n Extrusin _1 and select Capture Current State 5. Click OK. In the Edit Rule dialg bx, click OK 6. Edit Sketch1. In the mdel brwser right-click n Sketch1 under Extrusin1 select Edit Sketch ME 24-688 Intrductin t CAD/CAE Tls Page 15 f 17
7. Rename the 200 dimensin t Width Right-click n the 200 dimensin and select Dimensin Prperties In the Name file f the Dimensin Prperties dialg bx type Width 8. Rename the 250 dimensin t Depth Right-click n the 250 dimensin and select Dimensin Prperties In the Name file f the Dimensin Prperties dialg bx type Depth ME 24-688 Intrductin t CAD/CAE Tls Page 16 f 17
9. Rename Rule0 t SizeRule Slwly click twice n Rule0 Type SizeRule 10. Edit SizeRule Right-click n SizeRule and select Edit Rule 11. Nte that the update parameter names are reflected in the design space 12. Click Cancel. 13. Clse the file. D NOT save. ME 24-688 Intrductin t CAD/CAE Tls Page 17 f 17