parameters: (self)
docstring: Executed when Arch Project is called.
  
          Create a project from the objects selected by the user that have the
          Site IfcType, if any.
docstring_summary: Executed when Arch Project is called.
docstring_tokens: Executed when Arch Project is called .
function: def Activated(self):
          """Executed when Arch Project is called.
  
          Create a project from the objects selected by the user that have the
          Site IfcType, if any.
          """
  
          selection = FreeCADGui.Selection.getSelection()
          siteobj = []
  
          for obj in selection:
              if hasattr(obj, "IfcType") and obj.IfcType == "Site":
                  siteobj.append(obj)
  
          ss = "[ "
          for o in siteobj:
              ss += "FreeCAD.ActiveDocument." + o.Name + ", "
          ss += "]"
          FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Project"))
          FreeCADGui.addModule("Arch")
          FreeCADGui.doCommand("obj = Arch.makeProject("+ss+")")
          FreeCADGui.addModule("Draft")
          FreeCADGui.doCommand("Draft.autogroup(obj)")
          FreeCAD.ActiveDocument.commitTransaction()
          FreeCAD.ActiveDocument.recompute()
function_tokens: def Activated ( self ) : selection = FreeCADGui . Selection . getSelection ( ) siteobj = [ ] for obj in selection : if hasattr ( obj , "IfcType" ) and obj . IfcType == "Site" : siteobj . append ( obj ) ss = "[ " for o in siteobj : ss += "FreeCAD.ActiveDocument." + o . Name + ", " ss += "]" FreeCAD . ActiveDocument . openTransaction ( translate ( "Arch" , "Create Project" ) ) FreeCADGui . addModule ( "Arch" ) FreeCADGui . doCommand ( "obj = Arch.makeProject(" + ss + ")" ) FreeCADGui . addModule ( "Draft" ) FreeCADGui . doCommand ( "Draft.autogroup(obj)" ) FreeCAD . ActiveDocument . commitTransaction ( ) FreeCAD . ActiveDocument . recompute ( )