ISetsFolder::Children

Use this method to get all Sets available in a folder. 

Compatibility

Cimatron 2026 or later

Syntax

System.Object Children();

def Children()->System.Object

Return Type

Return: System.Object  aChildren—A variant that contains string type one dimensional array of set name 
   

Input Type

None

Remarks

None

Example

// PREREQUISITE:
// 1. Create Curves and Planes in Cimatron
//Use Interface Sample Code before this code

// Create a Source Empty Set Folder
interop.CimBaseAPI.ISetFolder aSetFolder = aSetFactory.CreateEmptySetFolder();

// Get interop.CimBaseAPI.ISet object for existing sets created in file. Use that set name instead of 'Curves' and 'Planes'
aSetFactory.GetSet("Curves", out interop.CimBaseAPI.ISet aSetFirst);
aSetFactory.GetSet("Planes", out interop.CimBaseAPI.ISet aSetSecond);

// Add Sets object inside the Set Folder
aSetFolder.AddSet(aSetFirst);
aSetFolder.AddSet(aSetSecond);

//Get the names of Sets that are put in the Set Folder
Object aSets = aSetFolder.Children();

# PREREQUISITE:
# 1. Create Curves and Planes in Cimatron
#Use Interface Sample Code before this code

#Create Empty Set Folder
aSetFolder = (interop.CimBaseAPI.ISetFolder)(aSetFactory.CreateEmptySetFolder())

#Get interop.CimBaseAPI.ISet object for existing set created in file.Use that set name instead of Curvesand Planes
aSetFirst = aSetFactory.GetSet("Curves")
aSetSecond = aSetFactory.GetSet("Planes")

#Add Set object inside the Set Folder
aSetFolder.AddSet(aSetFirst)
aSetFolder.AddSet(aSetSecond)

#Get the names of Sets that are put in the Set Folder
aSets = aSetFolder.ObjectChildren