Home Search

DriveWorks Pro 22
SppGetCapturedComponents

Send Feedback

SppGetCapturedComponents

This is now an inbuilt function, please see GetGroupCapturedComponents for more information.

Returns an Array with details of all captured components within the Group.

Syntax

SppGetCapturedComponents()

Where:

There are no arguments for this function.

Example

RuleResultMeaning
SppGetCapturedComponents(){"Name","Path","Exists","Child Reference Count","Type"; "RollerMountAssembly","C:\MyDocuments\SW\RollerMountAssembly.SLDASM",True,2,"DriveWorks.SolidWorks.Components.AssemblyFactory, DriveWorks.SolidWorks"; "Bracket","C:\MyDocuments\SW\Bracket.SLDPRT",True,0,"DriveWorks.SolidWorks.Components.PartFactory, DriveWorks.SolidWorks"; "Bearing","C:\MyDocuments\SW\Bearing.SLDPRT",True,0,"DriveWorks.SolidWorks.Components.PartFactory, DriveWorks.SolidWorks"}This returned Array is returning information on any SOLIDWORKS Parts, Assemblies and Drawings that have been captured in the Group.

Returned Array

The Array is made up of data in the format {"Name","Path","Exists","Child Reference Count","Type"}

Name - The name of the component.

Path - The full path to the component.

Exists - True if the component exists, False if not.

Child Reference Count - The quantity of child references captured for the component (including drawings).

Type - The type of component. This can be one of:

  • "DriveWorks.SolidWorks.Components.AssemblyFactory, DriveWorks.SolidWorks"
  • "DriveWorks.SolidWorks.Components.PartFactory, DriveWorks.SolidWorks"
  • "DriveWorks.SolidWorks.Components.DrawingFactory, DriveWorks.SolidWorks"