Generation Tasks allow additional automation tasks to be run on models and drawings.
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.
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:
The Generation Tasks editor has three columns:
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 Specific||Type Specific|
|This view allows tasks to be run on:
||This view allows tasks to be run on:
|A combination of Model Specific and Type Specific tasks can be applied.
Type Specific tasks will run before Model Specific Tasks.
Switch to Type Specific view by clicking the column heading and selecting Type Specific.
Click the Type Specific button from the command bar.
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.
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.
There are two areas where Generation Tasks can be added:
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.
To add a Generation task:
If more than one task has been applied all tasks can be deleted by multi-selecting and using one of the above methods.
Tasks can be moved from Pre Drive to Post Drive (and Post Drive to Pre Drive) by:
Conditions are used to control whether specific tasks in a task sequence are executed.
With the applied Generation Task selected, either:
See Generation Tasks - Condition Editor for more information.
|Create Image||Creates an image of the component or drawing.|
|Force Rebuild||Forces a rebuild of the component or drawing.|
|Run SOLIDWORKS Macro||Runs a SOLIDWORKS macro.|
|Save Component||Saves a component or drawing.|
|Set Custom Property||Create or Set a Custom Property|
|Setting: Hide All Types||Hide all types of reference geometry etc. in the current document.|
|Zoom To Fit||Zooms the component or drawing to fit.|
|Create Angle Mate||Creates an angle mate between two entities in an assembly.|
|Create Coincident Mate||Creates a coincident mate between two components in an assembly.|
|Create Distance Mate||Creates a distance mate between two components in an assembly.|
|Insert Component||Inserts a component into an assembly.|
|Auto Arrange Dimensions||Automatically arranges dimensions in the current drawing.|
|Auto Balloon View||Auto Balloon a drawing view.|
|Delete Dangling Dimensions||Deletes dangling dimensions.|
|Export Drawing Table||Exports a Table from a Drawing as a text document.|
|Rescale And Position View||Rescales and Positions a View on a Drawing.|
|Set Annotation Position||Sets the XY position of an annotation.|
|Setting: Hide Dangling Dimensions||Sets the option to hide dangling dimensions.|
|Insert Decal on a Named Face||Inserts a Decal on a Named Face.|
|Insert Library Feature||Inserts a Library Feature.|
|Part & Assembly|
|Create Configuration||Creates a configuration in the component.|
|Delete Configuration||Will delete the given configuration.|
|Delete Feature||Will delete the given feature.|
|Show Named View||Shows a named view.|
|Switch Configuration||Switches 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.
Create Image Generation Task
This Tech Tip demonstrates how to create images of generated assemblies, parts or drawings using generation tasks.
Drawing Control Generation Tasks
Use the Auto Arrange Dimensions, Auto Balloon View and Rescale and Position View generation tasks to control a driven drawing.
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.
Insert Decal on Named Face
This Project demonstrates how to insert a decal onto a part using Generation Tasks.
Insert Library Feature Gen Task
This project demonstrates how Insert Library Feature can be applied to your models.