Menu

Assign Model Problem

Help
Anonymous
2020-02-18
2020-02-20
  • Anonymous

    Anonymous - 2020-02-18

    Hi,
    I'm new in the use of this add-on.
    I'm facing problem then I try to assign model to a part from a PCB I made with eagle. It's the same if I try with the exemples .brd provided in the zip from soundforge.net.
    The board and all the not empty layers are well imported and visible, but the models are not found.

    So, all the parts are in the "Missing" folder and when I select one and click on "Assign Model", it opens a new tab called "modelPreview1" in which I only see the arrows.
    and I get that in the report view:

    Running the Python command 'cmdPartAssignModel' failed:
    Traceback (most recent call last):
      File "/home/jerome/.FreeCAD/Mod/PCB/PCBcommands.py", line 58, in Activated
        dial = dodajElement()
      File "/home/jerome/.FreeCAD/Mod/PCB/command/PCBassignModel.py", line 855, in __init__
        self.splitter.addWidget(self.mainWidgetRightSide())
      File "/home/jerome/.FreeCAD/Mod/PCB/command/PCBassignModel.py", line 1629, in mainWidgetRightSide
        wL = FreeCADGui.getMainWindow().findChild(QtGui.QMdiArea).subWindowList()
    
    Internal C++ object (PySide.QtGui.QMdiArea) already deleted.
    

    When I just click the "Assign Model" icon without selecting a part, it also opens a new file tab "modelPreview1", but I get what in the report view:

    Read database
    Error: Internal C++ object (PySide.QtGui.QMdiArea) already deleted.
    

    I'm running Freecad-Daily 0.19 under Ubuntu 16.04LTS.

    Thank you in advance,
    Jerome

     
  • Mariusz

    Mariusz - 2020-02-18

    Hi,
    I checked WB on FC 0.18 (lin/win) and 0.19 (win) and eveything is ok. I'm not able to install 0.19 on linux (at the oment) so I'm not able to reproduce/check this error. I know what causes this, but I don't know why :/.
    In the meantime, please check the file from the attachment (replace this file /PCB/command/PCBassignModel.py) - please give me feedback if this solution helped.

     

    Last edit: Mariusz 2020-02-18
  • Anonymous

    Anonymous - 2020-02-19

    Hi,
    Thank you fo your reply.

    It's better with your file. I'm no more getting the error messages and I can open the "Assign Model" window but the preview doesn't work, I have this message in the "report View"

    Read database
    Error: Model preview will be disabled.
    

    And it seems that the soft don't find the models cause I get this message during the loading of the capacitors.brd file ( examples provided) :

        E$29 (E2,5-5): error
        E$30 (E2-4): error
        E$31 (E2-5): error
        E$32 (E5-10,5): error
        E$33 (EB35D): error
        E$34 (C3216): error**************************
    Object not found: b'E$1'  [Package: C0201, Library: rcl]
    Object not found: b'E$2'  [Package: C0402, Library: rcl]
    Object not found: b'E$3'  [Package: C0402K, Library: rcl]
    Object not found: b'E$4'  [Package: C0504, Library: rcl]
    etc....
    

    What can I try to help debugging?
    Thank you

    Jerome

     
  • Mariusz

    Mariusz - 2020-02-20

    Hi,
    "Error: Model preview will be disabled." -this is my workaround for the first problem.

    WB contains predefined database (PCB/data/database.db), but you need to download 3D models (/ PCB/parts/) separately: https://github.com/marmni/FreeCAD-PCB-library

     
  • Anonymous

    Anonymous - 2020-02-20

    Hi,

    Ok, I understand.
    In the /PCB/parts/ I already added models I downloaded from your library... but I let the parent folder /FreeCAD-PCB-library/ and it seems that was why it didn't find models.

    Thank you very much for your help and for the job you do with this add-on.

    Jerome

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.