Stumbled across this forum post about Axis systems, i am wondering is it possible to add in the ability to define the App:Placement a Vector for the Z Axis and even one for the X Axis would be nice?.
I did try to use .Normal vector or .Rotation but it didn't work. I can Create a Axis on the point i would like, but not able to create the axis in the direction i would like. The Reason is i would like to define to Press Tooling Direction of a Press part in Global Axis System(Carline) i create a point and direction vector manually for the direction i require and it would be nice to create a CAD Axis. My code as modified from earlier part of the thread.
The Two pictures are of a part which i have been given of the left hand of the Car, and the Right hand is symmetrical, i have defined the press centre and the direction of the press, am able to mirror the part, but would like to create a Axis that can be used to view to check undercuts etc.
Did look at the Part Design Axis, but creates a not so pretty axis. The App:Placement one looks more the part and scales with the view better IMHO.
FYI, The WB is something i have been working on to create 3D CAD geometry to generate 3D Lines/Planes/Points/Axis/Mirror Part Plane/Rotate Part Axis etc. for quick generation for setting up Press Parts in 3D and to help the surfacing of the Tool Surface. Hope to release soon to the FreeCAD world as soon as i got everything working, nearly there for alpha release.
Code: Select all
plm=App.ActiveDocument.addObject("App::Placement","CSW")
plm.Placement.Base=App.Vector(rot_p_x,rot_p_y,rot_p_z)
plm.Normal=(vector_line[0],vector_line[1],vector_line[2])
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedKingdom (en_GB)
Before Creation of Axis After Creation of Axis