Topic: a couple of glitches of a new user

Hi Scorpio

first of all a huge thanks for your great SW, I used it to quickly create draft of a schematic instead of doing redlines for the drafter in pdf or powerpoint ;-)

I just hit a couple of issues with the dev version (QElectroTech V 0.90-DEV+1eed13c61b0a58100c957a06d79751d3)

1. when creating new parts in the library, not all folders show the prefix correctly, even all are added in the same way to qet_labels.xml
actually the first 3 categories work with all the sub categories, the further ones not at all...

2. I defined wire numbers in a slightly weird way, as "sheet number + 2 digit counter" now first of all the counter counts over the project, not over the sheet, but thats a minor thing, but worse if I connect wires via off sheet connectors, on reopening the project the wire numbers get mangled, i.e. a wire 0201 gets to 0801 on sheet 8 etc. this also if I set the project to production ready.

3. the TB generator plugin works fine on the industrial.qet example, but on my own project it fails with the following message:

11:04:21 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
11:04:41 INFO     Using the file: C:/Users/admin/Documents/QET Projects/GEX Pano Breda V2.qet [main.get_QET_fullpath:189]
11:04:41 INFO     Generate temp file C:\Users\admin\AppData\Local\Temp\tmpehd65p8v [qetproject.__init__:106]
11:04:41 INFO     Atribute 'folioSheetQuantity' doesn't exist. Assuming 0 [qetproject.__init__:126]
11:04:41 DEBUG    Getting cable number connected to terminal 2 at page Spannungsversorgung of element {4de6f85b-3f9c-454b-8fc5-f6937f7610e2} [qetproject._getCableNum:275]
11:04:41 DEBUG    Cols: 17      Col size: 60    Row size: 80    X position: 790 Y Position: 490 [qetproject._getXRefByCoord:369]
11:04:41 DEBUG    Getting cable number connected to terminal 30 at page 230/400VAC 50Hz of element {4362ab09-fdf9-4590-818e-6b5189d3bde3} [qetproject._getCableNum:275]
11:04:41 DEBUG    Cols: 17      Col size: 60    Row size: 80    X position: 380 Y Position: 500 [qetproject._getXRefByCoord:369]
11:04:41 DEBUG    Getting cable number connected to terminal 0 at page Erdungsschema of element {3a784123-2ade-4310-aba7-aec6f31f4a69} [qetproject._getCableNum:275]
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Scripts\qet_tb_generator.exe\__main__.py", line 7, in <module>
  File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\src\main.py", line 852, in main
    qet_project = QETProject(qet_file)  # allows working with a QET XML file.
                  ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\src\qetproject.py", line 138, in __init__
    self._set_used_terminals()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\src\qetproject.py", line 405, in _set_used_terminals
    cableNum = self._getCableNum(diagram, terminalId, element.attrib['uuid'])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\src\qetproject.py", line 279, in _getCableNum
    for cable in diagram.find('conductors').findall('conductor'):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'findall'

if you have time to have a look, please let me know if you need more info, will happily share more details with you.

Thanks and regards

Diego

Re: a couple of glitches of a new user

Hi and welcome Diego,
you could share the project?

Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."