Submit a Project to a Shared Workspace#
This example demonstrates how to create a project in your company’s shared workspace from the Flow360 Python API. It selects the shared workspace, submits a pre-existing volume mesh into it, and then shows the same submission into a folder that lives in the shared workspace. Every member of the company sees the resulting projects in the WebUI, exactly as if they had been created there.
import flow360 as fl
from flow360.examples import OM6wing
# select the company shared workspace
shared = fl.Workspace.get_shared()
# retrieve mesh files
OM6wing.get_files()
# submit the mesh directly into the shared workspace
project = fl.Project.from_volume_mesh(
OM6wing.mesh_filename,
name="Shared workspace mesh upload from Python",
folder_or_workspace=shared,
)
# a folder created in the shared workspace works as a target too
shared_folder = fl.Folder.create(
"Team meshes", parent_folder_or_workspace=shared
).submit()
project_in_folder = fl.Project.from_volume_mesh(
OM6wing.mesh_filename,
name="Shared workspace mesh upload into a folder",
folder_or_workspace=shared_folder,
)
Notes#
Workspace.get_shared()raises an error when the shared workspace is not enabled for your company.Workspace.get_private()returns your private workspace, which is also the default whenfolder_or_workspaceis omitted.folder_or_workspaceis accepted byProject.from_geometry(),Project.from_surface_mesh()andProject.from_volume_mesh(); the workspace of an existing project can only be changed in the WebUI, see GUI Guide: Workspaces.