CAD/CAM discussion forum > CAD Tutorial & Tips > ZWCAD Mechanical: How to use Part Builder to create standard part

ZWCAD Mechanical: How to use Part Builder to create standard part

    
  Subscribe Topic

Rank: 8Rank: 8

Jenny

Super Moderator

posts: 538

Registered: 2013-5-6

Message 1 of 1

 ZWCAD Mechanical: How to use Part Builder to create standard part
24-07-2013 10:35 . am   |   View his/her posts only
ZWCAD Mechanical tutorial: how to use Part Builder to create standard part into part libraryZWCAD Mechanical provides abundant of standard parts in Part Library. With the help of this parts, you don't need to draft a standard part from sketch, and you can easily change the parameter of the standard part. But you or your company might need a specific part and use that frequently, now ZWCAD Mechanical provide this new tool: Part Builder, which you can builder your custom part on your own. Once the your custom part is built and stored into the Part Library, you and your team can reuse it all the time. You can define several parameters, add the material information and collect its information into BOM.

Here is a video to show how to customize a standard part in ZWCAD Mechanical step by step:




---------ZWCAD Mechanical tutorial: how to use Part Builder to create standard part into part library-------

Purpose
Our designers often confront these kinds of demands during their daily design work:
1. Frequently use of parametric standardized parts based on the company’s internal standards
2. To meet design requirements, modify the dimensions of parts already placed in ZWCAD Mechanical part library.
3. Add additional parameter values to the standardized parts found in ZWCAD Mechanical part library.
4. Add properties to the standardized parts to make it easier to generate BOMs

Case Study
Assume that we need a lot of copies of the part illustrated below, each one with similar geometry but perhaps of different sizes. We can set this design as a parametric part and so define our own standardized part library.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_01.png
2013-7-24 09:58


Specific values of the dimensions are listed below.

A

B

C

D

E

150

10

50

20

50

145

10

50

19

48

140

9

50

18

46

135

9

50

17

44

130

8

50

16

42



Import the Part Library
Process

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_02.png
2013-7-24 09:58


ZWCAD Mechanical, custom standard part, part builder

Part_Builder_03.png
2013-7-24 09:58



Analyze the Parameterized Part
Single Out the Original Parameters

Parameters control the size of the geometry. Shown in the figure above are parameters A, B, C, D, and E. In the SPB, the software adds the symbol “O.” in front these parameters to distinguish them from other kinds of parameters. For example, if you want to use the original parameter A, then you need to enter it as “O.A”.
Note: SPB is the abbreviation of Standardized part builder.

Determine the Structural Parameters

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_05.png
2013-7-24 09:58


Sometimes, we need to use interim parameters to generate the geometry. In the figure above, the two circles are sized using a radius value. The formulas are RD=D/2 and RE=E/2. As mentioned above, to specify original parameters, we need to add the “O.” symbol. So the expressions should be RD=O.D/2 and RE=O.E/2.
Also, we need to add the prefix “S.” in front of structural parameters. For example, if we want to cite the structural parameter RD, we need to enter “S.RD”.

Set the Feature Points and Coordinates

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_06.png
2013-7-24 10:09


We know that the geometry is generated by connecting points with entities. For the convenience of distinguishing points, we use the P1, P2 nomenclature to represent the end points of straight lines, and C1, C2 to represent the end points of center lines.

When we export a standardized part, we need to select a point as the base point. In this example, we take point P1 as the base point, so its coordinate should be 0,0. The coordinates of other features are calculated from this, such as the coordinate of L1, which is (O.B, S.RE). We can calculate the coordinates manually, or else use the Formula Builder tool. (For details about the Formula Builder, please refer to the help documents.)

Confirm the Entities

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_07.png
2013-7-24 10:09


After we determine the feature points, we draw the geometry. SPB provides ways to generate straight lines, circles, arcs, and polylines. For example, we can add a 2D polyline through point L1, L2 and L3, L4 to create the probe’s head in the side view.

Preparation
1. From the start menu, launch the tool.
2. Right click the name “zwmpartbuilder” from the directory tree. From the shortcut menu, choose “New database”, and then enter the name of the classification. For this tutorial, we set name as “ZWSOFT”. The save location is C:\Users\Public\Documents\ZWSoft\zwcadm\2012\en-US\FixedStyles\spblib.


1. From the start menu, launch the

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_08.png
2013-7-24 10:09
tool.
2. Right click the name “zwmpartbuilder” from the directory tree. From the shortcut menu, choose “New database”, and then enter the name of the classification. For this tutorial, we set name as “ZWSOFT”. The save location is C:\Users\Public\Documents\ZWSoft\zwcadm\2012\en-US\FixedStyles\spblib.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_09.png
2013-7-24 10:09


3. Right-click “ZWSOFT,” and then choose “Add part classification.” Name it “probe”.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_10.png
2013-7-24 10:09



4. Add the part under “probe” by right-clicking it, and then choosing “Add Part.” Name it “round-60”.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_11.png
2013-7-24 10:09


