Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem] TechDraw: Dimensions are those of projected geos. #12383

Open
2 tasks done
PaddleStroke opened this issue Feb 13, 2024 · 15 comments
Open
2 tasks done

[Problem] TechDraw: Dimensions are those of projected geos. #12383

PaddleStroke opened this issue Feb 13, 2024 · 15 comments
Labels
Known issue WB TechDraw Related to the TechDraw Workbench

Comments

@PaddleStroke
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Am I missing something? Dimensions tools write the dimension of the projected geos. So if the view is not normal it is wrong.

image

Full version info

0.22

Subproject(s) affected?

Techdraw

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz
Copy link
Collaborator

maxwxyz commented Feb 13, 2024

That's the overall behavior of TD. For axonometric views there is the axonometric dimension tool. You can also link the dimensions to 3D objects or overwrite them manually.

@maxwxyz maxwxyz added WB TechDraw Related to the TechDraw Workbench Known issue labels Feb 13, 2024
@PaddleStroke
Copy link
Contributor Author

PaddleStroke commented Feb 14, 2024

I see. And horizontal/vertical distances do not make sense in axonometric views.

I think the software should deal with this. When view is axonometric the dimensions created should automatically be axonometric dimensions. No need for a separate tool. This should be included in the 'smart dimension' tool.

@obelisk79
Copy link
Contributor

obelisk79 commented Feb 15, 2024

I agree with paddle. This is a reasonable area where some modest automation can be applied.

@WandererFan
Copy link
Contributor

You can't get a 3d ref from a 2d ref. Projection is not an invertible operation.

At best, you could scan every 3d vertex (or edge as the case may be), project it, then compare each to the 2d ref. In the general case, this will give a list of potential matches. You would still need manual intervention to pick the right match.

There is nothing stopping the user from creating dimensions directly from 3d model geometry. This will create a True dimension, rather than a Projected dimension

@WandererFan
Copy link
Contributor

This issue should be closed.

@maxwxyz
Copy link
Collaborator

maxwxyz commented Feb 19, 2024

I will close this then

@maxwxyz maxwxyz closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
@PaddleStroke
Copy link
Contributor Author

PaddleStroke commented Feb 20, 2024

I disagree that this should be closed. The user can litteraly shoot himself in the foot by creating non-sensical dimensions, no warning. It is very misleading.
I don't think other CAD softwares enable you to create such non-sense dimensions. I don't know for all but in catia for example :
image
I would be surprise solidworks let you do it either.
Please re-open the issue

@maxwxyz
Copy link
Collaborator

maxwxyz commented Feb 20, 2024

@WandererFan is it possible to distinguish from the view if the view is axonometric or not to automatically choose the right dimension?

@maxwxyz maxwxyz reopened this Feb 20, 2024
@WandererFan
Copy link
Contributor

You can use the the view direction to try to determine if the view seems to be axonometric (ex (1,1,1)) but the orientation of the subject object may mean that what looks like an axonometric view according to the direction is actually orthogonal due to the alignment of the subject.

If you insist on choosing your dimension points on the drawing instead of selecting 3d geometry you are going to get projected dimensions.

There is no way to convert a projected point back to its unprojected source.

@WandererFan
Copy link
Contributor

This is dead easy in Sketcher since sketcher views are 2 dimensional and nothing is projected.

@PaddleStroke
Copy link
Contributor Author

PaddleStroke commented Feb 24, 2024 via email

@howie-j
Copy link
Contributor

howie-j commented Feb 24, 2024

Onshape for reference:
Screenshot from 2024-02-24 17-26-14

@pieterhijma
Copy link
Contributor

You can't get a 3d ref from a 2d ref. Projection is not an invertible operation.

At best, you could scan every 3d vertex (or edge as the case may be), project it, then compare each to the 2d ref. In the general case, this will give a list of potential matches. You would still need manual intervention to pick the right match.

There is nothing stopping the user from creating dimensions directly from 3d model geometry. This will create a True dimension, rather than a Projected dimension

There is no way to convert projected back to original, but it is possible to store a map of projected-original edge.

I would like to react on these two comments from @WandererFan (the first) and @PaddleStroke (the second). I tried to modify OCCT to maintain a mapping between the offered 3D model and the returned 2D projection. I don't think it can be solved in general, but I think there is potential to do much better than what is possible right now. See this forum post.

@WandererFan
Copy link
Contributor

IDK, but I'm told that dimensions starting as the projected value is the way other CAD programs work. @howie-j picture seems to bear this out.

@maxwxyz
Copy link
Collaborator

maxwxyz commented Mar 13, 2024

I think how other programs handle this is that you define the dimensions in the 3D view (e.g. annotations) before deriving the projected drawing. Then the dimensions get projected also on the sheet and could be linked. If you then change them, they are also changed in the 3D view. I know that's possible in SolidEdge and here are some Inventor references [1, 2]. This way you can also directly change the dimension in the 2D drawing and the 3D model updates accordingly.

This would in a far future be great for a real GD&T implementation, as they are defined also in the 3D space as annotations on the corresponding features of the model and can then be derived into the 2D drawing.

[1] https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-597185E4-F39C-4CE7-9CC7-EA69533BACB2
[2] https://www.cadforum.cz/en/controlling-size-of-3d-model-by-changing-drawing-dimensions-tip10521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Known issue WB TechDraw Related to the TechDraw Workbench
Projects
None yet
Development

No branches or pull requests

6 participants