by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
← Commit history
0.2.83 (unreleased): simulate Monte Carlo and noise analysis, checked against ngspice
4 files changed
+75−21
CHANGELOG.md+6@@ -2,6 +2,12 @@ ## 0.2.83 (unreleased) +- **`altium_simulate`: Monte Carlo and noise.** `monteCarlo {runs, distribution?, seed?, tolerances?}` runs the analysis+ again with every part drawn within its tolerance, each run its own signal (`v(out)_m1` ...) with the drawn values in+ `step`; rerunning run 1's values in ngspice gives Altium's 9.27674 dB at 10 MHz exactly. `{type: "noise", source,+ output, reference?, sweep?, points?, start, stop}` answers the output and input-referred noise spectra (V/rtHz) and+ their totals (V); ngspice agrees within 1e-5 at all 61 points, totals identical. Altium takes a noise run's sweep from+ its AC settings, so both are written. - **`footprint_from_land_pattern` makes SOT-23-5s that fit** (EDA Bridge Standard #25, from kicad-lane). The layout is the standard's shared engine now (adom-eda-checks 0.19.1, standard 0.22.2, `landpattern`, which was ported from this bridge's footprint.rs), and this bridge writes it into the PcbLib. A shorter pad column spreads over the longer one's
bridge-rs/src/sim.rs+63−20@@ -77,9 +77,10 @@ pub fn parse_sdf(b: &[u8]) -> Result<Vec<Wave>, String> { Ok(out) } -/// The chart an analysis lands in.-fn chart_of(kind: &str) -> &'static str {- match kind { "op" => "Operating Point", "dc" => "DC Sweep", "tran" => "Transient Analysis", "ac" => "AC Analysis", _ => "" }+/// The charts an analysis lands in (a noise run fills two: the spectral densities and their integrals).+fn charts_of(kind: &str) -> &'static [&'static str] {+ match kind { "op" => &["Operating Point"], "dc" => &["DC Sweep"], "tran" => &["Transient Analysis"], "ac" => &["AC Analysis"],+ "noise" => &["Noise Spectral Density", "Integrated Noise"], _ => &[] } } /// A number as plain decimal text: Altium's config and SPICE both read it, where a suffix like M is milli to one and@@ -91,7 +92,7 @@ fn num_text(v: f64) -> String { /// The config keys for an analysis (the standard's `analysis`), or the refusal. Every other analysis is switched off, /// sweeps and Monte Carlo too, so the run is exactly the one asked for. Pure.-pub fn analysis_keys(a: &Value, probes: &[String], sweep: Option<&Value>, temps: Option<&Value>) -> Result<(String, Vec<(String, String)>, Vec<String>), Value> {+pub fn analysis_keys(a: &Value, probes: &[String], sweep: Option<&Value>, temps: Option<&Value>, mc: Option<&Value>) -> Result<(String, Vec<(String, String)>, Vec<String>), Value> { let bad = |m: &str| json!({"success": false, "errorCode": "bad_args", "error": m}); let t = a["type"].as_str().unwrap_or("").to_ascii_lowercase(); let n = |k: &str| a.get(k).and_then(|v| v.as_f64());@@ -129,10 +130,30 @@ pub fn analysis_keys(a: &Value, probes: &[String], sweep: Option<&Value>, temps: set("TRAN_StepTime", num_text(st)); set("TRAN_MaxStepTime", num_text(st)); set("TRAN_AlwaysSetDefaults", "False".into()); }+ "noise" => {+ let (Some(src), Some(out), Some(s), Some(e)) = (a["source"].as_str(), a["output"].as_str(), n("start"), n("stop")) else {+ return Err(bad("a noise analysis is {type: \"noise\", source: \"V1\" (the input source), output: \"OUT\" (a net), reference?: \"0\", sweep?: dec|oct|lin, points?, start, stop} (Hz)"));+ };+ let sweep = a["sweep"].as_str().unwrap_or("dec").to_ascii_uppercase();+ if !["DEC", "OCT", "LIN"].contains(&sweep.as_str()) { return Err(bad("sweep is dec, oct or lin")); }+ set("Noise_Analysis", "True".into());+ set("Noise_Enabled", "True".into());+ set("Noise_Source", src.into());+ set("Noise_Output", out.into());+ set("Noise_Reference", a["reference"].as_str().unwrap_or("0").into());+ set("Noise_Start", num_text(s)); set("Noise_Stop", num_text(e));+ set("Noise_TestPoints", num_text(n("points").unwrap_or(20.0).round().max(1.0)));+ set("Noise_SweepType", sweep.clone());+ // Altium's netlister takes the .NOISE sweep from the AC settings (it wrote the last AC run's DEC 5 1000+ // 10000000 for a 10 Hz start, 2026-10-29): the same sweep goes there, with the AC analysis itself off+ set("AC_StartFrequency", num_text(s)); set("AC_StopFrequency", num_text(e));+ set("AC_TestPoints", num_text(n("points").unwrap_or(20.0).round().max(1.0)));+ set("AC_SweepType", sweep);+ } "raw" => return Err(json!({"success": false, "errorCode": "not_supported", "error": "Altium simulates the schematic through its own netlister: raw SPICE text is not taken", "_hint": "Give the analysis in the structured form (op, dc, ac, tran)."})),- _ => return Err(bad("analysis.type is op, dc, ac, tran or raw")),+ _ => return Err(bad("analysis.type is op, dc, ac, tran, noise or raw")), } let mut sweep_drop: Vec<String> = Vec::new(); // a parameter sweep: the analysis again for each value of a part's value (C6) or a sheet parameter, every step its@@ -172,6 +193,25 @@ pub fn analysis_keys(a: &Value, probes: &[String], sweep: Option<&Value>, temps: set("TempSweep_Analysis", "True".into()); set("TempSweep_Start", num_text(st)); set("TempSweep_Stop", num_text(en)); set("TempSweep_Step", num_text(step)); }+ // Monte Carlo: the analysis again with every part's value drawn within its tolerance, each run its own signal+ if let Some(m) = mc.filter(|v| !v.is_null()) {+ let runs = m.get("runs").and_then(|v| v.as_f64()).unwrap_or(10.0).round();+ if !(1.0..=100.0).contains(&runs) { return Err(bad("monteCarlo.runs is 1 to 100")); }+ let dist = match m["distribution"].as_str().unwrap_or("gauss").to_ascii_lowercase().as_str() { "gauss" | "gaussian" | "normal" => "GAUSS", "uniform" => "UNIFORM", _ => return Err(bad("monteCarlo.distribution is gauss or uniform")) };+ set("MonteCarlo_Analysis", "True".into());+ set("MonteCarlo_NumberOfRuns", num_text(runs));+ set("MonteCarlo_DistributionType", dist.into());+ set("MonteCarlo_Seed", num_text(m.get("seed").and_then(|v| v.as_f64()).unwrap_or(-1.0).round()));+ // tolerances in percent; Altium keeps them as "10%" with a _UserValue twin+ for (k, key) in [("resistor", "Resistor"), ("capacitor", "Capacitor"), ("inductor", "Inductor"), ("transistor", "Transistor"), ("dcSource", "DCSource"), ("digital", "DigitalTp")] {+ if let Some(t) = m["tolerances"].get(k).and_then(|v| v.as_f64()) {+ if !(0.0..=100.0).contains(&t) { return Err(bad("a tolerance is a percent, 0 to 100")); }+ let v = format!("{}%", num_text(t));+ set(&format!("MonteCarlo_{key}Tolerance"), v.clone());+ set(&format!("MonteCarlo_{key}Tolerance_UserValue"), v);+ }+ }+ } // a run keeps only the signals its analysis lists (AC_Variable0=dB(v(out)) kept v(out) alone): the probes become // that list, in place of the sheet's own. An operating point keeps every node and current anyway let mut drop = sweep_drop;@@ -278,17 +318,17 @@ fn r6(v: f64) -> f64 { if v == 0.0 || !v.is_finite() { return v; } let m = 10f64 /// The standard's signals from the waves of one run: AC magnitude in dB with phase beside it, `points` a ceiling. pub fn signals(waves: &[Wave], kind: Option<&str>, probes: &[String], points: usize) -> (Vec<Value>, Vec<String>, Vec<String>) {- let want_chart = kind.map(chart_of).unwrap_or("");+ let want: &[&str] = kind.map(charts_of).unwrap_or(&[]); let swept = waves.iter().any(|w| !w.suffix.is_empty() && w.suffix != "_p1"); let base = |w: &Wave| -> String { if !swept && !w.suffix.is_empty() { w.name.trim_end_matches(&w.suffix).to_string() } else { w.name.clone() } };- let ws: Vec<&Wave> = waves.iter().filter(|w| !w.independent && (want_chart.is_empty() || w.chart == want_chart)).collect();+ let ws: Vec<&Wave> = waves.iter().filter(|w| !w.independent && (want.is_empty() || want.contains(&w.chart.as_str()))).collect(); let available: Vec<String> = ws.iter().map(|w| base(w)).collect(); // a probe names the signal without the run's suffix (v(out), not v(out)_p3): every step of a sweep answers it let is = |p: &String, w: &Wave| p.eq_ignore_ascii_case(&base(w)) || p.eq_ignore_ascii_case(w.name.trim_end_matches(&w.suffix)); let picked: Vec<&Wave> = if probes.is_empty() { ws.iter().take(100).cloned().collect() } else { ws.iter().filter(|w| probes.iter().any(|p| is(p, w))).cloned().collect() }; let missing: Vec<String> = probes.iter().filter(|p| !ws.iter().any(|w| is(p, w))).cloned().collect(); let out = picked.iter().map(|w| {- let x_unit = match w.chart.as_str() { "AC Analysis" => "Hz", "Transient Analysis" => "s", "DC Sweep" => "V", _ => "" };+ let x_unit = match w.chart.as_str() { "AC Analysis" | "Noise Spectral Density" => "Hz", "Transient Analysis" => "s", "DC Sweep" => "V", _ => "" }; let mut s = json!({"signal": base(w), "analysis": w.chart, "xUnit": x_unit}); if !w.hint.is_empty() && swept { s["step"] = json!(w.hint); } match &w.yi {@@ -303,9 +343,12 @@ pub fn signals(waves: &[Wave], kind: Option<&str>, probes: &[String], points: us } None => { let k = decimate(w.x.len(), &w.y, points);- s["x"] = json!(k.iter().map(|i| r6(w.x[*i])).collect::<Vec<_>>());+ // an integrated noise total is one number: its x is meaningless+ s["x"] = if w.chart == "Integrated Noise" { json!([]) } else { json!(k.iter().map(|i| r6(w.x[*i])).collect::<Vec<_>>()) }; s["y"] = json!(k.iter().map(|i| r6(w.y[*i])).collect::<Vec<_>>());- s["yUnit"] = json!(w.unit);+ // Altium leaves the noise units blank: a spectral density is V per root hertz, a total is V+ let unit = if !w.unit.is_empty() { w.unit.clone() } else if w.chart == "Noise Spectral Density" { "V/rtHz".into() } else if w.chart == "Integrated Noise" { "V".into() } else { String::new() };+ s["yUnit"] = json!(unit); } } s@@ -358,8 +401,8 @@ fn newest(dir: &Path, ext: &str, since: std::time::SystemTime) -> Option<PathBuf /// Write the analysis into the project's .simcfg with the project closed (an edit made while it is open is not read: /// Altium keeps its own copy), then reopen it. Refuses over unsaved documents of that project.-fn configure(sheet: &Path, prj: &Path, analysis: &Value, probes: &[String], sweep: Option<&Value>, temps: Option<&Value>) -> Result<String, Value> {- let (kind, kv, drop) = analysis_keys(analysis, probes, sweep, temps)?;+fn configure(sheet: &Path, prj: &Path, analysis: &Value, probes: &[String], sweep: Option<&Value>, temps: Option<&Value>, mc: Option<&Value>) -> Result<String, Value> {+ let (kind, kv, drop) = analysis_keys(analysis, probes, sweep, temps, mc)?; let dir = prj.parent().unwrap_or(Path::new(".")); let c = crate::project::close_all_documents(&json!({"under": dir.to_string_lossy()})); let mut kept = c["keptOpen"].as_array().cloned().unwrap_or_default();@@ -479,10 +522,10 @@ pub fn simulate(args: &Value) -> Value { if let Some(g) = crate::support::need_licensed() { return g; } let (sheet, prj) = match sheet_and_project(args) { Ok(x) => x, Err(e) => return e }; let probes: Vec<String> = args.get("probes").and_then(|v| v.as_array()).map(|a| a.iter().filter_map(probe_name).collect()).unwrap_or_default();- if args.get("analysis").map(|a| a.is_null()).unwrap_or(true) && (args.get("sweep").is_some() || args.get("temperatures").is_some()) {+ if args.get("analysis").map(|a| a.is_null()).unwrap_or(true) && (args.get("sweep").is_some() || args.get("temperatures").is_some() || args.get("monteCarlo").is_some()) { return json!({"success": false, "errorCode": "bad_args", "error": "a sweep runs an analysis again for each value: give the analysis too"}); }- let kind = match args.get("analysis").filter(|a| !a.is_null()) { Some(a) => match configure(&sheet, &prj, a, &probes, args.get("sweep"), args.get("temperatures")) { Ok(k) => Some(k), Err(e) => return e }, None => None };+ let kind = match args.get("analysis").filter(|a| !a.is_null()) { Some(a) => match configure(&sheet, &prj, a, &probes, args.get("sweep"), args.get("temperatures"), args.get("monteCarlo")) { Ok(k) => Some(k), Err(e) => return e }, None => None }; let (sdf, nsx, _) = match run(&sheet, &prj) { Ok(x) => x, Err(e) => return e }; let missing_models = nsx.as_ref().map(|n| not_simulated(&sheet, n)).unwrap_or_default(); let Some(sdf) = sdf else {@@ -587,14 +630,14 @@ mod tests { #[test] fn analyses_become_altiums_settings() {- let (k, kv, drop) = analysis_keys(&json!({"type": "ac", "sweep": "dec", "points": 20, "start": 10, "stop": 1e6}), &["v(out)".into(), "i(r4)".into()], None, None).unwrap();+ let (k, kv, drop) = analysis_keys(&json!({"type": "ac", "sweep": "dec", "points": 20, "start": 10, "stop": 1e6}), &["v(out)".into(), "i(r4)".into()], None, None, None).unwrap(); assert_eq!(k, "ac"); let cfg = set_config("OP_Analysis=True|AC_TestPoints=1000|AC_Variable0=dB(v(in))|AC_VariableEnabled0=True|AC_XVariable0=|Other=x", &kv, &drop); assert!(cfg.contains("AC_Variable0=v(out)") && cfg.contains("AC_Variable1=i(r4)") && !cfg.contains("v(in)"), "the probes replace the sheet's own signals: {cfg}"); assert!(cfg.contains("OP_Analysis=False") && cfg.contains("AC_Analysis=True") && cfg.contains("AC_TestPoints=20") && cfg.contains("AC_StopFrequency=1000000") && cfg.contains("Other=x"), "{cfg}"); assert!(cfg.contains("ParamSweep_Analysis=False"), "sweeps are switched off");- assert_eq!(analysis_keys(&json!({"type": "raw", "text": ".op"}), &[], None, None).unwrap_err()["errorCode"], "not_supported");- assert_eq!(analysis_keys(&json!({"type": "tran", "stop": 1}), &[], None, None).unwrap_err()["errorCode"], "bad_args");+ assert_eq!(analysis_keys(&json!({"type": "raw", "text": ".op"}), &[], None, None, None).unwrap_err()["errorCode"], "not_supported");+ assert_eq!(analysis_keys(&json!({"type": "tran", "stop": 1}), &[], None, None, None).unwrap_err()["errorCode"], "bad_args"); let xml = "<P><Settings></Settings>\n <Config>OP_Analysis=True</Config>\n <Documents><DocumentConfig><Name>a.SchDoc</Name><Config>AC_TestPoints=5</Config></DocumentConfig>\n<DocumentConfig><Name>b.SchDoc</Name><Config>AC_TestPoints=7</Config></DocumentConfig></Documents></P>"; let out = write_simcfg(xml, "b.SchDoc", None, &kv, &drop); assert!(out.contains("<Name>a.SchDoc</Name><Config>AC_TestPoints=5</Config>"), "another sheet's settings stay: {out}");@@ -644,14 +687,14 @@ mod tests { #[test] fn sweeps_become_altiums_param_and_temperature_keys() { let ac = json!({"type": "ac", "sweep": "dec", "points": 10, "start": 10, "stop": 1e8});- let (_, kv, drop) = analysis_keys(&ac, &[], Some(&json!({"parameter": "C6", "start": 1e-10, "stop": 1e-4, "step": 1, "scale": "dec"})), Some(&json!({"start": -10, "stop": 60, "step": 35}))).unwrap();+ let (_, kv, drop) = analysis_keys(&ac, &[], Some(&json!({"parameter": "C6", "start": 1e-10, "stop": 1e-4, "step": 1, "scale": "dec"})), Some(&json!({"start": -10, "stop": 60, "step": 35})), None).unwrap(); let cfg = set_config("ParamSweep_Analysis=False|ParamSweep_CustomParameter1=R9|ParamSweep_CustomEnabled1=True", &kv, &drop); assert!(cfg.contains("ParamSweep_CustomParameter0=C6") && cfg.contains("ParamSweep_CustomStart0_UserValue=0.0000000001") && !cfg.contains("R9"), "the sweep list holds ours alone: {cfg}"); assert!(cfg.contains("ParamSweep_Analysis=True") && cfg.contains("ParamSweep_Parameter1=C6") && cfg.contains("ParamSweep_Type1=DEC") && cfg.contains("ParamSweep_Start1=0.0000000001"), "{cfg}"); assert!(cfg.contains("TempSweep_Analysis=True") && cfg.contains("TempSweep_Stop=60") && cfg.contains("TempSweep_Step_UserValue=35"), "{cfg}"); assert!(cfg.contains("ParamSweep_Step1_UserValue=1") && !cfg.contains("ParamSweep_Parameter1_UserValue"), "numbers get their twin, words do not: {cfg}");- assert_eq!(analysis_keys(&ac, &[], Some(&json!({"parameter": "R1", "start": 1, "stop": 1000, "step": 1})), None).unwrap_err()["errorCode"], "bad_args", "1000 runs is too many");- let (_, plain, _) = analysis_keys(&ac, &[], None, None).unwrap();+ assert_eq!(analysis_keys(&ac, &[], Some(&json!({"parameter": "R1", "start": 1, "stop": 1000, "step": 1})), None, None).unwrap_err()["errorCode"], "bad_args", "1000 runs is too many");+ let (_, plain, _) = analysis_keys(&ac, &[], None, None, None).unwrap(); assert!(set_config("ParamSweep_Analysis=True", &plain, &[]).contains("ParamSweep_Analysis=False"), "no sweep switches an old one off"); } }
bridge-rs/src/verbs.rs+1−1@@ -433,7 +433,7 @@ fn describe() -> Value { "No rates are built in, so none can go stale: read the fab's current prices from its page, pass them as prices with the date read, and the reply prices the quantities from them. altium_fab_check compares the same numbers with a fab's limits. altium_jlcpcb_order makes the order files.", &["fab_check", "jlcpcb_order", "layer_stack", "board_report"], &["A rough estimate only: get a real quote before ordering."], json!({"quantities": [5, 30]})), verb_doc("simulate", "Run a circuit simulation of a schematic sheet in Altium's mixed-signal simulator (Advanced Sim) and return the signals as data: an operating point, a DC sweep, an AC sweep or a transient, as the standard's simulate gives them.",- json!({"schematic": "the .SchDoc to simulate (filePath works too); it must belong to a .PrjPcb beside it", "analysis": "{type: op} | {type: dc, source: V1, start, stop, step} | {type: ac, sweep: dec|oct|lin, points, start, stop} (Hz) | {type: tran, step, stop, start?} (s); omitted: the analyses the design carries. {type: raw} is refused (not_supported): Altium netlists the schematic itself", "probes": "[{net: OUT} | {current: R3} | {signal: \"v(out)\"}]; with an analysis they become the signals the run keeps; omitted: the signals the design's own simulation setup keeps (an operating point keeps every node and current)", "sweep": "{parameter: C6 (a part's value) or a sheet parameter, start, stop, step, scale?: lin|dec|oct}: the analysis again for each value (step is the increment for lin, points per decade or octave for dec and oct); 50 runs at most", "temperatures": "{start, stop, step} in degrees C: the analysis again at each temperature", "points": "int, default 200: a ceiling per signal (the first, last and extreme points are kept)"}),+ json!({"schematic": "the .SchDoc to simulate (filePath works too); it must belong to a .PrjPcb beside it", "analysis": "{type: op} | {type: dc, source: V1, start, stop, step} | {type: ac, sweep: dec|oct|lin, points, start, stop} (Hz) | {type: tran, step, stop, start?} (s) | {type: noise, source: V9 (the input source), output: OUT (a net), reference?: 0, sweep?, points?, start, stop} (Hz: onoise/inoise spectra in V/rtHz and their totals); omitted: the analyses the design carries. {type: raw} is refused (not_supported): Altium netlists the schematic itself", "probes": "[{net: OUT} | {current: R3} | {signal: \"v(out)\"}]; with an analysis they become the signals the run keeps; omitted: the signals the design's own simulation setup keeps (an operating point keeps every node and current)", "sweep": "{parameter: C6 (a part's value) or a sheet parameter, start, stop, step, scale?: lin|dec|oct}: the analysis again for each value (step is the increment for lin, points per decade or octave for dec and oct); 50 runs at most", "temperatures": "{start, stop, step} in degrees C: the analysis again at each temperature", "monteCarlo": "{runs (1-100), distribution?: gauss|uniform, seed?, tolerances?: {resistor, capacitor, inductor, transistor, dcSource, digital} in percent}: the analysis again with every part drawn within its tolerance; each run its own signal (v(out)_m1 ...) with the drawn values in step", "points": "int, default 200: a ceiling per signal (the first, last and extreme points are kept)"}), json!({"signals": "[{signal, analysis, x, y, xUnit, yUnit, phase? (AC, degrees unwrapped), step? (a sweep step, e.g. C6 = 1e-10)}]: in a sweep each run is its own signal (v(out)_p1, v(out)_p2 ...)", "notSimulated": "[parts the netlister left out: no simulation model]", "missing": "[probes the run did not have]", "available": "[every signal of the run]", "engine": "string", "results": "path of Altium's .sdf", "netlist": "path of the .nsx it ran"}), 900, "With analysis, the project's documents are closed, the analysis is written into its .simcfg (for this sheet and the project) and the project is reopened: Altium reads the file only on opening. Unsaved documents of that project refuse it (unsaved_changes). AC y is in dB with phase beside it. Every part needs a simulation model (Altium's generic R, C, L, sources and the models of its simulation libraries).", &["export_spice", "compile", "open_project"], &["A part with no simulation model stops the netlister: simulation_failed, and Altium's Messages name it.", "The run also opens Altium's results document; it is saved beside the project (Simulation folder) and closed."], json!({"schematic": "C:/proj/Filter.SchDoc", "analysis": {"type": "ac", "sweep": "dec", "points": 20, "start": 10, "stop": 1e6}, "probes": [{"net": "OUT"}]})),
skills/altium-schematic-edit/SKILL.md+5@@ -226,6 +226,11 @@ altium_export_spice '{"schematic":"C:/proj/Amp.SchDoc","outputPath":"C:/proj/Amp parameter; `scale: dec|oct` takes step as points per decade or octave), and `"temperatures": {"start": -10, "stop": 60, "step": 35}`. 50 runs at most. Checked against ngspice: the amplifier's gain at 10 MHz is 3.2735 dB at R4 = 300 and 12.8159 dB at 900, exactly.+- **Monte Carlo** (`"monteCarlo": {"runs": 20, "tolerances": {"resistor": 5, "capacitor": 10}, "seed": 7}`): every run+ draws each part within its tolerance and is its own signal (`v(out)_m1` ...), with the drawn values in `step`. Rerunning+ run 1's values in ngspice gives Altium's 9.27674 dB exactly.+- **Noise** (`{"type": "noise", "source": "V9", "output": "OUT", "start": 10, "stop": 1e7}`): `onoise_spectrum` and+ `inoise_spectrum` in V/rtHz and their totals in V; ngspice agrees within 1e-5 at every point. - A part with no simulation model is dropped by Altium's netlister without a word: none modelled refuses `no_model` (the parts named), some modelled runs and lists the rest in `notSimulated`. - `export_spice` returns the `.nsx` netlist (elements, analyses, includes). Altium writes it only as part of a run, so the