CuraEngine command line profile


#1

Hi all,

I’m trying to generate the GCode directly from my 3D software. Everything works fine except I can’t find how to specify to CuraEngine which Moai profile to use. According to the number of layers it generates it takes a default 100um profile. I’m wondering if there is an option to choose the different files, 40, 60 or 80um.
.
I use this command line: CuraEngine.exe slice -j .\peopoly_moai.def.json -o output.gcode -l input.stl

Thanks for your help


#2

This is the complete command line for a print with the 60 µm profile:

F:\moai\Asura-2.21\CuraEngine.exe slice -v -j F:/moai/Asura-2.21/definitions/peopoly_moai.def.json -s version=4 -s name=moai-010 -s definition=peopoly_moai -s quality_type=high -s setting_version=5 -s type=quality_changes -s acceleration_enabled=False -s acceleration_infill=3000 -s acceleration_ironing=3000 -s acceleration_layer_0=3000 -s acceleration_prime_tower=3000 -s acceleration_print=3000 -s acceleration_print_layer_0=3000 -s acceleration_roofing=3000 -s acceleration_skirt_brim=3000 -s acceleration_support=3000 -s acceleration_support_bottom=3000 -s acceleration_support_infill=3000 -s acceleration_support_interface=3000 -s acceleration_support_roof=3000 -s acceleration_topbottom=3000 -s acceleration_travel=5000 -s acceleration_travel_layer_0=5000.0 -s acceleration_wall=3000 -s acceleration_wall_0=3000 -s acceleration_wall_x=3000 -s adaptive_layer_height_enabled=False -s adaptive_layer_height_threshold=200.0 -s adaptive_layer_height_variation=0.1 -s adaptive_layer_height_variation_step=0.01 -s adhesion_extruder_nr=0 -s adhesion_type=none -s alternate_carve_order=True -s alternate_extra_perimeter=False -s anti_overhang_mesh=False -s blackmagic=0 -s bottom_layers=2 -s bottom_skin_expand_distance=0.23450000000000001 -s bottom_skin_preshrink=0.46900000000000003 -s bottom_thickness=0.1 -s bridge_enable_more_layers=True -s bridge_fan_speed=100 -s bridge_fan_speed_2=0 -s bridge_fan_speed_3=0 -s bridge_settings_enabled=False -s bridge_skin_density=100 -s bridge_skin_density_2=75 -s bridge_skin_density_3=80 -s bridge_skin_material_flow=60 -s bridge_skin_material_flow_2=100 -s bridge_skin_material_flow_3=110 -s bridge_skin_speed=60.0 -s bridge_skin_speed_2=60.0 -s bridge_skin_speed_3=60.0 -s bridge_skin_support_threshold=50 -s bridge_wall_coast=100 -s bridge_wall_material_flow=50 -s bridge_wall_min_length=5 -s bridge_wall_speed=60.0 -s brim_line_count=120 -s brim_outside_only=True -s brim_width=8.0 -s carve_multiple_volumes=False -s center_object=False -s coasting_enable=False -s coasting_min_volume=0.8 -s coasting_speed=90 -s coasting_volume=0.064 -s command_line_settings=0 -s conical_overhang_angle=50 -s conical_overhang_enabled=False -s connect_infill_polygons=False -s connect_skin_polygons=False -s cool_fan_enabled=False -s cool_fan_full_at_height=0.1 -s cool_fan_full_layer=2 -s cool_fan_speed=0.0 -s cool_fan_speed_0=0 -s cool_fan_speed_max=0.0 -s cool_fan_speed_min=0 -s cool_lift_head=False -s cool_min_layer_time=0 -s cool_min_layer_time_fan_speed_max=10 -s cool_min_speed=0 -s cooling=0 -s cross_infill_pocket_size=0.09571428571428571 -s cutting_mesh=False -s date=20-10-2018 -s day=Sat -s default_material_bed_temperature=60 -s default_material_print_temperature=210 -s draft_shield_dist=10 -s draft_shield_enabled=False -s draft_shield_height=10 -s draft_shield_height_limitation=full -s dual=0 -s expand_skins_expand_distance=0.23450000000000001 -s experimental=0 -s extruder_nr=0 -s extruder_prime_pos_abs=False -s extruder_prime_pos_x=0 -s extruder_prime_pos_y=0 -s extruder_prime_pos_z=0 -s extruders_enabled_count=1 -s fill_outline_gaps=False -s fill_perimeter_gaps=everywhere -s filter_out_tiny_gaps=True -s flow_rate_extrusion_offset_factor=100 -s flow_rate_max_extrusion_offset=0 -s gantry_height=99999999999 -s gradual_infill_step_height=1.5 -s gradual_infill_steps=0 -s gradual_support_infill_step_height=1 -s gradual_support_infill_steps=0 -s infill=0 -s “infill_angles=[0, 90]” -s infill_before_walls=True -s infill_enable_travel_optimization=False -s infill_extruder_nr=-1 -s infill_line_distance=0.09571428571428571 -s infill_line_width=0.067 -s infill_mesh=False -s infill_mesh_order=0 -s infill_multiplier=1 -s infill_offset_x=0 -s infill_offset_y=0 -s infill_overlap=15 -s infill_overlap_mm=0.010050000000000002 -s infill_pattern=lines -s infill_sparse_density=70 -s infill_sparse_thickness=0.06 -s infill_support_angle=40 -s infill_support_enabled=False -s infill_wall_line_count=0 -s infill_wipe_dist=0 -s initial_extruder_nr=0 -s initial_layer_line_width_factor=100.0 -s ironing_enabled=False -s ironing_flow=10.0 -s ironing_inset=0.0335 -s ironing_line_spacing=0.1 -s ironing_only_highest_layer=False -s ironing_pattern=zigzag -s jerk_enabled=False -s jerk_infill=20 -s jerk_ironing=20 -s jerk_layer_0=20 -s jerk_prime_tower=20 -s jerk_print=20 -s jerk_print_layer_0=20 -s jerk_roofing=20 -s jerk_skirt_brim=20 -s jerk_support=20 -s jerk_support_bottom=20 -s jerk_support_infill=20 -s jerk_support_interface=20 -s jerk_support_roof=20 -s jerk_topbottom=20 -s jerk_travel=30 -s jerk_travel_layer_0=30.0 -s jerk_wall=20 -s jerk_wall_0=20 -s jerk_wall_x=20 -s layer_0_z_overlap=0.15 -s layer_height=0.06 -s layer_height_0=0.1 -s layer_start_x=0.0 -s layer_start_y=0.0 -s limit_support_retractions=True -s line_width=0.067 -s machine_acceleration=4000 -s machine_buildplate_type=glass -s machine_center_is_zero=True -s machine_depth=130 -s machine_disallowed_areas=[] -s “machine_end_gcode=M104 S0” -s machine_endstop_positive_direction_x=False -s machine_endstop_positive_direction_y=False -s machine_endstop_positive_direction_z=True -s machine_extruder_count=1 -s machine_extruder_end_pos_abs=False -s machine_extruder_end_pos_x=0 -s machine_extruder_end_pos_y=0 -s machine_extruder_start_pos_abs=False -s machine_extruder_start_pos_x=0 -s machine_extruder_start_pos_y=0 -s machine_feeder_wheel_diameter=10.0 -s machine_filament_park_distance=16 -s machine_firmware_retract=False -s “machine_gcode_flavor=RepRap (Marlin/Sprinter)” -s “machine_head_polygon=[[-1, 1], [-1, -1], [1, -1], [1, 1]]” -s “machine_head_with_fans_polygon=[[-20, 10], [-20, -10], [10, 10], [10, -10]]” -s machine_heat_zone_length=16 -s machine_heated_bed=False -s machine_height=180 -s machine_max_acceleration_e=10000 -s machine_max_acceleration_x=9000 -s machine_max_acceleration_y=9000 -s machine_max_acceleration_z=100 -s machine_max_feedrate_e=299792458000 -s machine_max_feedrate_x=500 -s machine_max_feedrate_y=500 -s machine_max_feedrate_z=5 -s machine_max_jerk_e=5.0 -s machine_max_jerk_xy=20.0 -s machine_max_jerk_z=0.4 -s machine_min_cool_heat_time_window=50.0 -s machine_minimum_feedrate=0.0 -s machine_name=Moai -s machine_nozzle_cool_down_speed=2.0 -s machine_nozzle_expansion_angle=45 -s machine_nozzle_head_distance=3 -s machine_nozzle_heat_up_speed=2.0 -s machine_nozzle_id=unknown -s machine_nozzle_offset_x=0 -s machine_nozzle_offset_y=0 -s machine_nozzle_size=0.067 -s machine_nozzle_temp_enabled=False -s machine_nozzle_tip_outer_diameter=1 -s machine_settings=0 -s machine_shape=rectangular -s machine_show_variants=False -s “machine_start_gcode=G28 ;Home” -s machine_steps_per_mm_e=1600 -s machine_steps_per_mm_x=50 -s machine_steps_per_mm_y=50 -s machine_steps_per_mm_z=50 -s machine_use_extruder_offset_to_offset_coords=True -s machine_width=130 -s magic_fuzzy_skin_enabled=False -s magic_fuzzy_skin_point_density=1.25 -s magic_fuzzy_skin_point_dist=0.8 -s magic_fuzzy_skin_thickness=0.3 -s magic_mesh_surface_mode=normal -s magic_spiralize=False -s material=0 -s material_adhesion_tendency=10 -s material_bed_temp_prepend=True -s material_bed_temp_wait=True -s material_bed_temperature=60 -s material_bed_temperature_layer_0=60 -s material_diameter=1.75 -s material_extrusion_cool_down_speed=0.7 -s material_final_print_temperature=195 -s material_flow=100 -s material_flow_dependent_temperature=False -s material_flow_layer_0=100 -s material_flow_temp_graph=[[3.5,200],[7.0,240]] -s material_initial_print_temperature=200 -s material_print_temp_prepend=True -s material_print_temp_wait=True -s material_print_temperature=210 -s material_print_temperature_layer_0=210 -s material_shrinkage_percentage=0 -s material_standby_temperature=150 -s material_surface_energy=100 -s max_feedrate_z_override=0 -s max_skin_angle_for_expansion=90 -s mesh_position_x=0 -s mesh_position_y=0 -s mesh_position_z=0 -s “mesh_rotation_matrix=[[1,0,0], [0,1,0], [0,0,1]]” -s meshfix=0 -s meshfix_extensive_stitching=False -s meshfix_keep_open_polygons=False -s meshfix_maximum_resolution=0.005 -s meshfix_maximum_travel_resolution=0.005 -s meshfix_union_all=True -s meshfix_union_all_remove_holes=False -s min_infill_area=0 -s min_skin_width_for_expansion=7.347880794884118e-18 -s minimum_polygon_circumference=0.1 -s mold_angle=40 -s mold_enabled=False -s mold_roof_height=0.5 -s mold_width=5 -s multiple_mesh_overlap=0.15 -s nozzle_disallowed_areas=[] -s ooze_shield_angle=60 -s ooze_shield_dist=2 -s ooze_shield_enabled=False -s optimize_wall_printing_order=False -s outer_inset_first=False -s platform_adhesion=0 -s prime_blob_enable=True -s prime_tower_circular=True -s prime_tower_enable=False -s prime_tower_flow=100 -s prime_tower_line_width=0.067 -s prime_tower_min_volume=6 -s prime_tower_position_x=128.108 -s prime_tower_position_y=108.108 -s prime_tower_size=20 -s prime_tower_wipe_enabled=True -s print_bed_temperature=60 -s print_sequence=all_at_once -s print_temperature=210 -s raft_acceleration=3000 -s raft_airgap=0.3 -s raft_base_acceleration=3000 -s raft_base_fan_speed=0 -s raft_base_jerk=20 -s raft_base_line_spacing=0.268 -s raft_base_line_width=0.134 -s raft_base_speed=45.0 -s raft_base_thickness=0.12 -s raft_fan_speed=0 -s raft_interface_acceleration=3000 -s raft_interface_fan_speed=0 -s raft_interface_jerk=20 -s raft_interface_line_spacing=0.334 -s raft_interface_line_width=0.134 -s raft_interface_speed=45.0 -s raft_interface_thickness=0.09 -s raft_jerk=20 -s raft_margin=15 -s raft_smoothing=5 -s raft_speed=60.0 -s raft_surface_acceleration=3000 -s raft_surface_fan_speed=0 -s raft_surface_jerk=20 -s raft_surface_layers=2 -s raft_surface_line_spacing=0.067 -s raft_surface_line_width=0.067 -s raft_surface_speed=60.0 -s raft_surface_thickness=0.06 -s relative_extrusion=False -s remove_empty_first_layers=True -s resolution=0 -s retract_at_layer_change=False -s retraction_amount=6.5 -s retraction_combing=off -s retraction_combing_max_distance=0 -s retraction_count_max=90 -s retraction_enable=False -s retraction_extra_prime_amount=0 -s retraction_extrusion_window=6.5 -s retraction_hop=1 -s retraction_hop_after_extruder_switch=True -s retraction_hop_enabled=False -s retraction_hop_only_when_collides=False -s "retraction_min_travel=0.8 " -s retraction_min_travel=0.134 -s retraction_prime_speed=25 -s retraction_retract_speed=25 -s retraction_speed=25 -s “roofing_angles=[ ]” -s roofing_extruder_nr=-1 -s roofing_layer_count=0 -s roofing_line_width=0.067 -s roofing_pattern=lines -s shell=0 -s skin_alternate_rotation=False -s “skin_angles=[ ]” -s skin_line_width=0.067 -s skin_no_small_gaps_heuristic=False -s skin_outline_count=0 -s skin_overlap=5 -s skin_overlap_mm=0.00335 -s skin_preshrink=0.46900000000000003 -s skirt_brim_line_width=0.067 -s skirt_brim_minimal_length=250 -s skirt_brim_speed=5 -s skirt_gap=3 -s skirt_line_count=1 -s slicing_tolerance=middle -s smooth_spiralized_contours=True -s spaghetti_flow=20 -s spaghetti_infill_enabled=False -s spaghetti_infill_extra_volume=0 -s spaghetti_infill_stepped=True -s spaghetti_inset=0.2 -s spaghetti_max_height=2.0 -s spaghetti_max_infill_angle=10 -s speed=0 -s speed_equalize_flow_enabled=False -s speed_equalize_flow_max=150 -s speed_infill=120 -s speed_ironing=80.0 -s speed_layer_0=5 -s speed_prime_tower=120 -s speed_print=120 -s speed_print_layer_0=5 -s speed_roofing=120 -s speed_slowdown_layers=3 -s speed_support=120 -s speed_support_bottom=80.0 -s speed_support_infill=120 -s speed_support_interface=80.0 -s speed_support_roof=80.0 -s speed_topbottom=120 -s speed_travel=120 -s speed_travel_layer_0=100 -s speed_wall=120 -s speed_wall_0=120 -s speed_wall_x=120 -s start_layers_at_same_position=False -s sub_div_rad_add=0.067 -s support=0 -s support_angle=50 -s support_bottom_density=100 -s support_bottom_distance=0.1 -s support_bottom_enable=False -s support_bottom_extruder_nr=0 -s support_bottom_height=1 -s support_bottom_line_distance=0.067 -s support_bottom_line_width=0.067 -s support_bottom_pattern=concentric -s support_bottom_stair_step_height=0.3 -s support_bottom_stair_step_width=5.0 -s support_conical_angle=30 -s support_conical_enabled=False -s support_conical_min_width=5.0 -s support_connect_zigzags=True -s support_enable=False -s support_extruder_nr=0 -s support_extruder_nr_layer_0=0 -s support_fan_enable=False -s support_infill_angle=0 -s support_infill_extruder_nr=0 -s support_infill_rate=15 -s support_infill_sparse_thickness=0.06 -s support_initial_layer_line_distance=0.44666666666666666 -s support_interface_density=100 -s support_interface_enable=False -s support_interface_extruder_nr=0 -s support_interface_height=1 -s support_interface_line_width=0.067 -s support_interface_pattern=concentric -s support_interface_skip_height=0.3 -s support_join_distance=2.0 -s support_line_distance=0.44666666666666666 -s support_line_width=0.067 -s support_mesh=False -s support_mesh_drop_down=True -s support_minimal_diameter=3.0 -s support_offset=0.2 -s support_pattern=zigzag -s support_roof_density=100 -s support_roof_enable=False -s support_roof_extruder_nr=0 -s support_roof_height=1 -s support_roof_line_distance=0.067 -s support_roof_line_width=0.067 -s support_roof_pattern=concentric -s support_skip_some_zags=False -s support_skip_zag_per_mm=20 -s support_supported_skin_fan_speed=100 -s support_top_distance=0.1 -s support_tower_diameter=3.0 -s support_tower_roof_angle=65 -s support_tree_angle=40 -s support_tree_branch_diameter=2 -s support_tree_branch_diameter_angle=5 -s support_tree_branch_distance=1 -s support_tree_collision_resolution=0.0335 -s support_tree_enable=False -s support_tree_wall_count=1 -s support_tree_wall_thickness=0.067 -s support_type=everywhere -s support_use_towers=True -s support_wall_count=0 -s support_xy_distance=0.7 -s support_xy_distance_overhang=0.0335 -s support_xy_overrides_z=z_overrides_xy -s support_z_distance=0.1 -s support_zag_skip_count=45 -s switch_extruder_prime_speed=20 -s switch_extruder_retraction_amount=16 -s switch_extruder_retraction_speed=20 -s switch_extruder_retraction_speeds=20 -s time=12:27:04 -s top_bottom_extruder_nr=-1 -s top_bottom_pattern=lines -s top_bottom_pattern_0=lines -s top_bottom_thickness=0.1 -s top_layers=2 -s top_skin_expand_distance=0.23450000000000001 -s top_skin_preshrink=0.46900000000000003 -s top_thickness=0.1 -s travel=0 -s travel_avoid_distance=0.625 -s travel_avoid_other_parts=True -s travel_avoid_supports=False -s travel_compensate_overlapping_walls_0_enabled=False -s travel_compensate_overlapping_walls_enabled=False -s travel_compensate_overlapping_walls_x_enabled=False -s travel_retract_before_outer_wall=False -s wall_0_extruder_nr=-1 -s wall_0_inset=0 -s wall_0_wipe_dist=0.022333333333333334 -s wall_extruder_nr=-1 -s wall_line_count=7 -s wall_line_width=0.067 -s wall_line_width_0=0.067 -s wall_line_width_x=0.067 -s wall_min_flow=0 -s wall_min_flow_retract=False -s wall_overhang_angle=90 -s wall_overhang_speed_factor=100 -s wall_thickness=0.5 -s wall_x_extruder_nr=-1 -s wireframe_bottom_delay=0 -s wireframe_drag_along=0.6 -s wireframe_enabled=False -s wireframe_fall_down=0.5 -s wireframe_flat_delay=0.1 -s wireframe_flow=100 -s wireframe_flow_connection=100 -s wireframe_flow_flat=100 -s wireframe_height=3 -s wireframe_nozzle_clearance=1 -s wireframe_printspeed=5 -s wireframe_printspeed_bottom=5 -s wireframe_printspeed_down=5 -s wireframe_printspeed_flat=5 -s wireframe_printspeed_up=5 -s wireframe_roof_drag_along=0.8 -s wireframe_roof_fall_down=2 -s wireframe_roof_inset=3 -s wireframe_roof_outer_delay=0.2 -s wireframe_straight_before_down=20 -s wireframe_strategy=compensate -s wireframe_top_delay=0 -s wireframe_top_jump=0.6 -s wireframe_up_half_speed=0.3 -s xy_offset=0 -s xy_offset_layer_0=0 -s z_seam_corner=z_seam_corner_none -s z_seam_relative=False -s z_seam_type=shortest -s z_seam_x=65.0 -s z_seam_y=390 -s zig_zaggify_infill=False -s zig_zaggify_support=False -o F:/moai/peomoai.gcode -e -l C:/Users/nbltsgndpfrdbrms/AppData/Local/Temp/Peopoly/2.2.1/{7C518D80-D53E-402F-B7B0-A460A6CBA4C7}/stl2gcode.stl

It looks like the profile is given to curaengine via command line arguments. You can see the command line that Asura is using with wmic.


#3

Hi Tobias,
Thank you for your answer. I didn’t know wmic, it can be very handy!
I managed to find a way. In Asura-2.x/profile there’s all the settings for each profile. I wrote a small python script that grab the different values, create the command line and call CuraEngine.
What’s great with your command line is I can double check I call CuraEngine with the same settings!