VB Sweep2 Null Arguments

I’ve been trying to run the AddSweep2 function in RhinoVB with a fixed height. However, arrStartPt and arrEndPt are optionally required before this but seem to generate an error when null is used.

I’ve tried entering arrStartPt and arrEndPt as actual points but then a surface is not generated.

Any assistance would be greatly appreciated.

In VBScript, Null and Empty are not the same thing.

In general, if you want to skip over optional arguments, you just don’t specify them. For example:

Call Rhino.AddSweep2 (arrRails, arrShapes, , , False)