Home Search

DriveWorks Pro 24
Insert Component

Send Feedback

Insert Component

The Insert Component Generation Task will insert a Component into an Assembly.

Inserting Driven Components

When this task is used to insert a component that is driven (captured and generated by DriveWorks) a model dependency will be automatically created.

This ensures the inserted component is generated before the assembly it is being inserted into (without having to use Tags or Triggered Actions).

This is particularly important when inserting components created by a child specification, into an assembly created by a parent specification.

Properties

Property NameDescription
(Name)The unique name for this task.
ConfigurationThe name of the Configuration of the Component to insert.
File Path

The name of a driven replacement component prefixed with <Insert>, for example:

"<Insert>Component Name"

Or the full file path, name and extension of the model to insert, for example:

"C:\Models\assy.sldasm"

Or

"<InsertFile>C:\Models\assy.sldasm"

Component ReferenceThe unique value for the component reference of the instance.

This appears in braces { } at the end of the component name string in the FeatureManager design tree.

Leave blank to not set a component reference.

Examples

When this task is added the properties are dynamic by default.

Examples for the File Path property

For models not captured in DriveWorks

File Path Example RuleMeaning
"C:\SOLIDWORKS Parts\Bracket.sldprt"

Or

"<InsertFile>C:\SOLIDWORKS Parts\Bracket.sldprt"

The full file path, name and file extension of the component to be inserted.
"C:\SOLIDWORKS Assys\Bracket.sldasm"

Or

"<InsertFile>C:\SOLIDWORKS Parts\Bracket.sldasm"

The full file path, name and file extension of the component to be inserted.
DWVariableModelPath & DWVariableChildModel

Or

"<InsertFile>" & DWVariableModelPath & DWVariableInsertedModel

The full file path, name and file extension of the component to be inserted.

Where:

DWVariableModelPath would result in C:\Specifications\Models\ for example.

DWVariableInsertedModel would result in Bracket 0001.sldprt for example.

Driven Component Example

Driven components are models that have been captured and will be generated from the same specification.

File Path Example RuleMeaning
"<Insert>MyComponentSet"Will insert the model generated from the captured model named MyComponentSet.

A dependency will be created to ensure this model is generated prior to the assembly it is inserted into.

Examples for all other properties

Property NameExample RuleMeaning
Configuration"Config1"Will switch the configuration to Config1 in the inserted component.
Component ReferenceDriven InstanceWill set the component reference to: Driven Instance. This will appear in braces { } at the end of the component name string in the FeatureManager design tree.

Generation Sequence

This Task can be added to the following Generation Sequence(s):

  • Pre Drive (will be run before the Main Drive Sequence)
  • Post Drive (will be run after the Main Drive Sequence)

Additional Resources

MyDriveWorks - Tech Tips

Insert and Mate

This Project demonstrates how to insert and mate a component using Generation Tasks and how to use looping to insert multiple components.

Dim Inserted Models

Find out how to add dimensions to Drawings that show Assemblies generated using the Insert Component Generation Task.