<p>I have a model that contains a cavity, into which I want to insert a piece of metal, so I can use a magnet to stick to the print. How can I introduce a pause into the G-code without manipulating it manually in Ultimaker Cura?</p>

[{'answer_id': 10588, 'author': 'Trish', 'author_id': 8884, 'author_profile': 'https://3dprinting.stackexchange.com/users/8884', 'pm_score': 4, 'selected': True, 'text': '<p>Ultimaker Cura contains "Extensions"; in version 4.1.0, the process is as follows:</p>\n\n<ul>\n<li>Extensions -> Post Processing -> Modify G-code</li>\n<li>Add a Script -> Pause at height\n\n<ul>\n<li>Choose the one that matches your firmware!</li>\n</ul></li>\n<li>Choose the <code>Pause height</code> to match the height the insertion should take place. Usually, this is to be the layer just before the roof is to be printed to keep the inserted objects from protruding from their cavities.</li>\n<li>Choose a park position well outside of the print. X 10 Y 10 is usually a good position for this.</li>\n<li>Add a little retraction if you want.</li>\n</ul>\n\n<p>In printing, you have to wait till the cavity is formed, insert the item quickly and press the control button to resume. The shorter the pause, the better the next layer will hold to the already printed.</p>\n\n<p>Also, keep in mind to make the cavity a little larger than the insert, both in XY and Z, to compensate for the plastic shrinking a little and to allow the nozzle to pass well over the inserted item.</p>\n'}, {'answer_id': 11429, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 2, 'selected': False, 'text': '<p><a href="/a/10588/">This answer</a> already explains how you insert the G-codes to enable a pause into your model. But, <strong>this will only work if the printer supports the G-codes that are inserted by Cura</strong>. E.g. <a href="/q/11236">this question</a> shows that this does not always work!</p>\n\n<p>To pause the printer you would need to resort into other methods, e.g. a manually inserted <a href="https://reprap.org/wiki/G-code#G4:_Dwell" rel="nofollow noreferrer"><code>G4</code> (Dwell)</a> would be a viable solution as shown in  <a href="/a/11242">this answer</a>.</p>\n'}]
['https://3dprinting.stackexchange.com/questions/10587', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/8884/']