Code Monkey home page Code Monkey logo

Comments (6)

kbwbe avatar kbwbe commented on August 17, 2024

Fixed on devel branch. 2019-02-15

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

This is not completely fixed:

  • convert a part to an a2plus part
  • undo
  • redo

result
Traceback (most recent call last): File "C:\Users\USti\AppData\Roaming\FreeCAD\Mod\A2plus\a2p_observers.py", line 33, in slotRedoDocument a2p_importpart.a2p_repairTreeView() File "C:\Users\USti\AppData\Roaming\FreeCAD\Mod\A2plus\a2p_importpart.py", line 1100, in a2p_repairTreeView parent.Label = parent.Label # trigger an update... <class 'AttributeError'>: 'NoneType' object has no attribute 'Label'

from a2plus.

kbwbe avatar kbwbe commented on August 17, 2024

I only got this error when the converted part was already constrained. With the undo function these existing constraints loose their object reference.
I added a function to remove constraints related to non existing objects. For me it works now without error message.
Fixed within devel branch 2019-02-16

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

This is still not completely fixed or new issues have been introduced:

  • select the part "Pumpen-Kupplung_001"
  • convert to A2plus part
  • undo
  • redo

result: info dialog stating "b_Pumpen_Kupplung_001_"

I see there 3 issues:

  1. the first conversion to the a2plus part changes the name of the part (which makes sense) but the existing constraint is detached from the part and placed elsewhere to the model tree. Can't the constraint be kept?
  2. the redo tries to restore the part with the original name, but since the conversion renamed the part, this fails
  3. the info dialog outputs a part name that never existed.

from a2plus.

kbwbe avatar kbwbe commented on August 17, 2024

The test file does only contain A2p parts. What should be converted ?

from a2plus.

donovaly avatar donovaly commented on August 17, 2024

The test file does only contain A2p parts.

Not here on my PC. Both parts are simple imported parts.

What should be converted ?

As I wrote the part "Pumpen-Kupplung_001".

from a2plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.