5. For the convenience of next step, we now draw one of the parameter parts in ZWCAD Mechanical. When done, set the “WMFBKGND” variable to “on” to set the background of the reference picture to black. Enter the “wmfout” command and then select the geometry from which you want to generate the image.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_12.png
2013-7-24 10:09


6. Add the image to SPB using the command shown below

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_13.png
2013-7-24 10:09


Attach the Original Parameters

1. Analyze which parameters control the parameterized part.
As we noted above, the dimensions A, B, C, D, and E control the geometry of the part. We call these the “original parameters.” Add the parameters to “Parameter definition” interface.
Note: The Type should be set to “Digital” and Visible should be set to “Yes”.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_14.png
2013-7-24 10:09

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_14.1.png
2013-7-24 10:26


2. Enter the value of the original parameters. (Note that you could also import the preset data from an XML file.)

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_15.png
2013-7-24 10:09


Insert Structural Parameters
Sometimes we need to construct interim parameters when we generate the geometry. We call this a “structural” parameter. For example, the radius of circle D should be RD=O.D/2. To specify these, click the “Structural parameters” tab at the bottom of the dialog box. (See figure below.)

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_16.png
2013-7-24 10:09

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_x.png
2013-7-24 10:28


Add Feature Points
As described earlier, we set point P1 as the origin coordinate, and from this we can calculate the coordinates of the other points.
For the convenience of exporting the standardized part, we set the distance between the two views (side and front) to be 50mm, and so the coordinates of P2 are (O.A-O.B+50+S.RE, 0).

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_17.png
2013-7-24 10:09


You can enter the formula directly, or you can access the formula builder with a right click.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_18.png
2013-7-24 10:09


ZWCAD Mechanical, custom standard part, part builder

Part_Builder_19.png
2013-7-24 10:09



In summary, the coordinates of the points should be as listed by the figure below:

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_20.png
2013-7-24 10:09


Notes: “O.A” represents the original parameter, “S.RD” represents the structural parameter, “P.P2.X” represents the X coordinate of point “P2”.

Add Entities
Click the Entity tab at the bottom of the dialog box. Right click the entity you want to add.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_21.png
2013-7-24 10:09


ZWCAD Mechanical, custom standard part, part builder

Part_Builder_22.png
2013-7-24 10:09


After you add the entity, remember to save the entry.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_23.png
2013-7-24 10:09


Once done, the dialog box will look something like the figure below. Naturally, the entity tree will look different, depending on the geometry used to construct the entity.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_24.png
2013-7-24 10:09


Add Views
To add views, click the “View” tab. Add a new view, name it “main view,” and then select P1 as the “Base point”; change the “Default state” to Yes. If necessary, add a picture to this view for reference, then select the entities you want to add to this view.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_25.png
2013-7-24 10:09


Set the library control items:
• “Allows drag” means that you can insert the standardized part at the cursor position.
• “Base metafile” means you can export the standardized part with the basic geometry.
Please refer to the help documents for details.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_26.png
2013-7-24 10:09


You can add more views to the entity.

Other Settings
Part Properties
You can add the properties to the standardized part to make it easier to generate BOMs.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_27.png
2013-7-24 10:09


Library Control
Make sure the options are checked, as shown below:

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_29.png
2013-7-24 10:09


Other Properties
Select the “Select base point” as P1, “Rotation angle” as Value 0, and the “Export picture scale” option as Drawing scale
Note: The “value 0” and the “drawing scale” items are parameters; you can check them from the structural parameter tab.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_30.png
2013-7-24 10:09


ZWCAD Mechanical, custom standard part, part builder

Part_Builder_31.png
2013-7-24 10:09


After we complete above operation, we finish by adding a standardized part.

Export the Standardized Part
To export the standardized part, enter the “_ZWM_SPART_OUT” command, or else click the button.

Standardized Parts Migration
When you need to transfer the standardized parts from one PC to another, there are two methods for doing this.

Method 1: Use the Style Update and Package tools.
Note: These tools package all standard parts on the source PC, and then replace all the standard parts on the destination PC.

Method 2: Copy the standard parts file, ZWSOFT.spb, from its folder. (The default folder path is C:\Users\Public\Documents\ZWSoft\zwcadm\2012\en-US\FixedStyles\spblib.) Copy the file to the corresponding folder on the destination PC. Then, use Notepad to open the “zwmpartbuilder.ini” file.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_32.png
2013-7-24 10:09


If you add one standard part, then increase the value of “NodeCount” by 1. For example, if the value is 45 (as illustrated above), then modify the value as NodeCount=46.
Next, jump to the end of the file, and then copy the lines of text shown below in the first red rectangle showed. Paste the text at the end of the file, and then modify it as shown.

ZWCAD Mechanical, custom standard part, part builder

Part_Builder_33.png
2013-7-24 10:09


After this, all the migration is completed. You can now use the new standard part on the second PC.



Try ZWCAD+ free for 30 days
http://www.zwsoft.com/zwcad+/
See also
X