well with a following code a can select several curves and disassemble them. but i need each curve in a separate geo set. like curve 23 in geo set 1 and parallel in geo set 2
Sub CATMain()
Dim Document, Part, SELECTION, Status, sSel
Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Part = Document.Part
Set SELECTION = Document.SELECTION
SELECTION.Clear
InputObjectType(0) = "AnyObject": iMsg = "Select curves..."
MsgBox "PRESS OK AND SELECT CURVES"
Status = SELECTION.SelectElement3(InputObjectType, iMsg, _
False, CATMultiSelTriggWhenUserValidatesSelection, True)
If ((Status = "Cancel") Or (Status = "Undo") Or (Status = "Redo")) Then Exit Sub
CrCount = SELECTION.Count
For i = 1 To CrCount
'Set SelectedElement = SELECTION.Item(i)
'Set myCurve = SelectedElement.Value
Dim hybridShapeFactory As Factory
Set hybridShapeFactory = Part.hybridShapeFactory
CATIA.StartCommand "Disassemble"
SELECTION.Clear
Next i
End Sub