move center of detailed view

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

move center of detailed view

Post by bernd »

Attached a file. The center of the detailed view is in any cas the same point. I was not able to use another point or edge as detailed view center point. How can the detailed view be moved to see something different?

bernd

screen.jpg
screen.jpg (124.37 KiB) Viewed 3287 times

techdraw-detail.FCStd
(33.02 KiB) Downloaded 85 times
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: move center of detailed view

Post by Syres »

I assume you are talking about the Detail View Anchor Point which has a X,Y & Z offset from centre?
TechDrawDetailAnchorPoint.jpg
TechDrawDetailAnchorPoint.jpg (19.32 KiB) Viewed 3276 times
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: move center of detailed view

Post by wandererfan »

bernd wrote: Thu Feb 07, 2019 12:21 pm How can the detailed view be moved to see something different?
Just as @Syres said. The X/Y of the AnchorPoint controls the center of the Detail on the original View.
Attachments
techdraw-detail_bernd.png
techdraw-detail_bernd.png (95.3 KiB) Viewed 3257 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: move center of detailed view

Post by bernd »

:D

screen.jpg
screen.jpg (208.04 KiB) Viewed 3220 times

It takes some time to get what one would like to have. Change radius, change scale, move ancor. All this has to be done in Property View with numbers. Would be cool if this could be done in the paper with the mouse, but I assume this is not possible ATM ?+

Anyway It is possible with TechDraw to get on paper, what one has in mind. This is really cool.

bernd
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Re: move center of detailed view

Post by rradler »

Is there a way to find out the x/y values of the desired center other than entering some values for the anchor point and see what happens? In my case they don't match the x/y values of the body coordinate system. (For some reason the x value does, but the y value doesn't.)
Anyway It is possible with TechDraw to get on paper, what one has in mind. This is really cool.
Sure? E.g. a thread?
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: move center of detailed view

Post by wandererfan »

rradler wrote: Thu Feb 28, 2019 6:54 am Is there a way to find out the x/y values of the desired center other than entering some values for the anchor point and see what happens?
That's what I usually do. Need to add some feedback on cursor position in v0.19
rradler wrote: Thu Feb 28, 2019 6:54 am In my case they don't match the x/y values of the body coordinate system. (For some reason the x value does, but the y value doesn't.)
Details please. Version? Sample file? Always? Sometimes?

The anchor point is based on the projection in the BaseView, not a 3D model point.
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Re: move center of detailed view

Post by rradler »

Freecad Version
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15987 (Git) AppImage
Build type: Release
Branch: master
Hash: be45d5e7bab63a9c8566803ea1394d88445251dd
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
The anchor point is based on the projection in the BaseView, not a 3D model point.]
How does it relate to the 3D model point?

Here is an example file. The anchor piont of the detail is 148/390/0. When I go to the 3D model than the x coordinate matches but what is the 390? I am looking for a systematic way to set the anchor point. The best solution would be to set the anchor point by mouse click.
Attachments
gestell.FCStd
(198.72 KiB) Downloaded 74 times
freedman
Veteran
Posts: 3438
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: move center of detailed view

Post by freedman »

One way I could think of to create the detail;
Create detail like we do today and have it selected.
Then, an option to hold down a control key and redraw the detail box where you want it.

I'm not writing the code so just a thought. :)
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: move center of detailed view

Post by wandererfan »

rradler wrote: Thu Feb 28, 2019 7:37 pm The anchor piont of the detail is 148/390/0. When I go to the 3D model than the x coordinate matches but what is the 390? I am looking for a systematic way to set the anchor point.
Clicking on the Base would probably be better, maybe in v0.19. Until then, here is how it works:
DetailWiki.png
DetailWiki.png (14.07 KiB) Viewed 3018 times
AnchorPointSmall.png
AnchorPointSmall.png (25.99 KiB) Viewed 3018 times
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Re: move center of detailed view

Post by rradler »

Thanks, I think I got it. The x axis of the 3D view and the TechDraw view are matching in my case and the y axis of the TechDraw view actually is the z axis of the 3D view, but with the origin shiftet. So the y-value of the anchor point ist (40 + 820)/2-40 = 390.

An explanation in the Freecad wiki woult be very helpfull.
Post Reply