Yes, I need it for multiple versions of AutoCAD, without reference to specified version. In VB6 it works correctly, in .NET thet's problem with casting in lines like AutoCADObject.ActiveDocument.ActiveLayer = CurrentLayer
or also
Dim outerLoop As Object
outerLoop = AutoCADObject.ActiveDocument.ModelSpace.AddPolyline(HatchPoint)
hatchObj.AppendOuterLoop(outerLoop)
This code also drops to error in .NET and works fine in VB6