Changes between Version 58 and Version 59 of PythonOcc
- Timestamp:
- Nov 15, 2015, 1:18:24 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonOcc
v58 v59 602 602 #!python 603 603 # Vključimo knjižnico za izvoz STEP formata 604 from OCC. Utils.DataExchange.STEP import STEPExporter604 from OCC.STEPControl import * 605 605 606 606 from OCC.BRepPrimAPI import * … … 610 610 611 611 # Obliko my_box_shape izvozimo v STEP format 612 my_step_exporter = STEPExporter("result_export_single.stp") # Določitev imena file.a 613 my_step_exporter.add_shape(my_box_shape)614 my_step_exporter.write_file()612 step_writer = STEPControl_Writer() 613 step_writer.Transfer(my_box_shape, STEPControl_AsIs) 614 step_writer.Write("result_export_single.stp") 615 615 616 616 }}} … … 620 620 #!python 621 621 # Vključimo knjižnico za izvoz STEP formata 622 from OCC. Utils.DataExchange.STEP import STEPExporter622 from OCC.STEPControl import * 623 623 624 624 from OCC.BRepPrimAPI import * … … 629 629 630 630 # Obliki my_box_shape in my_sphere_shape izvozimo v STEP format 631 my_step_exporter = STEPExporter("result_export_multi.stp") # Določitev imena file.a 632 my_step_exporter.add_shape(my_box_shape)633 my_step_exporter.add_shape(my_sphere_shape) #funkcijo ADD uporabimo za dodajanje oblik v STEP format 634 my_step_exporter.write_file()631 step_writer = STEPControl_Writer() 632 step_writer.Transfer(my_box_shape, STEPControl_AsIs) 633 step_writer.Transfer(my_sphere_shape, STEPControl_AsIs) 634 step_writer.Write("result_export_multi.stp") 635 635 }}} 636 636