Anonymous
en respuesta a:
Anonymous
05-31-2018
11:05 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
05-31-2018
11:05 AM
A Variant type means it can be one thing or another (typically two choices, sometimes N!)
In this case, you can either pass the name of a curve, or the curve itself. For instance, if you make a curve like:
Dim resultCurve As IFMCurve
...
Set resultCurve = curvePtList.AddCurveFromPtList(False)
' then you can pass the IFMCurve to the pocket
doc.Features.AddPocket(resultCurve, ...)
' or you can do as you do above, and pass the string name of the curve, as in,
doc.Features.AddPocket(resultCurve.Name, ...