<p>How can I center a model at the middle of the printing area of the printer when creating a g-code with CuraEngine. </p>

<p>Are there any parameters I can add to <code>ultimaker2.def.json</code> to achieve this?
Thanks.</p>

[{'answer_id': 4798, 'author': 'joshConway', 'author_id': 8827, 'author_profile': 'https://3dprinting.stackexchange.com/users/8827', 'pm_score': -1, 'selected': False, 'text': '<p>If this is over the commandline tool "CuraEngine", then you will have to read the sourcecode. According to the <a href="https://ultimaker.com/en/community/4337-doc-of-curaengine" rel="nofollow noreferrer">Author</a>, \'Nope. Only documentation there is in the code, readme and my head.\' (cringe!).</p>\n\n<p>If you\'re talking of the GUI program, then right click and click "Center". But this requires GUI usage. Not so nice if you want to automate using curaengine as your slicer.</p>\n'}, {'answer_id': 4817, 'author': 'thedp', 'author_id': 8762, 'author_profile': 'https://3dprinting.stackexchange.com/users/8762', 'pm_score': 2, 'selected': True, 'text': '<p>Found a solution.\nThis need to be applied under <code>"settings"</code></p>\n\n<pre><code>"command_line_settings": {\n    "label": "Command Line Settings",\n    "description": "Settings which are only used if CuraEngine isn\'t called from the Cura frontend.",\n    "type": "category",\n    "enabled": true,\n    "children": {\n        "center_object": {\n        "description": "Whether to center the object on the middle of the build platform (0,0), instead of using the coordinate system in which the object was saved.",\n            "type": "bool",\n            "label": "Center object",\n            "default_value": true,\n            "enabled": true\n        }\n    }\n}\n</code></pre>\n'}]
['https://3dprinting.stackexchange.com/questions/4792', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/8762/']