Part_1_doc = Part_1.document()
Import_1 = model.addImport(Part_1_doc,file_path)
model.do()
-
+
myDelta = 1e-6
coordinates = model.getPointCoordinates(Part_1_doc,model.selection("VERTEX", "[box1_1/Shape_2][box1_1/Shape_3][box1_1/Shape_6]"))
print(" x: ", coordinates[0])
print(" y: ", coordinates[1])
- print(" z: ", coordinates[2])
+ print(" z: ", coordinates[2])
aRef = 200
aRes = coordinates[0]
aRes = coordinates[2]
assert (math.fabs(aRes - aRef) < myDelta), "The coordinate Z is wrong: expected = {0}, real = {1}".format(aRef, aRes)
-
+
if __name__ == '__main__':
test_point_coordinates()
-
+
#=========================================================================
# End of test
#=========================================================================