BTW, I don't know if you already know or not. Since you are using 'BuildShape' property, you may want to know that you can reveal the parts by toggle the 'ShowParts' property of the assembly's view object. Set it to True to reveal the individual parts instead of the built shape. This 'ShowParts' does not affect the built shape, so no trigger to potentially expensive recomputation.
Unless I'm badly using it it doesn't looks like it is working. I drag and drop the sketch in the constraint. is this the supposed possibility?
I have new instance of the part, "tenon" but it stays at the origin (even with recomputation of course)
Code: Select all
Traceback (most recent call last):
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 356, in execute
self.getElementSubname())
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 909, in getElementInfo
(part[1],subname),transform=False)
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/utils.py", line 90, in getElementShape
transform=transform,noElementMap=noElementMap)
<type 'exceptions.TypeError'>: argument 1 must be App.DocumentObject, not None
Traceback (most recent call last):
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 356, in execute
self.getElementSubname())
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 909, in getElementInfo
(part[1],subname),transform=False)
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/utils.py", line 90, in getElementShape
transform=transform,noElementMap=noElementMap)
<type 'exceptions.TypeError'>: argument 1 must be App.DocumentObject, not None
Traceback (most recent call last):
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 356, in execute
self.getElementSubname())
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 909, in getElementInfo
(part[1],subname),transform=False)
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/utils.py", line 90, in getElementShape
transform=transform,noElementMap=noElementMap)
<type 'exceptions.TypeError'>: argument 1 must be App.DocumentObject, not None
Traceback (most recent call last):
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 356, in execute
self.getElementSubname())
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/assembly.py", line 909, in getElementInfo
(part[1],subname),transform=False)
File "/tmp/.mount_FreeCAcGtpKA/usr/lib/freecad-daily/Ext/freecad/asm3/utils.py", line 90, in getElementShape
transform=transform,noElementMap=noElementMap)
<type 'exceptions.TypeError'>: argument 1 must be App.DocumentObject, not None
I did manually increase the number of element count property.