View Issue Details

IDProjectCategoryView StatusLast Update
0003620DraftBugpublic2018-10-04 14:16
Reporteronekk Assigned ToKunda1  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformLinuxOSDevuan GNU/Linux 2.0 (ascii) 
Product Version0.17 
Summary0003620: Draft Workbench Emit an error when I click on the entity name
DescriptionWhen clicking on the Entity Name created by the "Draft Workbench" this error is emitted in the Report window

Traceback (most recent call last):
  File "/home/carlo/FreeCAD/squashfs-root/usr/lib/freecad/Mod/Draft/Draft.py", line 3849, in setEdit
    FreeCADGui.runCommand("Draft_Edit")
<class 'Base.FreeCADError'>: No such command 'Draft_Edit'


Steps To Reproduce1) Create a entity in Draft Workbench
2) click on the Entity Name
Additional InformationI have decompressed the AppImage to look at some code, but the error was even in the AppImage prior the decompression.

The AppImage was downloaded from the official GitHub Site


OS: Devuan GNU/Linux 2.0 (ascii)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
TagsNo tags attached.
FreeCAD Information

Activities

Kunda1

2018-10-02 11:57

administrator   ~0011883

@onekk can you reproduce on 0.18dev appimage ?

onekk

2018-10-02 16:07

reporter   ~0011885

Not at the moment, I'm on a wireless connection with a limited data plan, and sadly this month I've donloaded a lot so for now downloading the 0.18 AppImage only for testing will reduce greatly my limited GB left.

When my plan will restart (around the oct 20) i will try to load the 0.18 AppImage.

Kunda1

2018-10-02 20:54

administrator   ~0011889

@onekk What do you mean by:

2) click on the Entity Name

onekk

onekk

2018-10-04 09:04

reporter   ~0011914

Strangely enough, I can't reproduce the error.

Maybe it is related to the way I've created the entities, with a python script (I'm developing a workbench).

Now all the entities are "editable" and the error didn't appear.

I have used the Part.Shape costruct in my python and the entities (sorry, I'm used to call them entities in another program, the Shape, wire and so on in FreeCAD have a proper name?)

now I'm using:


ob = CBvar.FCdoc.addObject('Part::Feature',e_name)
ob.Shape=Part.Wire(edges)

Maybe it was related to this change in the creation code?

Sadly I've not archived the creation script holding the old code used to create the Part.Shape so I can't remember the exact code.

I've not changed anything in the FreeCAD code so probably is the Part.Shape creation process or the document creation process that was wrong and create a shape that is displayed correctly but have some problem somewhere.

If it is my fault sorry for the inconvenience, but the error line lead me to think that was a bug in FreeCAD.

Regards

Carlo D.

Kunda1

2018-10-04 11:50

administrator   ~0011917

@onekk what workbench are you creating ?

onekk

2018-10-04 13:22

reporter   ~0011919

Last edited: 2018-10-04 13:22

a little workbench to import CAD entities from a CamBam XML file and show them in FreecAD, maybe using also the "Machining Operation" (MOPs for short) to extract some useful information like target depth for the pocketing and profiling MOPs to re-create the 3D shape of the CB entities contained in the CB file.

It involve "decoding" the XML file and extract all the informations from it and translate each "CB entity" in a similar FreeCAD shape or Draft object and apply the relative manipulations.

I've written some plugin for CamBam and some of code I've developed could be re-used i think even in FreeCAD for some manipulations. (I have created a crenelated box plugin to make finger jointed boxes creating "CAD entities" and also MOPs for cutting them with my homemade CNC router)

I have some problem with the interface, but my question on the FreeCAD forum went almost unanswered.

Thanks and Regards

Carlo D.

Kunda1

2018-10-04 14:16

administrator   ~0011920

Cool. Don't relent. The forums have gotten very very busy lately. keep posting if you don't hear anything. People will appreciate your efforts.
I'll close this ticket for now. If you can reproduce feel free to re-open

Issue History

Date Modified Username Field Change
2018-10-01 09:34 onekk New Issue
2018-10-02 11:57 Kunda1 Note Added: 0011883
2018-10-02 11:58 Kunda1 Status new => feedback
2018-10-02 16:07 onekk Note Added: 0011885
2018-10-02 16:07 onekk Status feedback => new
2018-10-02 20:54 Kunda1 Note Added: 0011889
2018-10-04 09:04 onekk Note Added: 0011914
2018-10-04 11:50 Kunda1 Note Added: 0011917
2018-10-04 13:22 onekk Note Added: 0011919
2018-10-04 13:22 onekk Note Edited: 0011919
2018-10-04 14:16 Kunda1 Assigned To => Kunda1
2018-10-04 14:16 Kunda1 Status new => closed
2018-10-04 14:16 Kunda1 Resolution open => unable to reproduce
2018-10-04 14:16 Kunda1 Note Added: 0011920