hi
if you use civil 2023 check
from
#
bt = t.GetObject(db.BlockTableId, OpenMode.ForWrite)
ms = t.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite)
with
bt = t.GetObject(db.BlockTableId, OpenMode.ForWrite)
btrID = bt.get_Item("*Model_Space")
btr = t.GetObject(btrID, OpenMode.ForWrite)
and
you have points dynamo or point3d