Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Anonymous
en respuesta a: Anonymous

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, ...