|
|
@ -150,7 +150,7 @@ class TechDrawExtensions: |
|
|
|
overlay_frame = App.ActiveDocument.addObject("Part::Part2DObjectPython", overlay_frame_name) |
|
|
|
overlay_frame = App.ActiveDocument.addObject("Part::Part2DObjectPython", overlay_frame_name) |
|
|
|
Draft.Wire(overlay_frame) |
|
|
|
Draft.Wire(overlay_frame) |
|
|
|
pos = raster_view.projectImageViewPointTo3D(App.Vector(0,0,0)) |
|
|
|
pos = raster_view.projectImageViewPointTo3D(App.Vector(0,0,0)) |
|
|
|
pos2 = raster_view.projectImageViewPointTo3D(App.Vector(0,0.0001,1)) |
|
|
|
pos2 = raster_view.projectImageViewPointTo3D(App.Vector(0.001,0.001,1)) |
|
|
|
overlay_frame.Points = [pos, pos2] |
|
|
|
overlay_frame.Points = [pos, pos2] |
|
|
|
Draft.ViewProviderWire(overlay_frame.ViewObject) |
|
|
|
Draft.ViewProviderWire(overlay_frame.ViewObject) |
|
|
|
overlay_frame.recompute() |
|
|
|
overlay_frame.recompute() |
|
|
@ -161,7 +161,7 @@ class TechDrawExtensions: |
|
|
|
overlay_frame2 = App.ActiveDocument.addObject("Part::Part2DObjectPython", overlay_frame2_name) |
|
|
|
overlay_frame2 = App.ActiveDocument.addObject("Part::Part2DObjectPython", overlay_frame2_name) |
|
|
|
Draft.Wire(overlay_frame2) |
|
|
|
Draft.Wire(overlay_frame2) |
|
|
|
pos = raster_view.projectImageViewPointTo3D(App.Vector(1,1,0)) |
|
|
|
pos = raster_view.projectImageViewPointTo3D(App.Vector(1,1,0)) |
|
|
|
pos2 = raster_view.projectImageViewPointTo3D(App.Vector(1,1.0001,1)) |
|
|
|
pos2 = raster_view.projectImageViewPointTo3D(App.Vector(1.001,1.001,1)) |
|
|
|
overlay_frame2.Points = [pos, pos2] |
|
|
|
overlay_frame2.Points = [pos, pos2] |
|
|
|
Draft.ViewProviderWire(overlay_frame2.ViewObject) |
|
|
|
Draft.ViewProviderWire(overlay_frame2.ViewObject) |
|
|
|
overlay_frame2.recompute() |
|
|
|
overlay_frame2.recompute() |
|
|
@ -205,7 +205,6 @@ class TechDrawExtensions: |
|
|
|
balloon.ViewObject.Visibility = old_Visibility |
|
|
|
balloon.ViewObject.Visibility = old_Visibility |
|
|
|
balloon.recompute() |
|
|
|
balloon.recompute() |
|
|
|
|
|
|
|
|
|
|
|
page.KeepUpdated = True # once we have hidden the source view, there should be no performance issue |
|
|
|
|
|
|
|
overlay.recompute() |
|
|
|
overlay.recompute() |
|
|
|
page.recompute() |
|
|
|
page.recompute() |
|
|
|
else: |
|
|
|
else: |
|
|
|