parameters: (baseobj=None,height=None,length=None,width=None,align=None,face=None,name=None)
return_statement: return obj
docstring: Create a wall based on a given object, and returns the generated wall.
  
      TODO: It is unclear what defines which units this function uses.
  
      Parameters
      ----------
      baseobj: <Part::PartFeature>, optional
          The base object with which to build the wall. This can be a sketch, a
          draft object, a face, or a solid. It can also be left as None.
      height: float, optional
          The height of the wall.
      length: float, optional
          The length of the wall. Not used if the wall is based off an object.
          Will use Arch default if left empty.
      width: float, optional
          The width of the wall. Not used if the base object is a face.  Will use
          Arch default if left empty.
      align: str, optional
          Either "Center", "Left", or "Right". Effects the alignment of the wall
          on its baseline.
      face: int, optional
          The index number of a face on the given baseobj, to base the wall on.
      name: str, optional
          The name to give to the created wall.
  
      Returns
      -------
      <Part::FeaturePython>
          Returns the generated wall.
  
      Notes
      -----
      Creates a new <Part::FeaturePython> object, and turns it into a parametric wall
      object. This <Part::FeaturePython> object does not yet have any shape.
  
      The wall then uses the baseobj.Shape as the basis to extrude out a wall shape,
      giving the new <Part::FeaturePython> object a shape.
  
      It then hides the original baseobj.
docstring_summary: Create a wall based on a given object, and returns the generated wall.
docstring_tokens: Create a wall based on a given object and returns the generated wall .
function: def makeWall(baseobj=None,height=None,length=None,width=None,align=None,face=None,name=None):
      """Create a wall based on a given object, and returns the generated wall.
  
      TODO: It is unclear what defines which units this function uses.
  
      Parameters
      ----------
      baseobj: <Part::PartFeature>, optional
          The base object with which to build the wall. This can be a sketch, a
          draft object, a face, or a solid. It can also be left as None.
      height: float, optional
          The height of the wall.
      length: float, optional
          The length of the wall. Not used if the wall is based off an object.
          Will use Arch default if left empty.
      width: float, optional
          The width of the wall. Not used if the base object is a face.  Will use
          Arch default if left empty.
      align: str, optional
          Either "Center", "Left", or "Right". Effects the alignment of the wall
          on its baseline.
      face: int, optional
          The index number of a face on the given baseobj, to base the wall on.
      name: str, optional
          The name to give to the created wall.
  
      Returns
      -------
      <Part::FeaturePython>
          Returns the generated wall.
  
      Notes
      -----
      Creates a new <Part::FeaturePython> object, and turns it into a parametric wall
      object. This <Part::FeaturePython> object does not yet have any shape.
  
      The wall then uses the baseobj.Shape as the basis to extrude out a wall shape,
      giving the new <Part::FeaturePython> object a shape.
  
      It then hides the original baseobj.
      """
  
      if not FreeCAD.ActiveDocument:
          FreeCAD.Console.PrintError("No active document. Aborting\n")
          return
      p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch")
      obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Wall")
      if name:
          obj.Label = name
      else:
          obj.Label = translate("Arch","Wall")
      _Wall(obj)
      if FreeCAD.GuiUp:
          _ViewProviderWall(obj.ViewObject)
      if baseobj:
          if hasattr(baseobj,'Shape') or baseobj.isDerivedFrom("Mesh::Feature"):
              obj.Base = baseobj
          else:
              FreeCAD.Console.PrintWarning(str(translate("Arch","Walls can only be based on Part or Mesh objects")))
      if face:
          obj.Face = face
      if length:
          obj.Length = length
      if width:
          obj.Width = width
      else:
          obj.Width = p.GetFloat("WallWidth",200)
      if height:
          obj.Height = height
      else:
          obj.Height = p.GetFloat("WallHeight",3000)
      if align:
          obj.Align = align
      else:
          obj.Align = ["Center","Left","Right"][p.GetInt("WallAlignment",0)]
      if obj.Base and FreeCAD.GuiUp:
          if Draft.getType(obj.Base) != "Space":
              obj.Base.ViewObject.hide()
      return obj
function_tokens: def makeWall ( baseobj = None , height = None , length = None , width = None , align = None , face = None , name = None ) : if not FreeCAD . ActiveDocument : FreeCAD . Console . PrintError ( "No active document. Aborting\n" ) return p = FreeCAD . ParamGet ( "User parameter:BaseApp/Preferences/Mod/Arch" ) obj = FreeCAD . ActiveDocument . addObject ( "Part::FeaturePython" , "Wall" ) if name : obj . Label = name else : obj . Label = translate ( "Arch" , "Wall" ) _Wall ( obj ) if FreeCAD . GuiUp : _ViewProviderWall ( obj . ViewObject ) if baseobj : if hasattr ( baseobj , 'Shape' ) or baseobj . isDerivedFrom ( "Mesh::Feature" ) : obj . Base = baseobj else : FreeCAD . Console . PrintWarning ( str ( translate ( "Arch" , "Walls can only be based on Part or Mesh objects" ) ) ) if face : obj . Face = face if length : obj . Length = length if width : obj . Width = width else : obj . Width = p . GetFloat ( "WallWidth" , 200 ) if height : obj . Height = height else : obj . Height = p . GetFloat ( "WallHeight" , 3000 ) if align : obj . Align = align else : obj . Align = [ "Center" , "Left" , "Right" ] [ p . GetInt ( "WallAlignment" , 0 ) ] if obj . Base and FreeCAD . GuiUp : if Draft . getType ( obj . Base ) != "Space" : obj . Base . ViewObject . hide ( ) return obj