Python containers and Origin

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Python containers and Origin

Post by DeepSOIC »

Hi!
I was lazy to add origin features to Part-o-magic containers... Now I'm writing a tool that converts container type, and when converting a Part into a Module, I made it that Module takes the origin features of Part. So suddenly, my Module has origin features.

Even though I assigned "Origin" property of Module to point to Origin feature, the origin looks and behaves like it is not in Module. It is shown in tree as belonging to document, and its visibility isn't affected by visibility of Module.
origin-in-Module.png
origin-in-Module.png (143.18 KiB) Viewed 678 times
origin-in-Module.FCStd
(4.95 KiB) Downloaded 38 times
Is there anything special I should do to make it work, or is it a bug?

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10490 (Git)
Build type: Release
Branch: master
Hash: 378f99f1b318202db3bc89b45d691a0376d07512
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Post Reply