Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FC 0.17 issue on creating a simple GDT #3

Open
easyw opened this issue Sep 11, 2017 · 3 comments
Open

FC 0.17 issue on creating a simple GDT #3

easyw opened this issue Sep 11, 2017 · 3 comments

Comments

@easyw
Copy link

easyw commented Sep 11, 2017

Hi, I'm testing GDT in FC 0.17
OS: Windows 10 64-bit Version: 0.17.11967 (Git)
I followed the README instruction and in FC 0.17 Adding a simple Datum Feature I get the following error:

Traceback (most recent call last):
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\GDT\GDT.py", line 1171, in updateData
fp.circumferenceBool = True if (True in [l.Closed for l in fp.faces[0][0].Shape.getElement(fp.faces[0][1]).Edges] and len(fp.faces[0][0].Shape.getElement(fp.faces[0][1]).Vertexes) == 2) else False
<type 'exceptions.TypeError'>: must be string, not tuple
Traceback (most recent call last):
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\GDT\GDT.py", line 1451, in createObject
obj = makeDatumFeature(self.textName, self.ContainerOfData)
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\GDT\GDT.py", line 834, in makeDatumFeature
makeAnnotation(ContainerOfData.faces, ContainerOfData.annotationPlane, DF=obj, GT=[])
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\GDT\GDT.py", line 1243, in makeAnnotation
obj.p1 = (obj.faces[0][0].Shape.getElement(obj.faces[0][1]).CenterOfMass).projectToPlane(obj.AP.PointWithOffset, obj.AP.Direction)
TypeError: must be string, not tuple

This happens also if I create a GDT in FC0.16, save the file and then open it in FC0.17

Object can only be in a single Group
Traceback (most recent call last):
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\GDT\GDT.py", line 1171, in updateData
fp.circumferenceBool = True if (True in [l.Closed for l in fp.faces[0][0].Shape.getElement(fp.faces[0][1]).Edges] and len(fp.faces[0][0].Shape.getElement(fp.faces[0][1]).Vertexes) == 2) else False
<type 'exceptions.TypeError'>: must be string, not tuple

Maurice

@easyw easyw changed the title FC 0.17 issue on creating a simple FC 0.17 issue on creating a simple GDT Sep 12, 2017
@Nemesis81
Copy link

Same with latest 0.17 version (released)

@luzpaz
Copy link
Contributor

luzpaz commented Jul 11, 2018

@juanvanyo ping

@aversario
Copy link

@juanvanyo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants