Home Search

DriveWorks Pro 22
Insert Library Feature

Send Feedback

Insert Library Feature

The Insert Library Feature will insert a named Library Feature onto a named Face.

Key Points

When using this Generation Task there are a few things that are worth noting before trying to use the task.

Firstly you need to make sure that you have named the Face you wish to insert the Library Feature on. To name a Face you will need to use the Face Properties menu. This can be found by right clicking on the Face, extending the menu and then selecting Face Properties.

Another thing to consider is the file path rule. When creating the file path rule, it is important to remember to include the extension .sldlfp.

For this Generation Task the order of the Planes is important too. If the order doesn't match the order that the Planes are captured in the Reference Folder the task will not work.


Property NameDescription
(Name)The unique name for this task.
Configuration NameThe name of the Configuration of the library feature that will be used.
Configurations in which to Suppress FeaturesPipebar (|) delimited list of Configurations in which the sub features are to be suppressed.
Face NameThe name of the Face the library feature will be inserted onto.
When DriveWorks parses the model looking for the named Face it will look for an exact match (case sensitive) first.

If an exact match is not found it will look for a non-case-sensitive match, after completing the first.

Ensuring the Face Name is exactly as it was created will make Model Generation more performant.

Features to SuppressPipebar (|) delimited list of sub features to suppress after insertion.
Library Feature FilenameThe full path to the library feature.
Size Dimension NamesPipebar (|) delimited list of dimension names (for example Left|Right|Back). This must be uniquely named in each library feature as the sketch and feature names will change when inserted.
Size Dimension ValuesPipebar (|) delimited list of dimension values in model units (for example 10|120|8).
First PlaneThe name of the first Mating Plane.
Second PlaneThe name of the second Mating Plane.


When this task is added the properties are both static and dynamic by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

Property NameExample RuleExample ResultMeaning
Configuration Name"Default"DefaultThe name of the configuration of the library feature that will be used.
Configuration in which to suppress"Config2"Config2Pipebar (|) delimited list of Configurations in which the sub features are to be suppressed.
Face Name"Face for slot"Face for slotThe name of the face the library feature will be inserted onto.
Features to Suppress"HexagonCorners"HexagonCornersPipebar (|) delimited list of sub features to suppress after insertion.
Library Feature Filename"C:\ProgramData\SOLIDWORKS\[SOLIDWORKS Version]\design library\features\metric\DriveWorks\slots\straight slot.sldlfp"C:\ProgramData\SOLIDWORKS\[SOLIDWORKS Version]\design library\features\metric\DriveWorks\slots\straight slot.sldlfpThe full path and name of the library feature
Size Dimension Names"CutOutWidth|CutOutHeight"CutOutWidth|CutOutHeightPipebar(|) delimited list of the dimensions names.
Size Dimensions Values"30|20"30Pipebar(|) delimited list of dimension values for the model.
First Plane"Right Plane"Right PlaneThe name of the first mating plane.
Second Plane"Top Plane"Top PlaneThe name of the second mating plane.

Using SOLIDWORKS library feature parts

Using the default Library Feature Parts installed with SOLIDWORKS will cause dangling dimensions due to the sketch position being defined by edges in the .sldlfp file.

If using SOLIDWORKS Library Feature Parts is desired, the sketch in the .sldlfp file must be changed so that the sketch position is defined by planes rather than edges.

Recommended practice is to copy the .sldlfp files to another folder before editing, leaving non customized files in the original location.

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)

DriveWorks Tech Tips Portal

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.