mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-13 16:40:05 +01:00
CLI and output restructure, SVG/DXF/STL integration
This commit is contained in:
parent
c49881c2b4
commit
42a3e2de55
7 changed files with 730 additions and 154 deletions
|
|
@ -168,11 +168,13 @@ const footprint = exports._footprint = (config, name, points, point, net_indexer
|
|||
// connecting other, non-net, non-anchor parameters
|
||||
parsed_params.param = {}
|
||||
for (const [param_name, param_value] of Object.entries(prep.extend(fp.params || {}, params))) {
|
||||
let value = a.sane(param_value, `${name}.nets.${param_name}`, 'string')()
|
||||
let value = param_value
|
||||
if (a.type(value)() == 'string' && value.startsWith('=') && point) {
|
||||
const indirect = value.substring(1)
|
||||
value = point.meta[indirect]
|
||||
value = a.sane(value, `${name}.params.${param} --> ${point.meta.name}.${indirect}`, 'string')()
|
||||
if (value === undefined) {
|
||||
throw new Error(`Indirection "${name}.params.${param}" --> "${point.meta.name}.${indirect}" to undefined value!`)
|
||||
}
|
||||
}
|
||||
parsed_params.param[param_name] = value
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue