Scrap on the drawing

Updated Nov 30, 2026
CAD Drawings

Scrap on the drawing

Operators scrap source material from the Plex Control Panel and mark on the part's drawing where each defect is. Plex books the scrap; DataMagik keeps the points, so the heatmap shows where scrap happens.

On the Workcenter Control Panel, each component part's source card gets a Drawing | Scrap button. Scrap opens the part's scrap drawing (a 2D sheet or the 3D model), names the container DataMagik scraps from, and lets the operator tap each defect on the drawing. One press books the scrap in Plex.

What you need

  • The CAD Drawings license and DataMagik Shop Floor. Scrap is booked through Shop Floor's Write Outbox, and the workcenter must be set up and turned on in Shop Floor.
  • The Drawing panel bound to the Control Panel with an automation. See The Drawing panel in Plex.
  • A scrap drawing chosen for the part (below).
  • The location's Plex scrap reasons synced into Shop Floor. Defects are picked from the location's active Plex scrap reasons.
  • Plex data source 21052 (Scrap_Workcenter_Source_Container_Add) granted to the location's Plex API user, and checked on Shop Floor → Setup → Data → Data sources. The full list is under Plex data sources.
  • The operator's role holds CAD Drawings - Scrap. The CAD Drawings Scrap role has it, together with CAD Drawings - View. Without it, the card shows Drawing alone.

Choose each part's scrap drawing

Scrap is marked on one drawing per part, and the heatmap is drawn on that same drawing. A CAD admin (CAD Drawings - Admin) chooses it:

  1. Open Shop Floor → Drawings and scrap → Drawings library.
  2. Press Scrap drawing on the part's row.
  3. Under Mark scrap on, pick a file: a 3D model (points on its surface) or a 2D drawing. For a 2D drawing with several sheets, pick the Sheet.
  4. Check the Preview, then press Save scrap drawing.

The choice is kept by part number, so it follows the part to a new revision: the same file, else a file with the same name, else a file of the same format. When none of those is left, review and the heatmap say the scrap drawing is not current, and the admin picks it again. Clear removes the choice.

Scrap source material at the Control Panel

  1. On the source card of the component part, press Scrap. The panel opens on the part's scrap drawing.
  2. The line at the top names the container: Source scrap from its serial number, the quantity left, the part and the operation. It is the first active container on the card in Plex, so the operator does not pick one.
  3. Under Defect for the next tap, tap a defect, then tap the drawing where you see it. Each tap places one point. On a 2D drawing, drag a point to move it, or tap it to change its defect or remove it. On a 3D model, drag to turn the model, and use the point list to change or remove a point. Undo (or Ctrl+Z) takes back the last point.
  4. Set the quantity and, if you like, a note of what you saw.
  5. Press Scrap n pc from serial.

The scrap's type (its Plex scrap reason) is the defect with the most points; a tie goes to the defect picked first. Every point keeps its own defect for the heatmap.

The panel then says what happened: Plex scrapped n pc from serial with Plex's Scrap_Key, or Sending to Plex while it is on its way. If the workcenter needs approval for Plex writes, the panel shows Waiting for a supervisor, and nothing changes in Plex until a supervisor approves it in the Write Outbox. Scrap cannot be undone from the panel: a supervisor corrects scrap in Plex.

Pressing Scrap twice, or again after a lost connection, books the scrap only once.

What is written to Plex

  • Plex books the scrap through data source 21052, against the workcenter and the container's serial number, with the type as its scrap reason.
  • The defect points go in the Plex scrap note, after the operator's note, as a short marker starting with ~DM1. DataMagik reads it back to draw the heatmap, so scrap entered this way shows on the heatmap even when it is read from Plex.
  • Plex's scrap note holds 500 characters. When the points do not fit, the note carries only a reference to DataMagik's record, which keeps the points. The heatmap shows them either way. If even the operator's note and that reference do not fit, the scrap is refused and the operator shortens the note.
  • Plex records its API user on scrap that DataMagik writes, so DataMagik keeps the operator's name in its own record. Scrap review shows it.

Plex data sources

Grant these to the location's Plex API user, then check them on Shop Floor → Setup → Data → Data sources. Under What the grants unlock, the CAD scrap and heatmap area shows each feature as ready or what it still needs. A data source counts only once a check has shown it granted.

Data sourceUsed for
21052 Scrap_Workcenter_Source_Container_AddSource material scrap from the Control Panel.
11815 Scrap_Logs_GetScrap review, the heatmap and the scrap report. Without it, DataMagik reads scrap over the location's ODBC connection, which runs about 4 hours behind Plex.
16014 Daily_Production_Summary_Report_GetPieces made, for the scrap rate in the scrap report. Without it, DataMagik reads production over ODBC.
3414 Customer_Setting_Get2Reading Plex's scrap settings (below).

Plex's scrap settings

Some Plex customer settings change how Plex books scrap. On the Data sources page, Plex scrap settings for CAD scrap lists them, and a Shop Floor Admin can press Read from Plex to see this location's values and which ones need attention. They are changed only in Plex.

Scrap that went wrong: see CAD Drawings troubleshooting. To see where scrap lands: Scrap review and the scrap heatmap.

Was this page helpful?