[0.17] Align plane to cone wall

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: [0.17] Align plane to cone wall

Post by NormandC »

Mario, your macro does not seem to be compatible with 0.17-dev, which this topic is about. The Body tree is destroyed in your file.
mario52
Veteran
Posts: 4673
Joined: Wed May 16, 2012 2:13 pm

Re: [0.17] Align plane to cone wall

Post by mario52 »

hi
the macro run with 0.15, 0.16, 0.17 maybe the file .fcstd

here with
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10958 (Git)
Build type: Release
Branch: master
Hash: df1e2642d0f1b7e43f2f0e0f66159804bea58681
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
PlanToCone02.png
PlanToCone02.png (70.38 KiB) Viewed 716 times
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Zarah
Posts: 3
Joined: Mon Jan 25, 2021 1:51 am

Re: [0.17] Align plane to cone wall

Post by Zarah »

I tried the approach given by NormandC but in freecad 0.18 there is no option of map path parameter under property window. Please could you suggest how can I move the datum point by an angle.

Thanks for any hint!
Attachments
prac9.FCStd
(107.08 KiB) Downloaded 11 times
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: [0.17] Align plane to cone wall

Post by jmaustpc »

Zarah wrote: Mon Jan 25, 2021 4:36 am I tried the approach given by NormandC but in freecad 0.18 there is no option of map path parameter under property window. Please could you suggest how can I move the datum point by an angle.

Thanks for any hint!
Right click on properties, select "show all", then it will appear for DatumPoints, at least it does in FreeCAD 0.19, I haven't checked 0.18
Zarah
Posts: 3
Joined: Mon Jan 25, 2021 1:51 am

Re: [0.17] Align plane to cone wall

Post by Zarah »

No I tried but map path parameter isn't there. :| Can you suggest how to use yaw,pitch ,roll in case of datum point?
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: [0.17] Align plane to cone wall

Post by jmaustpc »

Zarah wrote: Mon Jan 25, 2021 6:02 am No I tried but map path parameter isn't there.
0.18.4 is now very old, most of us have been using 0.19 dev snapshots for a very long time. If you persist with 0.18 you will have to tolleralte the lack of 6 thousand bug fix and new feature updates. It seems this is perhaps one of those bug fixes.

Just update to 0.19, then you can right click and "select all" to get access to extra properties including the one you are looking for.

You have two topics now that seem to be asking about the same thing. Although the other topic is not clear but I have answered it.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17] Align plane to cone wall

Post by chrisb »

I have the MapPath parameter here for DatumPlanes, but it doesn't work as hoped.
What works here is this:
- add a DatumPoint to the lower edge
- make all properties visible (see above)
- change MapPath between 0 and 1
- add DatumPlane, attach it to the wall and the DatumPoint with mode tangent.

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22960 (Git)
Build type: Release
Branch: master
Hash: c5a4b01d2e4218bcc0eb6650337650a6c65ef0e4
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: [0.17] Align plane to cone wall

Post by jmaustpc »

chrisb wrote: Mon Jan 25, 2021 8:41 am I have the MapPath parameter here for DatumPlanes, but it doesn't work as hoped.
What works here is this:
- add a DatumPoint to the lower edge
- make all properties visible (see above)
- change MapPath between 0 and 1
- add DatumPlane, attach it to the wall and the DatumPoint with mode tangent.

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22960 (Git)
Build type: Release
Branch: master
Hash: c5a4b01d2e4218bcc0eb6650337650a6c65ef0e4
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
Hi Chris, it's working perfectly for me here. I wonder, since you have not explicitly stated above, did you select "OnEdge" or the default "Centre of edge"? If the first then it should work but if you just accepted the default then it would not work as the Datum point is created at the centre of the circular edge. The other thought is did you actually select the edge or is there any chance you accidentally selected only the end point of the edge?


Jim


OS: Ubuntu 18.04.5 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.today's daily PPA
Build type: Release
Branch: unknown
Hash: 078790268f8b989a9d56816513b99c19c8b46743
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17] Align plane to cone wall

Post by chrisb »

I had selected the surface and switching to tangent, asked for an additional point. So I had selected only the endpoint, because it seemed to be natural to move this via MapPath. I will retry with the edge later.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17] Align plane to cone wall

Post by chrisb »

jmaustpc wrote: Mon Jan 25, 2021 8:52 am Hi Chris, it's working perfectly for me here.
Do you mind uploading your working example or can you tell me what's wrong with mine? After attaching with TangentToPlane I cannot select an edge, only a point. And that doesn't react to MapPath.
Attachments
DatumPlaneOnCone.FCStd
(6.55 KiB) Downloaded 9 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply