Home Search

DriveWorks Pro 19
Generation Tasks

Send Feedback

Generation Tasks

Generation Tasks allow additional automation Tasks to be run on Parts, Assemblies and Drawings.

Only Queued model generation is supported. Generation Tasks will not work with OnDemand model generation.

Please see Model Generation for more information on the different model generation types.

Enabling a loop allows the sequence of Tasks to iterate through the Component or Drawing with each iteration producing unique results. This allows DriveWorks to perform Generative Modeling.


Generation Tasks are run before (Pre Drive) or after (Post Drive) the standard generation sequence.

The standard generation sequence comprises, for example:
  • Copying of files
  • Replacing of components
  • Driving of dimensions
  • Changing states of features
  • Applying values to Custom Properties

This is essentially the driving of existing Files, Geometry and Meta-Data.

Generation Tasks perform Generative Modeling. This is the ability to add to Models or Drawings.

This could be, for example:

  • Creating Configurations
  • Inserting components into an Assembly
  • Auto ballooning a Detail View

The Generation Tasks editor has three columns:

  • Task Context - Choose if Tasks are performed on specific Models or Drawings OR all Models or Drawings
  • Generation Sequence - Add Tasks to the pre or post drive sequence
  • Toolbox - Select the Tasks required from the Toolbox

Status Bar

The Status Bar (bottom left of the main window) displays information on the current selection. This includes:

  • The number of tasks the selected component contains
  • The number of tasks that are currently selected

Task Context

The Task Context column allows Generation Tasks to be run on individual Models and Drawings or every Model and Drawing.

By default the column displays the components in Model Specific view.

Model SpecificType Specific
This view allows Tasks to be run on:
  • Individual Assemblies
  • Individual Parts
  • Individual Drawings
This view allows Tasks to be run on:
  • All Components
  • Assemblies
  • Parts
  • Drawings
A combination of Model Specific and Type Specific Tasks can be applied.
Type Specific Tasks will run before Model Specific Tasks.

Select the Task Context

Switch to Type Specific view by clicking the column heading and selecting Type Specific.

Or

Click the Type Specific button on the Command Bar.

Looping

Looping is available for the Model Specific Tasks.

When a Specification is released with Looped Tasks, release data is created for each loop.

Your Project can keep track of the loop count by applying the Special Variable Current Release Loop Index to your rules.

A loop is enabled by setting the Loop Count property to be greater than 1 in the Model Specific properties window.

Once a loop is enabled the loop icon next to the model turns green.

Also the Pre Drive Tasks and Post Drive Tasks, in the generation sequence, are enclosed within a box. This indicates that any Tasks in these areas are contained within each loop.

Looping an Assembly where a captured Instance is replaced with a file.

Replace rules on an Instance, in an Assembly, are only performed on the first loop. All other loops will ignore the replace rule.

Test Mode will display the result of the Replace rule on the first loop.

Generation Sequence

Tasks are added to the required sequence by dragging from the Toolbox.

Once a Task has been selected, from the Toolbox, all Generation Sequences that are not relevant, will be disabled.

Once added to a Generation Sequence, Tasks can be reordered by using the Move icons on the Command Bar.

Tasks can be removed or moved to another sequence by right clicking on the Task and selecting the appropriate option from the menu.

There are five areas where Generation Tasks can be added:

  • Pre Copy Tasks
  • Post Copy Tasks
  • Pre Drive Tasks
  • Post Drive Tasks
  • Post Close Tasks

Pre Copy Tasks

Pre Copy Tasks run before the Copying Sequence (cloning of the required master model).

Tasks added here are typically taken from the File System or Specifications categories of the Toolbox.

Post Copy Tasks

Post Copy Tasks run after Copying but before the Preparation Sequence (retrieving component references and opening the cloned model in SOLIDWORKS)

Tasks added here are typically taken from the File System or Specifications categories of the Toolbox.

Pre Drive Tasks

Pre Drive Tasks run after the Preparation sequence.

This is after the cloned Model or Drawing has been opened in SOLIDWORKS, but before any driving of captured parameters has taken place.

Most Tasks are available for adding to this Sequence.

Even when a Task is available to add to this Sequence it still may not be appropriate to do so.

For example, using the Task Export STL before any driving of parameters has occurred, is not logical unless no further driving takes place.

Post Drive Tasks

Post Drive Tasks run after the Main Drive Sequence (driving of all captured parameters).

This is after the cloned Model or Drawing has had its captured parameters driven, but before the Finish up... sequence takes place.

Most Tasks are available for adding to this Sequence.

Post Close Tasks

Post Close Tasks run after the Finish Up Sequence (creation of additional file formats, saving, driving of Drawings).

Most Tasks are available for adding to this Sequence, apart from Tasks that require the file to be open in SOLIDWORKS.

How To Add Generation Tasks

To add a Generation task:

  1. Select the Task context the Task is to be added to. This can be:
    • Model Specific - Used to select an individual Model or Drawing to run the Task(s) on.
    • Type Specific - Used to select all Models or Drawings to run the Task(s) on.
  2. Select the Part, Assembly or Drawing the Task is to be run on.
  3. Double Click or Drag the Task from the Toolbox to the required Generation Sequence.
  4. If the Task is to run more than once, set the number in the Loop Count property.
