Arch precast concrete tools

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Arch precast concrete tools

Post by chakkree »

The initial position of ArchPrecast Pillar is not center like ArchStructure(green). When Clone of Pillar and rotate , little adjust of tranlate length of object.
TestPosition.png
TestPosition.png (437.54 KiB) Viewed 1429 times
TestPosition2.png
TestPosition2.png (248.43 KiB) Viewed 1429 times
ArchPrecastPillar.FCStd
(22.55 KiB) Downloaded 79 times
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9184 (Git)
Build type: Release
Branch: master
Hash: 14e32213747928d3a01ab95cf09f611fa383981e
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Arch precast concrete tools

Post by yorik »

chakkree wrote:The initial position of ArchPrecast Pillar is not center like ArchStructure(green)
Indeed you're right. We need to fix that...
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Arch precast concrete tools

Post by yorik »

User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Arch precast concrete tools

Post by chakkree »

OK. Found solution! Pillar will on (0.0,0.0,0.0) and can rotate on itself.
@Yorik, I think should not to insert point vector in class _CommandStructure in file ArchStructure.


Insert this line to ArchPrecat.py in class _PrecastPillar about line 347 before self.processSubShapes.

Code: Select all

shape.translate(Vector(-length/2.0,-width/2.0,0))
Post Reply