generate_temp_project_directory#

Q3d.generate_temp_project_directory(name)#

Generate a unique directory string to save a project to.

This method creates a directory for storage of a project in the temp directory of the AEDT installation because this location is guaranteed to exist. If the name parameter is defined, a subdirectory is added within the temp directory and a hash suffix is added to ensure that this directory is empty and has a unique name.

Parameters:
namestr

Base name of the subdirectory to create in the temp directory.

Returns:
str

Base name of the created subdirectory.

Examples

>>> m3d = Maxwell3d()
>>> proj_directory = m3d.generate_temp_project_directory("Example")