[Fixed][Netlist] Problems for comps in PCB but not SCH

Missing UUID

Fixes #578
This commit is contained in:
Salvador E. Tropea 2024-02-11 15:05:17 -03:00
parent 85785dba41
commit 0db1ded255
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.6.5] - Unreleased
### Fixed
- Netlist generation problems with components on the PCB but not in schematic.
(#578)
## [1.6.4] - 2024-02-02 ## [1.6.4] - 2024-02-02
### Added ### Added

View File

@ -274,6 +274,7 @@ def create_component_from_footprint(m, ref):
c.name = m.GetValue() c.name = m.GetValue()
c.sheet_path_h = c.lib = '' c.sheet_path_h = c.lib = ''
c.project = GS.sch_basename c.project = GS.sch_basename
c.id = m.m_Uuid.AsString() if hasattr(m, 'm_Uuid') else ''
# Basic fields # Basic fields
# Reference # Reference
f = SchematicField() f = SchematicField()