parameters: (obj, page, lwmod=None, tmod=None, otherProjection=None)
return_statement: return viewobj
docstring: make_drawing_view(object,page,[lwmod,tmod])
      
      This function is OBSOLETE, since TechDraw substituted the Drawing Workbench.
      Add a View of the given object to the given page. 
  
      Parameters
      ----------
      lwmod : 
          modifies lineweights (in percent), 
      
      tmod :
          modifies text heights (in percent). 
  
      The Hint scale, X and Y of the page are used.
          TODO: Document it properly
docstring_summary: make_drawing_view(object,page,[lwmod,tmod])
      
      This function is OBSOLETE, since TechDraw substituted the Drawing Workbench.
      Add a View of the given object to the given page.
docstring_tokens: make_drawing_view ( object page [ lwmod tmod ] ) This function is OBSOLETE since TechDraw substituted the Drawing Workbench . Add a View of the given object to the given page .
function: def make_drawing_view(obj, page, lwmod=None, tmod=None, otherProjection=None):
      """
      make_drawing_view(object,page,[lwmod,tmod])
      
      This function is OBSOLETE, since TechDraw substituted the Drawing Workbench.
      Add a View of the given object to the given page. 
  
      Parameters
      ----------
      lwmod : 
          modifies lineweights (in percent), 
      
      tmod :
          modifies text heights (in percent). 
  
      The Hint scale, X and Y of the page are used.
          TODO: Document it properly
      """
      if not App.ActiveDocument:
          App.Console.PrintError("No active document. Aborting\n")
          return
      if utils.get_type(obj) == "SectionPlane":
          import ArchSectionPlane
          viewobj = App.ActiveDocument.addObject("Drawing::FeatureViewPython","View")
          page.addObject(viewobj)
          ArchSectionPlane._ArchDrawingView(viewobj)
          viewobj.Source = obj
          viewobj.Label = "View of "+obj.Name
      elif utils.get_type(obj) == "Panel":
          import ArchPanel
          viewobj = ArchPanel.makePanelView(obj, page)
      else:
          viewobj = App.ActiveDocument.addObject("Drawing::FeatureViewPython",
                                                 "View"+ obj.Name)
          DrawingView(viewobj)
          page.addObject(viewobj)
          if (otherProjection):
              if hasattr(otherProjection,"Scale"):
                  viewobj.Scale = otherProjection.Scale
              if hasattr(otherProjection,"X"):
                  viewobj.X = otherProjection.X
              if hasattr(otherProjection,"Y"):
                  viewobj.Y = otherProjection.Y
              if hasattr(otherProjection,"Rotation"):
                  viewobj.Rotation = otherProjection.Rotation
              if hasattr(otherProjection,"Direction"):
                  viewobj.Direction = otherProjection.Direction
          else:
              if hasattr(page.ViewObject,"HintScale"):
                  viewobj.Scale = page.ViewObject.HintScale
              if hasattr(page.ViewObject,"HintOffsetX"):
                  viewobj.X = page.ViewObject.HintOffsetX
              if hasattr(page.ViewObject,"HintOffsetY"):
                  viewobj.Y = page.ViewObject.HintOffsetY
          viewobj.Source = obj
          if lwmod: viewobj.LineweightModifier = lwmod
          if tmod: viewobj.TextModifier = tmod
          if hasattr(obj.ViewObject,"Pattern"):
              if str(obj.ViewObject.Pattern) in list(utils.svgpatterns().keys()):
                  viewobj.FillStyle = str(obj.ViewObject.Pattern)
          if hasattr(obj.ViewObject,"DrawStyle"):
              viewobj.LineStyle = obj.ViewObject.DrawStyle
          if hasattr(obj.ViewObject,"LineColor"):
              viewobj.LineColor = obj.ViewObject.LineColor
          elif hasattr(obj.ViewObject,"TextColor"):
              viewobj.LineColor = obj.ViewObject.TextColor
      return viewobj
function_tokens: def make_drawing_view ( obj , page , lwmod = None , tmod = None , otherProjection = None ) : if not App . ActiveDocument : App . Console . PrintError ( "No active document. Aborting\n" ) return if utils . get_type ( obj ) == "SectionPlane" : import ArchSectionPlane viewobj = App . ActiveDocument . addObject ( "Drawing::FeatureViewPython" , "View" ) page . addObject ( viewobj ) ArchSectionPlane . _ArchDrawingView ( viewobj ) viewobj . Source = obj viewobj . Label = "View of " + obj . Name elif utils . get_type ( obj ) == "Panel" : import ArchPanel viewobj = ArchPanel . makePanelView ( obj , page ) else : viewobj = App . ActiveDocument . addObject ( "Drawing::FeatureViewPython" , "View" + obj . Name ) DrawingView ( viewobj ) page . addObject ( viewobj ) if ( otherProjection ) : if hasattr ( otherProjection , "Scale" ) : viewobj . Scale = otherProjection . Scale if hasattr ( otherProjection , "X" ) : viewobj . X = otherProjection . X if hasattr ( otherProjection , "Y" ) : viewobj . Y = otherProjection . Y if hasattr ( otherProjection , "Rotation" ) : viewobj . Rotation = otherProjection . Rotation if hasattr ( otherProjection , "Direction" ) : viewobj . Direction = otherProjection . Direction else : if hasattr ( page . ViewObject , "HintScale" ) : viewobj . Scale = page . ViewObject . HintScale if hasattr ( page . ViewObject , "HintOffsetX" ) : viewobj . X = page . ViewObject . HintOffsetX if hasattr ( page . ViewObject , "HintOffsetY" ) : viewobj . Y = page . ViewObject . HintOffsetY viewobj . Source = obj if lwmod : viewobj . LineweightModifier = lwmod if tmod : viewobj . TextModifier = tmod if hasattr ( obj . ViewObject , "Pattern" ) : if str ( obj . ViewObject . Pattern ) in list ( utils . svgpatterns ( ) . keys ( ) ) : viewobj . FillStyle = str ( obj . ViewObject . Pattern ) if hasattr ( obj . ViewObject , "DrawStyle" ) : viewobj . LineStyle = obj . ViewObject . DrawStyle if hasattr ( obj . ViewObject , "LineColor" ) : viewobj . LineColor = obj . ViewObject . LineColor elif hasattr ( obj . ViewObject , "TextColor" ) : viewobj . LineColor = obj . ViewObject . TextColor return viewobj