Traceback (most recent call last):
File "/home/ulrich/Sourcen/FreeCAD/Build_20140504/Mod/Draft/Draft.py", line 3312, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/ulrich/Sourcen/FreeCAD/Build_20140504/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/home/ulrich/Sourcen/FreeCAD/Build_20140504/bin/pivy/coin.py", line 3716, in __setattr__
field.setValue(value)
File "/home/ulrich/Sourcen/FreeCAD/Build_20140504/bin/pivy/coin.py", line 28228, in setValue
return _coin.SoMFString_setValue(*args)
<type 'exceptions.NotImplementedError'>: Wrong number of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
setValue(SoMFString *,SbString const &)
setValue(SoMFString *,char const *)
setValue(SoMFString *,SoMFString const *)
I tried manual and linked Draft dimensions, override only as well as override with $dim, I also tried 2d and 3d for both...all sees to work for me as expected.
Jim
draftdimswithoverride.png (124.5 KiB) Viewed 2884 times
Ulrich I just had a thought ....did you compile it with use external pivy? Yorik has said in the past that you need to use external pivy on some platforms ...including debian I think. I just thought since pivy/coin is in the erro messages that maybe that could be the problem?
ulrich1a wrote:I think, it is kind of a regression for coin below 4.0.
I had the same thought, so I tried my Kubuntu 12.04 machine, with its older libs...and I get the bug as well.
when typing in the override the following appears in the report view
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3312, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
I also get the following output when I first create a linked Draft dimension
Pick first point:
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3223, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
I didn't get an error with a manual Draft dimension, but then when I added a third one, FreeCAD crashed.
Hm could one of you guys do me a favor? Try adding in Draft.py, at line 3223, just above the "self.text.string = self.text3d.string = self.string" line, this:
this is the output for creating a linked Draft Dimension (not getting any error message on creation) this is for the top front edge (x-axis=0 to 10, Yaxis=0, z-axis=10) of a default Part box.
Pick first point:
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
13.4536 mm
10.0000 mm
10.0000 mm
10.0000 mm
10.0000 mm
10.0000 mm
this below is the error output that I get when entering "hello" in the override field of the above linked Draft Dimension.
h Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
he Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
hel Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
hell Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
hello Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
doing the same as above except this time using snap to create a manual Draft Dimension on the same edge. On creation I get no error message, just the following
Pick first point:
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
1.0000 mm
10.0000 mm
10.0000 mm
10.0000 mm
10.0000 mm
10.0000 mm
10.0000 mm
and on entering "hi" in the override I get the following
h Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
hi Traceback (most recent call last):
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/user/Downloads/cad/build_freecad_master_oce_master/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = self.string
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 3748, in __setattr__
field.setValue(value)
File "/usr/lib/pymodules/python2.7/pivy/coin.py", line 28182, in setValue
return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
Possible C/C++ prototypes are:
SoMFString::setValue(SbString const &)
SoMFString::setValue(char const *)
SoMFString::setValue(SoMFString const *)
The testing in this post and the last one above are with FreeCAD compile from master just now, with the one modification you asked me to add to Draft.py line3223.
traceback (most recent call last):
File "/home/ulrich/Sourcen/FreeCAD/Build_20140504/Mod/Draft/Draft.py", line 3313, in onChanged
self.updateData(vobj.Object,"Start")
File "/home/ulrich/Sourcen/FreeCAD/Build_20140504/Mod/Draft/Draft.py", line 3224, in updateData
self.text.string = self.text3d.string = str(self.string)
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)