move center of detailed view

Discussions about the development of the TechDraw workbench
User avatar
bernd
Posts: 10827
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

move center of detailed view

Postby bernd » Thu Feb 07, 2019 12:21 pm

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 1158 times

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

Re: move center of detailed view

Postby Syres » Thu Feb 07, 2019 12:50 pm

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 1147 times
User avatar
wandererfan
Posts: 4078
Joined: Tue Nov 06, 2012 5:42 pm

Re: move center of detailed view

Postby wandererfan » Thu Feb 07, 2019 3:23 pm

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 1128 times
User avatar
bernd
Posts: 10827
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: move center of detailed view

Postby bernd » Fri Feb 08, 2019 12:10 pm

:D

screen.jpg
screen.jpg (208.04 KiB) Viewed 1091 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

Postby rradler » 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? 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
Posts: 4078
Joined: Tue Nov 06, 2012 5:42 pm

Re: move center of detailed view

Postby wandererfan » Thu Feb 28, 2019 2:07 pm

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

Postby rradler » Thu Feb 28, 2019 7:37 pm

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 20 times
freedman
Posts: 1618
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: move center of detailed view

Postby freedman » Thu Feb 28, 2019 11:40 pm

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
Posts: 4078
Joined: Tue Nov 06, 2012 5:42 pm

Re: move center of detailed view

Postby wandererfan » Fri Mar 01, 2019 1:13 am

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 889 times
AnchorPointSmall.png
AnchorPointSmall.png (25.99 KiB) Viewed 889 times
rradler
Posts: 21
Joined: Sun Feb 03, 2019 10:49 am

Re: move center of detailed view

Postby rradler » Fri Mar 01, 2019 8:36 am

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.