Photo Frame Tutorial: An Introduction To Driveworksxpress
Photo Frame Tutorial: An Introduction To Driveworksxpress
An Introduction to DriveWorksXpress
www.driveworksxpress.com
An Introduction to DriveWorksXpress
This Introductory Tutorial to DriveWorksXpress is intended to give you hands-on proficiency of
DriveWorksXpress. Upon successful completion of this tutorial, you will be able to:
Why Automate?
If you worked for a company that designed photo frames, where each frame you designed was
different, then, using DriveWorksXpress could automate the process.
As you can see, this frame could be of any height, width (within
reason). Therefore, each time a new job comes in with a
different width for the frame, each piece of wood within the
frame needs to be re-designed and new drawings produced.
This would require a custom design to be produced for each sales enquiry, which would be very
repetitive for the engineer, which would in turn effect the response time to a sales enquiry.
By automating the design process of this photo frame using DriveWorksXpress, you will not need to
change the dimensions and properties of each model within the assembly for each new variation.
Instead, you will enter basic information, such as height and width into a pre-designed form already
created by you. As DriveWorksXpress allows you to capture your design know-how and incorporate
it into your project, your project and form will be based on your design rules.
Rules allow the opening dimensions to be taken and used to calculate the size of each component
that makes up the frame. DriveWorksXpress has an inbuilt Rules Builder which makes this process
easy.
You can set up your DriveWorksXpress project to automatically produce a General Arrangement
Drawing that shows the exact requirements for each job.
By following the step -by-step guide set out in the following tutorial, you will be automating your
own designs in SolidWorks in no time, thanks to DriveWorksXpress!
To begin this tutorial, you will need to download the SolidWorks project files for the Frame Assembly
from the DriveWorksXpress website:
http://www.driveworksxpress.com/index.php/training
The SolidWorks files are contained within a zipped file. Ensure you extract the files from this folder
before beginning the training.
The DriveWorksXpress Welcome Page will appear in the SolidWorks Task Pane and offers three
options:
Run Models
For this tutorial, highlight the ‘Create / Change Database’ check box, then click the ‘Next’ button
at the top of the DriveWorksXpress Task Pane.
Browse to a specific location where you would like your database saved to, then name your new
project “Photo Frame”.
Following the creation of a new database, click ‘Next’ to forward you to a new window within
the DriveWorksXpress Task Pane, which will allow you to capture your model and the parameters
that will be controlled on that model.
There are three ways to select which models are to be driven by DriveWorksXpress:
Make sure ‘Browse for new model’ is selected and click ‘Next’ .
Browse to the location where you saved your files, open the “DriveWorksXpress Photo Frame
Tutorial” folder and select the SolidWorks Assembly Document called Frame Assembly.SLDASM
and click ‘Open’.
Once DriveWorksXpress knows the location of the files, we’ll need to tell it which components we
want to capture dimensions and features from.
The DriveWorksXpress Task Pane will now show all of the options for capturing model information,
as well as a tree showing the structure of the Photo Frame Assembly.
Captured Models
Custom Properties
If rules are required to drive which configuration of a part or assembly gets used, this can also be indicated
in the ‘Drawing and Configurations’ option
In this example we will not drive all of the parts in the assembly so make sure that ONLY the check
boxes shown check in the image are selected.
Dimensions
The Dimensions and Features Tab is where you decide which parameters from the model you want
to capture and drive.
‘width@[email protected]’
Click ‘Add’.
Using the SolidWorks feature tree that is displayed on the left hand side of the screen, Double click
on the feature named “Boss-Extrude 1”. Select the dimension ‘5.000’ that appears on the model.
The name of this dimension has been changed in SolidWorks. DriveWorks has picked up on this, so
has given the name the same name as the SolidWorks Dimension.
Click ‘Add’.
Click on ‘Captured Models’ tab and double click ‘Mat’ in the model tree.
Select the ‘Dimensions and Features’ tab at the bottom of the DriveWorksXpress Task Pane.
The dimensions required on this particular model are the same as the model above, width and
height.
Using the SolidWorks feature tree that is displayed on the left hand side of the screen, double click
on the feature named “Boss-Extrude 1”. Select the feature and three dimensions should appear.
Capture the dimensions within the model (shown in the table below) using the same method as
previously demonstrated.
Capture the dimensions within the model (shown in the table below) using the same method as
previously demonstrated.
NOTE: You will need to change the DriveWorks Name of the dimension to incorporate Frame.
Click on the ‘Browse’ button to search your files for the corresponding SolidWorks drawing and
input it into your program.
The file name of the Frame Assembly SolidWorks drawing will appear in the Drawing File Name Box.
Adding Controls
To access the forms designer, click the ‘Next’ arrow at the top of the DriveWorksXpress Task
Pane.
Name - You must provide a descriptive name for the form control. This name will be the description
the user sees as they fill in your form i.e. Customer Name
NOTE: The yellow warning triangle will remain by the ‘Name’ box until a Name has been entered.
Numeric Text Box: Input numeric values and specify a minimum and maximum value
Spin Button: Users can select from a range of numeric values. A maximum and a
minimum value, as well as the incremented value
In this example, let’s create a Customer Name and an Order Number using a Text Box. Later we will
build a rule to append the Customer Name and Order Number to each file so that each set of new
files in a specification can be easily identified.
Notice that the form control appears in the form designer within the DriveWorksXpress Task Pane.
As you can create your form you can edit and delete controls, as well as change the order by using
the Up and Down arrows.
Add a control to specify the overall height of the finished model using Spin Button, which allows a
Add a control to specify the overall width of the finished model using Drop Down. This allows you to
type in list data with the user can select from.
Control
Type of Control Required? Options
Name
4
5
Width Drop Down Yes 7
9
10
Click
Finally add a control to specify the material of the finished model using Drop Down
Control
Type of Control Required? Options
Name
Oak
Maple
Material Drop Down Yes
Pine
Mahogany
Click
Click ‘Test’ within the Form Designer to preview the form you have created and test it out for
yourself.
You will notice that as you fill out the forms, the
background of the text boxes will change from pink
to white, and the yellow warning triangles will
disappear.
Rules Building
Building rules within DriveWorksXpress allows
your designs to be automated.
Begin by constructing rules for the File Names. This uses the Customer Name and Order Number
that were filled out in the form created earlier to generate file names so that each set of new files in
a specification can be easily identified.
Rules Builder
There are four drop-down menus within the DriveWorksXpress Rule Builder:
Inputs
Recent
Math
Logic
To create unique file names for each new specification, file names should be populated with
information that will allow you to recognise what they are.
For the Frame Assembly, you are going to use the “Customer Name” and “Order Number” to create
file names that have the format, “Component OrderNumber – CustomerName”.
This will now place the value from the control into the rule.
To incorporate the hyphen between OrderNumber and CustomerName, ampersands (&) need to be
used. This is because OrderNumber is one string and the hyphen is another string. Therefore, you
need to type & “-“.
NOTE: The rules builder will appear in red until the full rule is valid.
DriveWorksXpress allows you to build rules for all the selected models at the same time by holding
down CTRL or shift to multiple select:
Multi-select all of the Rules except Frame and then click ‘Build’.
These rules are going to be different from the main assembly. We are going to incorporate the
Height and the Width of the frame in to the rule. This will mean that DriveWorks will create and
build up a standard set of components as their file name will be based on their actual size. This will
speed up generation as DriveWorks will not create the part if it already exists.
The Rule should now read Height & “-“ & Width.
‘Frame 5-10’
This is going to incorporate the inputs from the Height and the Width but will it will also use the
Material.
The Rule should now read Height & “-“ & Width & “-“ & Material.
‘Frame 5-10-Oak’
This could create a long File Name if Mahogany was chosen, so we are going to shorten the Material
to the first two letters.
Note: An explanation of this function can be found in The Little Book of Rules on page 130.
Height & “-“ & Width & “-“ & LEFT( Material , 3)
This will take the first three letters from the Left of the Material input.
In order for DriveWorks to switch the configuration the exact name of the configuration must be
entered in to the configuration rule.
Click
Click
To create this rule we want to use todays date. We could do this be adding a control on to the user
form which requires the user to enter todays date, or better, we can use one of the built in functions
to enter the date.
Note: An explanation of this function can be found in The Little Book of Rules on page 94.
You will see the result at the bottom of the window showing todays date.
You can also make use of the TEXT function to format the date differently
Note: An explanation of this function can be found in The Little Book of Rules on page 136.
Type the following rule in to the rules builder and note the change in the Result.
Text(Today(),"dd-mm-yyy")
Name Rule
Drawn By “{YourName}”
Material Material
Creating rules for the dimensions of the Frame Assembly will allow these dimensions to be
automated using DriveWorksXpress, creating new SolidWorks files based on the information entered
into the form created earlier.
Click
Click on a dimension and then ‘Build’ to create a rule for the dimension.
The table below shows the name of each rule and the formula that should be input into the Rules
Builder:
Now click or click , which will take you to the ‘Run’ Task Pane of DriveWorksXpress.
Within the Run Task Pane, you will be able to see the eight
controls that you created earlier in the project. Hovering
over any of the controls will cause a message to appear
that tells you the range of values you can enter. This is a
useful reminder to help you to enter the correct values.
If you want more practice with DriveWorksXpress, there is a DriveWorksXpress Mobile Gantry
tutorial available online at:
www.driveworksxpress.com
www.driveworksxpress.com