Hello
I like to get the volume of a selected element from a macro.
The following code gives the error "type mismatch":
Sub CATMain()
CATIA.ActiveDocument.Selection.Clear()
Set dok = CATIA.ActiveDocument
Set volym=dok.selection
Dim objtyp(0)
objtyp(0)="Pad"
msgbox...