Exports information from the model passed and all sub models.

This routine is normally used for information purposes but it can be used in normal code to dynamically find certain information.

Parameters

model (string) - the model name (no extension)

properties (array of string) - a list of property names to export into the table of data
    See Remarks for the list of supported Properties...

ActiveFeaturesOnly (optional Boolean) - TRUE to include only active features (and there sub features) in the results. Default of FALSE includes everything.

MaxDepth (optional Integer) - DEFAULT is 5 (Number of levels below the current model to retrieve).

Return Value

DataTable - Exports a .NET DataTable object with the properties expected (as the column names)

Remarks

The following Columns are ALWAYS exported as the first 4 columns in the data table

  • FileName : The File Name of the Model
  • Path : The List of file names above this object and its filename separated by "\"
  • ParentPath : The Direct Parent Objects "Path" (to allow finding the parent in code)
  • Depth : Integer indicating 0 for the Top Level Assembly, 1 for first sub level, 2, etc ...

Supported Property Names...

Object - Area - Property - Returns
Solid - Method - IsActiveStatus - System.Boolean
Solid - Method - IsCommonNameModifiable - System.Boolean
Feature - Method - IsEmbedded - System.Boolean
Feature - Method - IsGroupMember - System.Boolean
Solid - Method - IsModified - System.Boolean
Feature - Method - IsReadonly - System.Boolean
Solid - Method - IsSkeleton - System.Boolean
Feature - Method - IsVisible - System.Boolean
Feature - Method - IsComponentFeature - System.Boolean
Solid - Method - IsFamilyMember - System.Boolean
Feature - Method - IsModelItem - System.Boolean
Feature - Method - Id - System.Int32
Solid - Method - CommonName - System.String
Feature - Method - FeatSubType - System.String
Feature - Method - FeatType_ToString - System.String
Feature - Method - FeatTypeName - System.String
Solid - Method - FullName - System.String
Solid - Method - GenericName - System.String
Solid - Method - InstanceName - System.String
Feature - Method - Name - System.String
Solid - Method - Origin - System.String
Feature - Method - StatusString - System.String
Feature - Method - Type_ToString - System.String
Solid - Method - VersionStamp - System.String
Solid - Method - PfcTypeName - System.String

 

Examples

Dim dt as DataTable = CAD.Asm.GetSolidTree("topasm.asm",{"Id","CommonName","IsModified"})
For each r as datarow in dt.rows
dim Comm as string= r("CommonName")
... do something with the data in the row
next