DriveWorks Pro 15: Generation Tasks [send feedback...]

Generation Tasks

Generation Tasks allow additional automation tasks to be run on models and drawings.

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

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 Modelling.


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 Modelling, 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

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 from 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

There are two areas where Generation Tasks can be added:

  • Pre Drive Tasks
  • Post 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.

Post Drive Tasks run after the Main Drive Sequence. This is after the cloned model or drawing has had its captured parameters driven, but before the Finish up... sequence takes place.

Tasks are added to the Pre Drive or Post Drive sequence by dragging from the toolbox.

Once added, they can be reordered by using the Move icons in the command bar.

Tasks can be removed or change sequence by right clicking on the task and selecting the appropriate option from the menu.

Adding 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 from 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.

Moving 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...

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 from the command bar

    Or

  • Right click and select Edit Condition from the menu

See Generation Tasks - Condition Editor for more information.

Toolbox

General
TaskDescription
Create ImageCreates an image of the component or drawing.
Force RebuildForces a rebuild of the component or drawing.
Run SOLIDWORKS MacroRuns a SOLIDWORKS macro.
Save ComponentSaves a component or drawing.
Set Custom PropertyCreate or Set a Custom Property
Setting: Hide All TypesHide all types of reference geometry etc. in the current document.
Zoom To FitZooms the component or drawing to fit.
Assembly
TaskDescription
Create Angle MateCreates an angle mate between two entities in an assembly.
Create Coincident MateCreates a coincident mate between two components in an assembly.
Create Distance MateCreates a distance mate between two components in an assembly.
Insert ComponentInserts a component into an assembly.
Drawing
TaskDescription
Auto Arrange DimensionsAutomatically arranges dimensions in the current drawing.
Auto Balloon ViewAuto Balloon a drawing view.
Delete Dangling DimensionsDeletes dangling dimensions.
Set Annotation PositionSets the XY position of an annotation.
Setting: Hide Dangling DimensionsSets the option to hide dangling dimensions.
Setting: Hide Dangling DimensionsSets the option to hide dangling dimensions.
Part
TaskDescription
Insert Decal on a Named FaceInserts a Decal on a Named Face.
Insert Library FeatureInserts a Library Feature.
Part & Assembly
TaskDescription
Create ConfigurationCreates a configuration in the component.
Delete ConfigurationWill delete the given configuration.
Delete FeatureWill delete the given feature.
Show Named ViewShows a named view.
Switch ConfigurationSwitches the active configuration.

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://hub.driveworks.co.uk/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.

Table of Contents