Coloring elements in the view by conditions, as well as creating a view template with filters or adding filters to existing views
About files with the extension .mpif
The file with the .mpif extension is a special installation file of the ModPlus (ModPlus Install File).
These files allow you to install and update all ModPlus components using the auto-update module
in case you do not have access to the internet or modplus.org
Related news and articles
The plugin allows to color elements in the view by conditions (by category and/or parameters), to reset the coloring, and to add filters to the current template or view.
The plugin's dialog box:
There must be at least one working configuration for the plugin to start working. To create it, click on and then enter the name:
The following tools are available for working with configurations:
- - edit the name of the selected configuration;
- - duplication the selected configuration;
- - deleting the selected configuration;
- , - import and export of configurations, respectively.
To create a working configuration you need to add the conditions of its work. There are two operating modes:
- Standard condition
- By parameter values
After adding a condition, you can specify both the category of elements to be colored (the left part of the condition) and the parameter (the right part of the condition) by which they will be colored.
To do this, you must use the elements filter .
In the condition, the category and the parameter are optional, that is, they can be used together or separately.
After entering an element category and its parameter, you can create new conditions for coloring elements. You can use the duplicator of the previous condition for this purpose. The button can be used to delete an existing condition. Use the color palette to select the desired coloring color.
It is also possible to set the coloring area by successively clicking the corresponding button: - coloring surfaces and lines, - coloring only lines or - coloring only surfaces.
If several conditions for coloring elements are set, the individual condition can be moved in the list by dragging it with the left mouse button.
In cases where there are a large number of values for a single parameter, you can use coloring by parameter value.
Use the elements filter to enter categories. After you fill in the categories, the parameter filter will become available.
In the parameter filter, you can create only one condition for a single parameter. You can set multiple values for a parameter, separated by a comma.
After entering a category and parameter filter, you can get a list of values that satisfy these conditions on the Get button:
You can search for elements that satisfy the filter either from the whole project or from the current view:
You can expand or collapse list, add a new value, or delete a value from the list using the corresponding buttons:
If you press the button, you can set random colors for all values:
At the bottom of the window is an option for the plugin mode, where:
- Can override on the current view the coloring for elements according to the specified conditions
- Restore the (original) override in the current view
- Create View Filter - add filters to an existing view template (if one is set for the current view) or to the current view (if no template is defined for it)
It is not possible to create a view filter for all parameters. If the filter cannot be created, an error window will be displayed
When creating a view filter, the option to enable/disable the Shaded Visual style for the View (if possible) is available, as well as the ability to set the view filter name for standard conditions.
To start the plugin, click on the Execute button.
Before applying the plugin:
After applying the plugin: