Returns a string that contains the path to the output directory of the discipline in the workspace. In the event of an error, an exception is thrown.
getOutputDirectory(DisciplineObject discObject) throws CoreException | |||
---|---|---|---|
Argument | DisciplineObject | discObject | Discipline object for which a folder should be determined. |
Return value | String | Path to the folder of the output data. |
The path to the output directory differs depending on whether a desktop or Job Server installation has been performed.
import com.mind8.mechatronic.skill.AbsoluteNameUtil
droot=AbsoluteNameUtil.getObjectByAbsolutePath("Feeder.ECAD", UnitOfWork)
path = IUtilAPI.DEFAULT.getOutputDirectory(droot)
// Diese Methode liefert im normalen Kontext beispielsweise den Pfad "WS\Feeder\ECAD\" zurück.
// Im Job Server-Kontext liefert diese Methode beispielsweise den Pfad "WS\Feeder\-etsehvxndtqz\ECAD\" zurück.