Tasks can be removed by selecting the Task and:
  • Clicking Delete on the Command Bar.
  • Right click, select Remove.
  • Pressing the Delete key on the keyboard.

If more than one Task has been applied all Tasks can be deleted by multi-selecting and using one of the above methods.

How To Move Tasks

Tasks can be moved from Pre Drive to Post Drive (and Post Drive to Pre Drive) by:

  1. Select (Ctrl or Shift select for multi selection) the Task(s) to be moved.
  2. Drag to the required generation sequence or right click and select Move to.

How To Reorder Tasks

The order that Tasks are listed in the Generation Sequence can be reorganized by first selecting the Task you want to move. Once selected, use the options below in the Command Bar :

  • Move Up - Moves selected Task upwards in the list by one place.
  • Move Down - Moves selected Task downwards in the list by one place.
  • Move To Top - Moves selected Task to the top of its current list.
  • Move To Bottom - Moves selected Task to the bottom of its current list.

How To Copy And Paste Tasks

Generation Tasks can be copied and pasted within the same Project or in another Project. To Copy a Task:

  1. Select the Task you wish to Copy.
  2. Copy the Task by either:
    • Right click and select Copy.
    • Click Copy found on the Command Bar.
    • Using the keyboard shortcut.
  3. Browse to the Location you wish to Paste the copied Task.
  4. Paste the Task by:
    • Right click in where you wish to Paste the copied Task and select Paste.
    • Click Paste on the Command Bar.
    • Use the keyboard shortcut.

How To Cut And Paste Tasks

Generation Tasks can be Cut and Pasted within the same Project or in another Project.To Cut a Task:

  1. Select the Task you wish to Cut.
  2. Copy the Task by either:
    • Right click and select Cut.
    • Click Cut on the Command Bar.
    • Using the keyboard shortcut.
  3. Browse to the Location you wish to Paste the cut Task.
  4. Paste the Task by:
    • Right click in where you wish to Paste the Cut Task and select Paste.
    • Click Paste found on the Command Bar.
    • Use the keyboard shortcut.

Conditions

Conditions are used to control whether specific Tasks in a Task Sequence are executed.

With the applied Generation Task selected, either:

  • Click Edit Conditions on the Command Bar

    Or

  • Right click and select Edit Conditions from the menu

See Generation Tasks - Condition Editor for more information.

Toolbox

General
Change Unit System
Clear Selection
Create Image
Force Rebuild
Run SOLIDWORKS Macro
SaveComponent
Set Custom Property
Set Shaded Image Quality
Set Summary
Set Wireframe Image Quality
Setting: Hide All Types
Zoom To Fit
Assembly
Create Angle Mate
Create Coincident Mate
Create Concentric Mate
Create Coordinate System Mate
Create Distance Mate
Create Profile Center Mate
Insert Component
Replace Component
Set Instance State
Assembly & Drawing
Replace Component reference
Drawing
Activate Sheet
Auto Arrange Dimensions
Auto BalloonView
Create General Table
Create Sheet Images
Delete Dangling Dimensions
Drive General Table
Rescale And Position View
Set Annotation Position
Set Annotation Positions
Set Hide Dangling Dimensions
File System
Copy File
Copy Folder
Delete File
Delete Folder
Move File
Move Folder
Part
Drive Sketch Text Properties
Insert Decal On A NamedFace
Insert Library Feature
Part & Assembly
Create Configuration
Delete Configuration
Delete Configurations
Delete Feature
Delete Features
Drive Dimension Tolerance Limits
Export 3MF
Export AMF
Export IFC
Export STEP
Export STL
Set Global Variable
Show Named View
Switch Configuration
Specification
Invoke Operation On Existing Specification
Invoke Transition On Existing Specification

DriveWorks Tech Tips Portal

Drive Config Specific Dimensions

Use the Create Configuration or Switch Configuration generation tasks to control configuration specific dimensions.

View all Tech Tips

Create Image Generation Task

This Tech Tip demonstrates how to create images of generated assemblies, parts or drawings using generation tasks.

View all Tech Tips

Drawing Control Generation Tasks

Use the Auto Arrange Dimensions, Auto Balloon View and Rescale and Position View generation tasks to control a driven drawing.

View all Tech Tips

Insert Component Generation Task

This project demonstrates how to insert and define a component using Generation Tasks, and also how to use Looping to insert multiple components.

View all Tech Tips

Insert Decal on Named Face

This Project demonstrates how to insert a decal onto a part using Generation Tasks.

View all Tech Tips

Insert Library Feature Gen Task

This project demonstrates how Insert Library Feature can be applied to your models.

View all Tech Tips

DriveWorks Tech Tips Portal is available to DriveWorks Pro customers with an active subscription and support contract.

Tech Tips provide cut down projects that highlight specific functionality for faster and more effective learning.

To access the portal:

  1. Go to https://my.driveworks.co.uk/learn/tech-tips/
  2. Login with your DriveWorks Pro account credentials, if asked
  3. Click the Visit Tech Tips Portal button for access

The portal provides a search facility, start typing the name of the Tech Tip (as indicated above) to display the Tip you require.