Through style constraints, you can quickly set the style related parameters of the model in the design plan, such as modifying the door panel patterns of all cabinets, modifying the handle styles of all door panels, etc. At the same time, when applying style constraints, the above effects will continue to be produced on the models that are dragged into the scene in the subsequent new scenario. The designer only needs to select the corresponding style template and then personalize the style items in the template to complete the operation. Therefore, when a unified style adjustment of the project is required, this function can quickly realize the overall global modification and ensure subsequent consistency through this function.
For Users
Enterprise users with corresponding functional permissions
Workspace Configuration Instructions
1. Entrance
Enter the workspace, select "Enterprise Catalog - Custom Products - Product Catalog", select the corresponding custom tool, and click "Advanced - Style Constraint Template".
Note: The style constraints of different tools are not universal, such as: the style constraint template customized by kitchen & bath, which do not exist or are not available in the closet.
2. General Settings
- Allow manual setting of style items within customization tools. If you choose Yes, then the button ① will appear in Figure 2 as shown below; otherwise, there will be no button ①.
- Enter the custom tool to open the style constraint panel by default. Select Yes, then the style constraint window will automatically pop up in Figure 2 as shown below; otherwise, it will not open automatically, and you need to manually click the button ① to pop up the window ②.
3. Default Template Settings
The function of the default template: Each model newly dragged into the scene will automatically apply the settings in the template (prerequisite: meet the conditions). For example: in the style template, the floor cabinet body material is "Ash"; then the floor cabinet body material that meets the conditions dragged out during the design plan will automatically become "Ash".
- Each catalog can set up to one default template (or not).
- If you set the default template and don't want it, you can click "×" to clear it
4. Manage Style Associations
The meaning of style association is to replace one-click based on mapping relationships.
Example: [In Workspace]
Model A includes A-open door, A-draw door, A-turn door, A-fixed door.
Model B includes B-open door, B-draw door, B-turn door, B-fixed door.
[In Design Tools]
I am a designer, of course I hope simple A→B.
Instead of 4 separate replacements: A open door for B open door, A draw door for B draw door, A turn door for B turn door, A fixed door for B fixed door.
- Create style associations as follows:
5. Add Style Templates
1) Create a new style template and modify the name of the style template.
2) Create a folder and modify the folder name (not required).
3) Creat Style Items
① Ways to constrain models
Variable Constraints: The meaning of setting this style item is that the variables of the model need to be modified, which belongs to variable constraints.
Own Style Constraints: The meaning of setting this style item is that you need to modify the style of the model (such as door style and handle style), which is a style constraint.
Associative Style Constraints: an upgraded version of own style constraints.
Own Style Constraints: Only change the model itself
Associative Style Constraints: While the model itself is replaced, the remaining series of supporting styles are replaced.
(For example: the designer hopes that all A-type door panels in the scene will be replaced with B-type door panels. The designer only needs to select "A" → "B". The A-open door in the scene will replace B-open door, the A-draw door will replace B-draw door, the A-fake door will replace B-false doors, and the A-turn door will replace B-turn door.)
- Association constraints need to be configured in advance to configure a complete set of [management style associations].
- Own style constraints and associative style constraints are unique sub style items, see ⑥ sub style items for details.
② Ordinary constraints or Mandatory constraints
Ordinary constraints: When applying this style item, the parameter type and range of the model itself will not be changed, and only the current value will be modified.
Mandatory constraints: When applying this style item, the parameter type and range of the model itself and the current value will be changed.
tips:
When in ordinary constraints, there is a check logic of "whether the current value is within range", but there will be no prompt.
(For example: The ordinary constraint style attempts to change the model parameter A to 3, but the parameters can only be selected by 1 or 2 when modeling the model. At this time, the model parameter A will not force it to 3, and the software will not prompt it.)
Whether it is mandatory or ordinary constraints, after the style constraints modify the model, the model is still allowed to be modified separately!
③ Quotation name
Example: Suppose there are 2 style items, one A and one B. If the B style item's display and hide and the pull-down options are related to style A, then B must quote the quotation name of the A style item.
④ Hidden conditions
Literally, whether this style item should be displayed in the tool for users to adjust and select.
⑤ True classification and Extended rules
Setting this style item to what type of model to take effect
Q:When do you need to use extended rules?
A:Two scenarios.
1. Distinguish style items. For example: "Floor Cabinet Door Panel Handle" and "Wall Cabinet Door Panel Handle", the objects of the work are handles, but how to distinguish whether the handle is from the floor cabinet door or the wall cabinet door? At this time, it is necessary to achieve this through the coordination of extended rules and identifications.
2. A style term, but the object it acts as not the entire model of the true classification. For example, the style item of "Sightseeing Panel Material" is used to all special panels, but many of them are modeled with special panels, including lightseeing panels, top cover panels, closing panels, and frieze panels. I only hope that the model with the true classification of special panels and the name "Sightseeing Board" takes effect.
Q:How do you understand "identification"? Which ones can be used as identifications?
A:When we need to classify a type of model, we naturally need to distinguish characteristics based on "identification", such as variable values, product details pages, and custom process attributes. These three categories currently support becoming "identifications".
tips:
- A model needs to meet both true classification and extended rules before it can respond to the style item.
- True classification can be multi-selected.
- For details on the syntax of the extended rules, please refer to the following "Expression Syntax Description".
- Support typing search when selecting true classifications.
⑥ Sub style items
-
Only the style items of [Own Style Constraints] and [Associative Style Constraints] support the creation of sub style items.
- Sub style items only support "ordinary constraints".
- The object of sub style item and corresponding style item must be the same model.
- Sub style items are usually used for two related style items (for example, if you choose a door style, you naturally need to adjust the door material, but the optional range of door material is related to the selected door style, as shown in the figure below).
-
Initial value: unique to sub style items. For example: when selecting door A in the door style, then when selecting the door material, the software will automatically retrieve the CZ variable of door A from the background to obtain the current value and material package of CZ as the basis for display and selection in the style item.
⑦ High level execution order
- Turn off high level execution order: Each style item is executed in the order in which it is arranged, from top to bottom, one by one (serial).
- Turn on high level execution order: Each style item is executed in an orderly manner from small to large, and if the numbers are the same, they will be in parallel.
-
The turn on this setting helps improve the response speed after application of style constraints in the tool.
4) Apply style templates to the library
- A template allows you to apply to multiple librarys.
- If a template is created, but it is not applied to any library, it means that the template is not done and has no effect.
- Style constraints do not have to open a custom library to use, even if there is only a main product library, style constraints can be used.
5) Style constraint cover
Set a cover for the style template that matches the style appearance.
6. Expression Syntax Description
Some examples of common combinations:
- Extended rules to find models with product names containing "doors":#contains(#getModel().getMeta('name'), '门')
- Extended rules to find top level model customization model with XH of 1:#getProductCustomAttr(#getModel().getRoot().getMeta('id'), 'XH')==1
- Determine whether the current value of style item A contains "glass":#contains(#A.paramStyle.name, 'glass')
-All the above functions can be used directly in the expression editor for querying and associating.
7. Example Demonstration
1) Cabinet material CZ (variable constraints + ordinary constraints)
tips: If the style template is not set to be applied in which library, it will be of no effect.
2) Cabinet ground LD (variable constraints + mandatory constraints)
When modeling, the cabinet is 0 from the ground by default, and it is unlimited. However, in the tool, if you want the cabinet to be off the ground, you can only choose from a limited number of options, and the setting operation is as follows:
3) Linkage between product configuration and door hinge brand (the function of the citation name)