uwestoehr wrote: ↑Thu Nov 26, 2020 6:45 pm
I think that is no option. I currently have to make technical drawings and my first versions were rejected because they were not norm-conform. I learned that all views must have the same unit system. For example I used dimensions without a unit (meaning mm) and for the dimensions in µm I displayed the unit.
I am just a poor physicist but apparently according to the "standard" ISO for technical drawings, either always a unit or never, and the latter is preferred. But again, my knowledge on how to make a proper drawing is unfortunately low and maybe I did actually not violate the norm. And as the norms are not accessible for free to check this, I cannot state on how to do it right.
I meant a "view" as in
TechDraw::DrawView, which is basically a drawing. The main idea of using these new UnitSchemas would be to make it possible to force all dimensions in a drawing to have the same unit (by utilizing a single-length-unit UnitSchema(s)). With the default TD UnitSchema this is not possible, as it is multi-unit for length, and I don't think it'd be wise to try to force the default UnitSchema to work like that, there'd be too many corner cases. I believe it would be much easier to add those single-unit UnitSchemas.
As for your point of not mixing different dimensions, I fully & completely agree with you; never mix different units on the same drawing. That said, I still think it'd good to let the user make bad choices, too. There will definitely always be someone who wants to mix meters and kilometers and whatever into the same drawing, so why try to prevent it? I'd just want to make it more easy to do it correctly, i.e. single unit per-view. At the moment, unit-mixup is the default, as you pointed out in the 1st post.
The technical reason why I'd want to use
TechDraw::DrawView is that a working
TechDraw::DrawViewDimension is always connected to a parent
TechDraw::DrawView, so if the UnitSchema would be saved there it'd be easy to access it from
TechDraw::DrawViewDimension. Of course, every view is on a page, so it could be per-page, too, but there could be other stuff between view and a page, like DrawViewCollection and other objects; but everything should end into a page. Hmm, maybe that needs another thought...