First of all thank you for your great work! I'm newbie to 3D modelling and FreeCAD is my first experience with this kind of tools. Your set of Work Feature macros helped me to understand approach to solving some issues especially on time of object assembly: what and where goes
Unfortunately not everything is clear and / or working, so I decided to post my question here.
Work Feature version: 2015_12_16
OS: Ubuntu 14.04.3 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.6431 (Git)
Build type: None
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
My problem: Please see attached file ( ). There are two objects: Item4 and Item5. My goal is to move Item4 to desired position in XY plane:
1. Combo View: I select Item4 in Model tab, so the whole object turns green.
2. Work Features: Modif. vertical tab.
3. Work Features: Translate horizontal tab.
4. Translate: I click "Select Object(s)" button. As a result the string over button turns into "1 Object(s) selected".
5. Translate: Start tab, Starting Point: Origin.
6. Translate: End tab, Ending Point: To define: X: 50.0, Y: 150.0
7. Translate: I press Apply button.
8. Nothing happens...
Some results from Report view window in . By the way, it didn't help me to figure out what I'm making wrong.
Anyway I like very much the concept of "Translate" function. If I understand correctly, the following workflow should apply:
1. Select object(s) which is (are) to be translated.
2. Select point of the object which will be used to be translated. There are few predefined points: Origin, Base Obj., Center Obj.(s). There are also options to choose points out of predefined list: "To select" and "To define". If one would like to select one of the points in main view, "To select" option should be chosen. If one would like to define numerically starting point coordinates, "To define" option should be chosen.
3. Select end point of translation. Again there are few predefined points: Origin, Base Obj., Center Obj.(s). There are also options to choose points out of predefined list: "To select" and "To define". If one would like to select one of the points in main view, "To select" option should be chosen. If one would like to define numerically starting point coordinates, "To define" option should be chosen.
4. One should press Apply button in order to apply translation based on chosen points in point 2 and 3 or press Reset button in order to cancel selection.
This approach to translation is much more general to other translation functions available within FreeCAD, such as:
a. Combo View -> selected item -> Data tab -> Base: Placement, where only point of origin might be shifted.
b. WB: Draft -> Move, where to be successful at first "working plane" should be selected.
So my general question is: why nothing happens after following above list of events?
My second general question is about "Rotate" function. I can't understand a correct workflow for this function. My understanding:
1. Select object(s) which is (are) to be rotated.
2. Select axis of rotation. Another words: the selected line will be used to rotate the object(s) selected in point 1 around of it.
3. Select center point of rotation. Here I feel confused: should I select not only axis (point 2) but also point of rotation? Should it be alternative choice: axis of rotation or point of rotation, but not conjuction (Axis AND Center)? I don't get it. Example would definitely help me out to understand it.
4. Define angle of rotation.
The Rotate function is far away for me from other rotate function available within FreeCAD: WB: Draft -> Rotate, where:
a. it's good to specify at first "working plane",
b. one specifies point of rotation; if "working plane" was previously selected, then by default point of rotation belongs to this plane,
c. one specifies point of object to be rotated,
d. one specifies angle of rotation.
The presented workflow seems to be quite logic to newbie. To be honest I expected something similar in your macro, especially that it successfully uses concept of "working plane" and lets to select various planes.
What I actually try to gain is solution to this problem: viewtopic.php?f=3&t=13998&hilit=mslonik ... 10#p113943
. Without luck so far.
Kind regards, mslonik