This line creates an IfcAxis2Placement3D with a Location, an Axis, but no RefDirection:
axis_placement = file.createIfcAxis2Placement3D(location, direction, None)
This is generating validation errors for me:
On instance:
#1818=IfcAxis2Placement3D(#1816,#1817,$)
Rule IfcAxis2Placement3D.AxisAndRefDirProvision:
(not exists(axis) ^ exists(refdirection))
Violated by:
not (True ^ False)
+ where True = exists(#1817=IfcDirection((-0.707106781186547,0.,0.707106781186547)))
+ and False = exists(None)
Which I think means that you are not supposed to have an Axis without a RefDirection.
This line creates an IfcAxis2Placement3D with a Location, an Axis, but no RefDirection:
This is generating validation errors for me:
Which I think means that you are not supposed to have an Axis without a RefDirection.