laitimes

Interpret the DriveWorks one-click replacement part rules

author:Zhicheng Technology ICT

Preface

In the process of modeling manufacturing products and equipment, engineers can use standardized and parametric modeling methods, which makes the design more efficient and the model can be changed and modified more easily. In the face of a large number of repetitive design drawings, it is recommended to use the parametric combination mode of SOLIDWORKS + DriveWorks to shorten the product delivery cycle and help engineers solve many problems.

Today, let's take a look at how to quickly replace parts in the UI interface through background configuration in DriveWorks. Let's use the example of replacing the belt frame assembly and the roller frame assembly of the conveyor product with each other to demonstrate the detailed configuration method.

Demonstrate the steps

1. Load DriveWorks in SOLIDWORKS to create groups and projects;

Interpret the DriveWorks one-click replacement part rules
Interpret the DriveWorks one-click replacement part rules

2. SOLIDWORKS opens the conveyor model and captures the model and drawings to be driven in the task window on the right.

Interpret the DriveWorks one-click replacement part rules
Interpret the DriveWorks one-click replacement part rules

3. Enter the DriveWorks Admin software and create two Option Button buttons in the form design, which are named respectively: belt bed and roller bed; By changing the appearance properties of the button, set it to:

This button is displayed as a picture; And, if it is not on time, it will be displayed as a gray picture; When pressed, it is displayed as a highlighted image.

Interpret the DriveWorks one-click replacement part rules
Interpret the DriveWorks one-click replacement part rules

4. Enter the model rule bar, add the captured model, and then associate the UI control with the model;

Interpret the DriveWorks one-click replacement part rules

5. Only check the "Belt Frame Component" and "Roller Frame Component" model options, and enter File Name in the filter box to filter;

Interpret the DriveWorks one-click replacement part rules

6. Double-click the corresponding row with the left mouse button to enter the rule editor, and give the following rules;

Interpret the DriveWorks one-click replacement part rules

滚筒架组件规则:If( 皮带床Return="皮带床","<Replace>皮带架组件",项目号Return&"-"&DWSpecificationId)

皮带架组件规则:If( 皮带床Return="皮带床",项目号Return&"-"&DWSpecificationId,"Delete")

7. Interpretation of rules;

When the belt bed button of the UI control is pressed, the default Drum Stand Component is replaced with Belt Rack Component and renamed it, otherwise, Roller Frame Component is used.

The above is the whole process of realizing the quick one-click replacement of parts in the UI interface through background configuration, have you learned?

Interpret the DriveWorks one-click replacement part rules