Cubid.bylengths vs void

Hi.
is there a way i can get cuboid.bylangths to make a void or something else do it in my revit project, without placing a revit family void?

maybe dynamo has something that I just don’t see

thanks for the help