yorik wrote:Hm apparently the older Drawing::FeatureView and Drawing::FeatureViewPython don't work anymore... (They don't have a ViewResult property anymore and cannot be added to a page). This breaks the Draft and Arch drawing stuff... But I suppose you'll fix that at some point...
Other thing a bit difficult is that your branch is currently not mergeable into the master code, which makes it hard to try for example latest Draft code on it, or even to adapt it to work with both versions of the drawing WB...
Ah, here is an image showing the template problem (I also attached the template, if you want to have a look):
Cool. I'll take a look at the template, but I think it's because there are no units specified for the page width and height.
Drawing::FeatureView and Drawing::FeatureViewPython
I haven't yet looked at the python side of it. I am undecided if it would be best to keep the legacy code and use that or try and adapt the draft and arch module to use the new features? What do you think?
Sadly there was a huge change that messed up my repository two month ago and to merge required lots of manual overrides to resolve conflicts. I still have no idea why. I'm not sure what we can do to keep the branch history but it might have to add it through a single commit. jriegel might have some ideas...
ulrich1a wrote:Other issues:
- When changing the scale of a view, FreeCAD crashes, when the view has a dimension!
- There is a regression regarding the template: The template is not anymore to scale. And the white drawing area and the template are not aligned.
Ulrich, I cannot reproduce these problems, can you provide me an example I can test with?
ulrich1a wrote:I have not much experience with CAD-drawings, so I looked it up in book about how to make drawings. It says, dimension should only added to that edges, where its true lenght is shown in the view. This is equivalent to: all drawn dimensions are perpendicular to the projection direction. So I would say, the default dimension setting should be "Projected" and not "True"!
On this matter, orthographic projections are locked to always have projected dimensions. In 3D views I have set the option for the user to be able to choose this, because projected type for me doesn't make much sense. I cannot find a standard for drawings made in 3D even in my reference book. Although you are right for 2D drawings.
ulrich1a wrote:My test case is the wedge from the part workbench. Adding a view of it gives a z-axis projection. So I tried to add the distance between a bottom and a top edge. This worked by selecting the left sloping edge and adding a dimension with settings "Distance" and "Projected". I then tried to add a dimension of the hights of the wedge. I selected a top edge and a bottom edge. After adding a dimension with the settings "Distance" and "Projected", I am getting the right distance, but a wrong angle of the added dimension. (See image, right dimension). I know, that I could get the needed result in this case with the setting "distancey", but it should also work in a general case, where the needed dimension is not aligned to any of the main axis.
I don't understand what the problems, ,maybe I'm tired tonight...