Also, you will notice that a rule will have its name striked out, if a rule with a similar ID exists in a collection of higher precedence: The lower list will indicate which collection a rule belongs to. Selecting this collection will show you the list of rules that actually apply to the currently loaded model, respecting the precedence of rules with identical ID's, as mentioned above. Effective RulesĪt the top of the list, you'll see a special collection called (Effective rules). This allows you to override existing rules, for example to take model specific conventions into account. If the same rule (by ID) is located in more than one collection, the order of precedence is from top to bottom, meaning a rule defined within the model takes precedence over a rule, with the same ID, defined on the local machine. These rules will apply to all models that are loaded in Tabular Editor on the current machine. Rules on the local machine: These rules are stored in the %ProgramData%\TabularEditor\BPARules.json.These rules will apply to all models that are loaded in Tabular Editor by the currently logged in Windows user. Rules for the local user: These are rules that are stored in your %AppData%\.\Local\TabularEditor\BPARules.json file.Rules on the local machine: These rules are stored in the %ProgramData%\TabularEditor3\BPARules.json.Rules for the local user: These are rules that are stored in your %AppData%\.\Local\TabularEditor3\BPARules.json file.The rule definitions are stored as an annotation on the Model object. Rules within the current model: As the name indicates, this is the collection of rules that have been defined within the current model.Selecting a collection in this list, will display all the rules that are defined within this collection in the bottom list.īy default, three rule collections will show up: The Manage BPA rules window contains two lists: The top list represents the collections of rules that are currently loaded. You can bring it up by clicking the top-left button on the Best Practice Analyzer window, or by using the "Tools > Manage BPA Rules." menu item in the main window. If you need to add, remove or modify the rules applying to your model, there's a specific UI for that. Instead of copying the script to the clipboard, it will be executed immediately. Apply fix: This option is also available for rules than have an easy fix, as mentioned above.This script can then be subsequently pasted into the Advanced Scripting area of Tabular Editor, where you can review it before executing it to apply the fix. By clicking, you will get a C# script copied into your clipboard. Generate fix script: Rules that have an easy fix (meaning the issue can be resolved simply by setting a single property on the object), will have this option enabled.Again, by toggling the "Show ignored" button, you can unignore rules as well. Ignore rule: If you've selected one or more rules in the list, this option will put an annotation at the model level that indicates, that the selected rule should always be ignored.This will let you unignore an object that was previously ignored. If you ignored an object by mistake, toggle the "Show ignored" button at the top of the screen. Ignore item/items: Selecting one or more objects in the list and choosing this option, will apply an annotation to the chosen objects indicating that the Best Practice Analyzer should ignore the objects going forward. Go to object.: Choosing this option or double-clicking on an object in the list, takes you to the same object in the main UI.This UI can also be accessed through the "Tools > Manage BPA Rules." menu of the main UI. Manage rules.: This opens the Manage Rules UI, which we will cover below.Right-clicking anywhere inside the list or using the toolbar buttons at the top of the window, let's you perform the following actions: The Best Practice Analyzer window continuously lists all the effective rules on your model as well as the objects that are in violation of each rule. The BPA Window in both TE2 and TE3 allows you to dock the window on one side of your desktop, while keeping the main window in the other side, allowing you to work with your model while you can see BPA issues. You can disable this feature under File > Preferences. Whenever a change is made to the model, the Best Practice Analyzer scans your model for issues in the background.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |