Revit’s Tolerance Error

Hello, I am trying to produce grids for my building by using a package in Dynamo. However, anytime I try, I get error named "Curve length is too small for Revit’s tolerance ….Parameter name Endpoints”. Could you tell me the reason, why I get this error all the time.