David, thanks - things can start moving again:
void RunScript(OnBrep S, OnCurve D)
{
/// <your code>
//there is this strange bug: sometimes when baking the object
there isn't any mesh (but the object is there) - just change anything
from rhino's mesh options and voila (or explode it and then join it
back again.
//might be just a quirk - seems I can't reproduce it.
S = S.BrepForm();
OnUtil.ON_BrepExtrudeFace(ref S, 0, D, true);
A = S;
/// </your code>
}
C# code since I'm so used to semicolons i spend a lot of time erasing
them from my vb.net code :)