brep_kernel/feature_pipeline/features/import3d.rs
1//! IMPORT3D — Import 3D Model (STEP). Ported from the retired `Import3dModelFeature`.
2//!
3//! Three headless sources, tried in order:
4//! 0. **`inputParams.nativeBrep`** — a native [`crate::snapshot_solids`] payload
5//! (`io/snapshot.rs`): the exact solids of an earlier import, already carrying their final
6//! IMPORT3D names. Tried FIRST and EXCLUSIVE — a feature carrying it must not also carry
7//! `stepText`/`igesText`/`xtText`/`xtBinary` (an error, not a precedence puzzle). The solids
8//! register VERBATIM under their stored names: re-deriving them would break every
9//! scene-metadata record and every constraint keyed to a face name. This is the lane a
10//! STEP-assembly part document rides on, and the reason the snapshot container is a DURABLE
11//! format, not a cache (§6 there, and the `io/snapshot.rs` module doc).
12//! 1. **`inputParams.stepText`** — the raw ISO-10303-21 document, baked in by the
13//! toolbar Import lane ([`crate`]'s host: `EngineState::import_step_feature`).
14//! Runs the exact Rust STEP importer
15//! ([`crate::import_step_with_appearance`] — the colour-carrying form).
16//! 2. **`persistentData.importCache`** (`kind == "step-brep"`) — SUPERSEDED by
17//! `nativeBrep`. The JS-era persisted EXACT BREP records of a previous import
18//! (`serializeBrepSolid` was the serde `BrepSolid` JSON, so records deserialize
19//! directly) — verbose and unversioned. NOTHING in the Rust tree writes it; the
20//! reader stays only so a JS-era saved model still opens. New payloads go in
21//! `nativeBrep`.
22//!
23//! Name fidelity (contract rule 2, byte-matching `Import3dModelFeature`):
24//! - Body names (`importedSolidNames`): a single body keeps the feature name;
25//! several get `{feature}_SOLID_{N}` with N 1-based, zero-padded to
26//! `max(2, digits(count))`.
27//! - Faces (`importedBodyFaceNames` / the single-body fallback): a MULTI-body
28//! import names EVERY face `{bodyName}_Face_{f}` positionally (shell/face
29//! order) so faces stay unique across bodies; a SINGLE body prepends the
30//! (unique) feature name — `{feature}_{stepName}`, or `{feature}_Face_{f}` where
31//! the STEP file left the face unnamed — so two separate imports never share a
32//! face name (the cross-solid name-uniqueness guard's collision class). Edge
33//! names re-derive from the face names, so the derived edges are namespaced too.
34//!
35//! COLOUR rides the same names. What a STEP file's presentation entities assign
36//! (`io/step_import/styles.rs`) is stamped here as a `{"color": "#RRGGBB"}`
37//! scene-metadata record on the FINAL body/face names — see `io/appearance.rs`
38//! for the convention, [`stamp_appearance`] for the write, and
39//! [`native_import_payload_with_appearance`] for the lane that seals it into a
40//! part payload. The stamp is a NON-overwriting merge, so a colour edited in the
41//! caller's info panel survives a history replay.
42//!
43//! ONE convention, ONE implementation: [`stamp_imported_names`] holds it, and
44//! every lane that names imported bodies goes through it — the live import lanes
45//! (via [`add_named_bodies`]) and the payload encoder [`native_import_payload`].
46//! Names are stamped ONCE, at import, and then frozen in the payload; a later
47//! change here does NOT retro-rename already-imported parts, which is the point
48//! (a constraint keyed to a face name survives reload).
49//!
50//! The failed-import base64 retry lane (`persistentData.failedImportFile`) is
51//! not yet migrated — it errors loudly rather than silently skipping.
52
53use crate::feature_pipeline::features::common;
54use crate::feature_pipeline::{
55 scene_metadata, AddedSolid, FeatureContext, FeatureRefusal, FeatureResult,
56};
57use crate::{
58 import_step_bodies, restore_solids, BodyAppearance, BrepSolid, ImportedColor,
59 StepBodyError, COLOR_METADATA_KEY,
60};
61
62pub fn execute(ctx: &FeatureContext) -> FeatureResult {
63 match build(ctx) {
64 Ok(result) => result,
65 Err(refusal) => ctx.fail(refusal),
66 }
67}
68
69/// `FeatureRefusal`, not `String`: the STEP lane's shell-closure gate refuses a
70/// body TYPED (`RefusalClass::UnsoundResult { defect: VectorArea }`,
71/// `io/step_import/builder/closure.rs`), and the class has to reach
72/// `FeatureResult::refusal` for the app to show it as more than text. Every
73/// other failure here is still text, and `?` accepts both.
74fn build(ctx: &FeatureContext) -> Result<FeatureResult, FeatureRefusal> {
75 let feature_name = if ctx.id.is_empty() {
76 "IMPORT3D".to_string()
77 } else {
78 ctx.id.clone()
79 };
80
81 // 0. Native payload — the exact solids of an earlier import, names frozen in.
82 // EXCLUSIVE by design (see the module doc): a document carrying both this
83 // and a text source is malformed, and answering it with a precedence rule
84 // would silently drop one of the two. Keyed on PRESENCE, not on a
85 // successful `as_str`, so a non-string `nativeBrep` errors here instead of
86 // falling through to a different source.
87 if let Some(native) = ctx.param("nativeBrep").filter(|value| !value.is_null()) {
88 if ["stepText", "igesText", "xtText", "xtBinary"].iter().any(|key| ctx.param(key).is_some()) {
89 return Err(
90 "import3d: `nativeBrep` is exclusive — a feature carrying it must not also carry `stepText`/`igesText`/`xtText`/`xtBinary`"
91 .into(),
92 );
93 }
94 let payload = native
95 .as_str()
96 .ok_or("import3d: param `nativeBrep` must be a base64 snapshot string")?;
97 return Ok(restore_native_bodies(ctx, payload)?);
98 }
99
100 // 1. Fresh STEP text (baked into `stepText` by the toolbar Import lane).
101 if let Some(step_text) = ctx.param("stepText").and_then(|v| v.as_str()) {
102 if step_text.contains("ISO-10303-21") {
103 let imported = import_step_bodies(step_text).map_err(|error| match error {
104 StepBodyError::Text(text) => {
105 FeatureRefusal::Text(format!("import3d: STEP import failed: {text}"))
106 }
107 StepBodyError::Refused(refusal) => FeatureRefusal::Typed(
108 refusal.with_message(|message| format!("import3d: STEP import refused: {message}")),
109 ),
110 })?;
111 if imported.solids.is_empty() {
112 return Err("import3d: STEP file contained no importable solids".into());
113 }
114 let mut result = add_named_bodies(ctx, imported.solids, &imported.appearances, &feature_name);
115 // The closure gate's approximations ride on the feature TYPED,
116 // re-keyed from the file index to the scene name the body was
117 // just given, so the app and the case runner can name the body.
118 for (index, mut approximation) in imported.approximations {
119 if let Some(added) = result.added.get(index) {
120 approximation.body = added.name.clone();
121 approximation.message =
122 format!("{}: {}", added.name, approximation.message);
123 }
124 result.approximations.push(approximation);
125 }
126 return Ok(result);
127 }
128 return Err(
129 "import3d: only STEP (ISO-10303-21) files are supported (STL/3MF mesh import was removed)"
130 .into(),
131 );
132 }
133
134 // 1b. Fresh IGES text (baked into `igesText` by the toolbar Import lane).
135 if let Some(iges_text) = ctx.param("igesText").and_then(|v| v.as_str()) {
136 // The file's colours (314 or the directory colour number) are stamped
137 // as the STEP branch stamps its styled colours.
138 // The feature has no channel for diagnostics: the lean build.
139 let report = crate::import_iges_bodies(iges_text)
140 .map_err(|error| format!("import3d: IGES import failed: {error}"))?;
141 if report.solids.is_empty() {
142 return Err("import3d: IGES file contained no importable solids".into());
143 }
144 return Ok(add_named_bodies(ctx, report.solids, &report.appearances, &feature_name));
145 }
146
147 // 1c. Fresh Parasolid text (baked into `xtText` by the toolbar Import lane).
148 if let Some(xt_text) = ctx.param("xtText").and_then(|v| v.as_str()) {
149 let report = crate::parasolid::import_parasolid_bodies(xt_text)
150 .map_err(|error| format!("import3d: Parasolid import failed: {error}"))?;
151 if report.solids.is_empty() {
152 return Err("import3d: Parasolid file contained no importable solids".into());
153 }
154 return Ok(add_named_bodies(ctx, report.solids, &report.appearances, &feature_name));
155 }
156
157 // 1d. Fresh binary Parasolid (`.x_b`, or the body partition a SolidWorks
158 // part embeds), as base64 in `xtBinary`.
159 if let Some(encoded) = ctx.param("xtBinary").filter(|value| !value.is_null()) {
160 let encoded = encoded.as_str().ok_or("import3d: param `xtBinary` must be a base64 string")?;
161 let bytes = crate::snapshot::base64_decode(encoded)
162 .map_err(|error| format!("import3d: param `xtBinary` is not base64: {}", error.trim_start_matches("snapshot: ")))?;
163 let report = crate::parasolid::import_parasolid_bytes_bodies(&bytes)
164 .map_err(|error| format!("import3d: Parasolid import failed: {error}"))?;
165 if report.solids.is_empty() {
166 return Err("import3d: Parasolid file contained no importable solids".into());
167 }
168 return Ok(add_named_bodies(ctx, report.solids, &report.appearances, &feature_name));
169 }
170
171 // 2. Persisted exact-BREP records from a previous import.
172 let cache = ctx.persistent.get("importCache");
173 if let Some(cache) = cache {
174 let kind = cache.get("kind").and_then(|v| v.as_str()).unwrap_or("");
175 if kind == "step-brep" {
176 let records = cache
177 .get("kernelSolidRecords")
178 .and_then(|v| v.as_array())
179 .ok_or("import3d: importCache has no kernelSolidRecords")?;
180 let mut solids = Vec::with_capacity(records.len());
181 for (index, record) in records.iter().enumerate() {
182 let solid: BrepSolid = serde_json::from_value(record.clone()).map_err(|error| {
183 format!("import3d: kernel record {index} failed to deserialize: {error}")
184 })?;
185 solids.push(solid);
186 }
187 if solids.is_empty() {
188 return Err("import3d: importCache is empty".into());
189 }
190 return Ok(add_named_bodies(ctx, solids, &[], &feature_name));
191 }
192 return Err(format!(
193 "import3d: unsupported importCache kind '{kind}' (only 'step-brep')"
194 )
195 .into());
196 }
197
198 // A failed-import retry payload without a cache is a not-yet-migrated lane.
199 if ctx.persistent.get("failedImportFile").is_some() {
200 return Err(
201 "import3d: the failed-import base64 retry lane is not yet migrated to the Rust pipeline"
202 .into(),
203 );
204 }
205
206 Err(
207 "import3d: no model data (no `nativeBrep`/`stepText` param and no `importCache`)".into(),
208 )
209}
210
211/// Restore a native payload and register its solids VERBATIM — the `nativeBrep`
212/// lane. Nothing about the names is re-derived: they were stamped once, when the
213/// geometry was first imported, and every scene-metadata record and every
214/// constraint attached to a face is keyed to exactly those strings. (This is
215/// `component::create_component`'s phase 2 for the same reason — see its module
216/// doc: "do not `fix` this by routing members through `register_added`".)
217///
218/// The payload's captured metadata records are merged back into the scene store
219/// UN-namespaced, exactly as they were captured: an IMPORT3D feature is not a
220/// component boundary, so there is no instance prefix to apply. The ACOMP lane
221/// namespaces on insert if this document is later used as a part.
222fn restore_native_bodies(ctx: &FeatureContext, payload: &str) -> Result<FeatureResult, String> {
223 let restored = restore_solids(payload)
224 .map_err(|error| format!("import3d: native payload did not decode: {error}"))?;
225 if restored.solids.is_empty() {
226 return Err("import3d: native payload contained no solids".into());
227 }
228 let mut result = FeatureResult::empty(ctx.id.clone(), ctx.feature_type.clone());
229 for solid in restored.solids {
230 let mut body = solid.solid;
231 // Exactly analytic faces in a foreign parametrisation take the
232 // kernel's canonical one (`analytic_surface/canonical.rs`).
233 if crate::canonical_carriers_enabled() {
234 let report = crate::canonicalise_carriers(&mut body);
235 if crate::profile::profile_enabled() && !report.rewritten.is_empty() {
236 profile_line!("import3d.canonical_carriers solid={} rewritten={:?}", solid.name, report.rewritten);
237 }
238 }
239 // A payload encoded straight from `snapshot_solids` (not through
240 // `native_import_payload`) can carry faces the import never named;
241 // those get the import's positional convention under the stored body
242 // name, deterministically from the frozen payload, so picks and CAM
243 // targets resolve and stay the same across save and reopen. Every
244 // name the payload does carry stays verbatim.
245 name_unnamed_native_faces(&mut body, &solid.name);
246 result.added.push(register_verbatim(body, &solid.name));
247 }
248 // Overwriting: the payload's records ARE the part's metadata. The pipeline's
249 // own `sourceFeatureId` seed runs after this feature returns and is
250 // NON-overwriting, so a face keeps the producing-feature id it was imported
251 // with rather than picking up this feature's.
252 for (name, record) in restored.metadata {
253 scene_metadata::merge_record(&name, &record, true);
254 }
255 Ok(result)
256}
257
258/// Name every face of a restored native body that arrived unnamed
259/// `{body}_Face_{f}` (shell / face order, the import's positional fallback),
260/// then re-derive the TOPOLOGY edge names (`{faceA}|{faceB}[n]`, or none) so
261/// the edges along them are named too; an edge the payload named otherwise is
262/// kept. A body whose faces and edges are all named is untouched. Returns
263/// whether anything was named.
264fn name_unnamed_native_faces(solid: &mut BrepSolid, body_name: &str) -> bool {
265 let unnamed = |name: &Option<String>| name.as_deref().is_none_or(|n| n.trim().is_empty());
266 let mut named_any = false;
267 let mut face_index = 0usize;
268 for shell in &mut solid.shells {
269 for face in &mut shell.faces {
270 if unnamed(&face.name) {
271 face.name = Some(format!("{body_name}_Face_{face_index}"));
272 named_any = true;
273 }
274 face_index += 1;
275 }
276 }
277 let edges_unnamed = solid.edges.iter().any(|e| !e.degenerate && unnamed(&e.name));
278 if named_any || edges_unnamed {
279 common::stamp_derived_edge_names(solid);
280 }
281 named_any || edges_unnamed
282}
283
284/// [`common::register_added`] WITHOUT its two name-deriving passes: collect the
285/// names the solid already carries and make it scene-resident.
286///
287/// The container groups are EMPTY, and that is the right answer rather than a
288/// stub: a group is the un-keyed alias a PROFILE-SWEPT feature publishes for its
289/// per-loop face families (`{cap_base}_START` standing for every
290/// `{cap_base}:L{id}_START` — see [`common::register_added_grouped`]). Imported
291/// geometry has no sketch loops behind it, so there is no family to alias; its
292/// names arrived stamped from outside and are already the final, unique ones.
293fn register_verbatim(solid: BrepSolid, name: &str) -> AddedSolid {
294 let face_names = common::collect_face_names(&solid);
295 let edge_names = common::collect_edge_names(&solid);
296 let handle = crate::register_solid_value(solid);
297 AddedSolid {
298 handle,
299 name: name.to_string(),
300 face_names,
301 edge_names,
302 face_groups: Vec::new(),
303 edge_groups: Vec::new(),
304 }
305}
306
307/// Stamp the established naming convention onto the imported bodies, register
308/// them, and stamp whatever COLOUR the file carried onto those same names.
309///
310/// `appearances` is parallel to `solids` (see [`crate::BodyAppearance`]); pass
311/// `&[]` from a lane whose format has no colour, which stamps nothing.
312fn add_named_bodies(
313 ctx: &FeatureContext,
314 mut solids: Vec<BrepSolid>,
315 appearances: &[BodyAppearance],
316 feature_name: &str,
317) -> FeatureResult {
318 let body_names = stamp_imported_names(&mut solids, feature_name);
319 let mut result = FeatureResult::empty(ctx.id.clone(), ctx.feature_type.clone());
320 for (index, (solid, body_name)) in solids.into_iter().zip(body_names).enumerate() {
321 // Colour is stamped AFTER `register_added`, which is where the names
322 // become final (it dedupes face names before deriving the edge names).
323 let added = common::register_added(solid, &body_name);
324 if let Some(appearance) = appearances.get(index) {
325 stamp_appearance(&added.name, &added.face_names, appearance);
326 }
327 result.added.push(added);
328 }
329 result
330}
331
332/// Write an imported body's colours into the scene-metadata store, keyed by the
333/// FINAL names — the one place the `{"color": "#RRGGBB"}` convention of
334/// `io/appearance.rs` is written.
335///
336/// `face_names` is `(face_id, name)` in shell/face order
337/// ([`common::collect_face_names`]), the same order `appearance.faces` is
338/// indexed by. A length disagreement means the two walks have drifted, so
339/// nothing per-face is stamped rather than colouring the wrong faces — the body
340/// colour, which is not positional, still lands.
341///
342/// Merged NON-overwriting: a history replay re-runs this feature, and a colour
343/// the user has since edited in the info panel must survive it.
344fn stamp_appearance(body_name: &str, face_names: &[(u64, String)], appearance: &BodyAppearance) {
345 if let Some(color) = appearance.body {
346 stamp_color(body_name, color);
347 }
348 if appearance.faces.is_empty() || appearance.faces.len() != face_names.len() {
349 return;
350 }
351 for ((_, face_name), color) in face_names.iter().zip(&appearance.faces) {
352 if let Some(color) = color {
353 stamp_color(face_name, *color);
354 }
355 }
356}
357
358fn stamp_color(name: &str, color: ImportedColor) {
359 let mut record = serde_json::Map::new();
360 record.insert(
361 COLOR_METADATA_KEY.to_string(),
362 serde_json::Value::String(color.to_hex()),
363 );
364 scene_metadata::merge_record(name, &record, false);
365}
366
367/// The naming half of [`add_named_bodies`]: stamp body + face names onto `solids`
368/// IN PLACE and return the body name chosen for each, WITHOUT registering
369/// anything. Shared by the live import lanes and the payload encoder
370/// [`native_import_payload`], so an imported part is named identically however it
371/// arrived.
372fn stamp_imported_names(solids: &mut [BrepSolid], feature_name: &str) -> Vec<String> {
373 let body_names = imported_solid_names(solids.len(), feature_name);
374 let multi_body = solids.len() > 1;
375 let mut chosen = Vec::with_capacity(solids.len());
376 for (index, solid) in solids.iter_mut().enumerate() {
377 let body_name = body_names
378 .get(index)
379 .cloned()
380 .unwrap_or_else(|| feature_name.to_string());
381 let mut face_index = 0usize;
382 for shell in &mut solid.shells {
383 for face in &mut shell.faces {
384 if multi_body {
385 // Multi-body: EVERY face namespaced under its body.
386 face.name = Some(format!("{body_name}_Face_{face_index}"));
387 } else {
388 // Single body: prepend the (unique) feature name so faces never
389 // collide with ANOTHER import's faces — two single-body imports
390 // both stamped bare `Face_N` before, which the cross-solid
391 // name-uniqueness guard flags. Keep any STEP-authored name as the
392 // stem, else the positional `Face_N` fallback. (`body_name` IS the
393 // feature name here — see `imported_solid_names`.) Edge names are
394 // re-derived from these face names downstream, so namespacing the
395 // faces namespaces the derived edges too.
396 let stem = face
397 .name
398 .as_deref()
399 .map(str::trim)
400 .filter(|name| !name.is_empty())
401 .map(str::to_string)
402 .unwrap_or_else(|| format!("Face_{face_index}"));
403 face.name = Some(format!("{body_name}_{stem}"));
404 }
405 face_index += 1;
406 }
407 }
408 chosen.push(body_name);
409 }
410 chosen
411}
412
413/// `importedSolidNames` port: 1 body keeps the feature name; several get a
414/// stable, zero-padded `{feature}_SOLID_0N` suffix.
415pub fn imported_solid_names(count: usize, feature_name: &str) -> Vec<String> {
416 if count == 0 {
417 return Vec::new();
418 }
419 if count == 1 {
420 return vec![feature_name.to_string()];
421 }
422 let digits = count.to_string().len().max(2);
423 (1..=count)
424 .map(|index| format!("{feature_name}_SOLID_{index:0width$}", width = digits))
425 .collect()
426}
427
428/// Encode `solids` as a native IMPORT3D payload: stamp the names this feature
429/// would stamp under `feature_name`, then seal them into the `io/snapshot`
430/// container. The result is exactly what the `nativeBrep` source above reads
431/// back, so a part is named identically however it arrived — imported live from
432/// a text source, or restored from a payload built here.
433///
434/// GENERIC, not STEP-specific: any producer of finished `BrepSolid`s that wants
435/// them to become an IMPORT3D part document uses this (the STEP-assembly import
436/// lane is the first caller).
437///
438/// The two passes after the stamping are `register_added`'s name-FINALIZING half
439/// (`common::ensure_unique_face_names` + `common::stamp_derived_edge_names`),
440/// applied HERE rather than at restore time: the `nativeBrep` lane registers
441/// verbatim, so whatever the payload carries IS the final name set. Without them
442/// a payload's edge names would be the importer's raw ones while the `stepText`
443/// lane's are the derived `{faceA}|{faceB}[n]` — the same geometry under two
444/// different name sets, which is exactly what this helper exists to prevent.
445///
446/// The payload is byte-deterministic for identical input (`snapshot_solids`), so
447/// two encodings of the same part collapse to ONE parts-library entry.
448pub fn native_import_payload(feature_name: &str, solids: &[BrepSolid]) -> Result<String, String> {
449 native_import_payload_with_appearance(feature_name, solids, &[])
450}
451
452/// [`native_import_payload`] carrying the import's COLOURS into the payload.
453///
454/// `appearances` is parallel to `solids` (see [`crate::BodyAppearance`]); `&[]`
455/// is the colourless case and makes this identical to [`native_import_payload`].
456///
457/// The colours are stamped into the AMBIENT scene-metadata store just before
458/// `snapshot_solids`, which is exactly how they get INTO the payload — the
459/// snapshot captures each stamped name's own record alongside the geometry. So a
460/// caller that runs this inside a `crate::IsolatedSceneMetadata` bracket (the
461/// STEP-assembly part-document lane does, and must) gets the colours sealed into
462/// the part and discarded from the live document, which is the whole point of
463/// that bracket: the part carries its own metadata, the open document is not
464/// touched.
465pub fn native_import_payload_with_appearance(
466 feature_name: &str,
467 solids: &[BrepSolid],
468 appearances: &[BodyAppearance],
469) -> Result<String, String> {
470 if solids.is_empty() {
471 return Err("import3d: native payload needs at least one solid".into());
472 }
473 let mut bodies = solids.to_vec();
474 let body_names = stamp_imported_names(&mut bodies, feature_name);
475 for solid in &mut bodies {
476 common::ensure_unique_face_names(solid);
477 common::stamp_derived_edge_names(solid);
478 }
479 // Names are FINAL from here, so this is where colour can be keyed to them.
480 for (index, (solid, body_name)) in bodies.iter().zip(&body_names).enumerate() {
481 if let Some(appearance) = appearances.get(index) {
482 stamp_appearance(body_name, &common::collect_face_names(solid), appearance);
483 }
484 }
485 let named: Vec<(&str, &BrepSolid)> = body_names
486 .iter()
487 .map(String::as_str)
488 .zip(bodies.iter())
489 .collect();
490 crate::snapshot_solids(&named)
491}
492
493
494/// Context-bar applicability ([`crate::feature_pipeline::context_offer`]):
495/// never offered from a selection (no reference inputs).
496pub fn context_applicable(_probe: &crate::feature_pipeline::SelectionProbe) -> bool {
497 false
498}
499
500///
501/// Only `id` is exposed: an IMPORT3D feature is created by an import lane that
502/// bakes its payload in — the toolbar Import lane
503/// ([`EngineState::import_step_feature`] / `import_iges_feature` /
504/// `import_xt_feature`) writes the raw document text into
505/// `inputParams.stepText` / `igesText` / `xtText` (a binary Parasolid file,
506/// base64, into `xtBinary`), and the native lane
507/// ([`native_import_payload`], the STEP-assembly part document) writes
508/// `inputParams.nativeBrep`. None of them is form-editable, so none is
509/// exposed. (The former `fileToImport` "file" param was a JS-era vestige: nothing
510/// produced or consumed it and no form builder rendered it.)
511pub fn schema() -> serde_json::Value {
512 serde_json::json!({
513 "type": "IMPORT3D",
514 "shortName": "IMPORT3D",
515 "longName": "Import 3D Model",
516 "ribbonPath": "Home/Modeling/Import 3D Model",
517 "commandSize": "Compact",
518 "displayBuilder": false,
519 "inputParamsSchema": {
520 "id": {
521 "type": "string",
522 "default_value": null,
523 "hint": "unique identifier for the import feature"
524 }
525 }
526})
527}
528