Retrieve the current directory of an open project in Ansys Space Claim with C#
Ansys Staff
Member, Employee Posts: 24
✭✭✭✭
How can I retrieve the current directory of an open project in Ansys Space Claim in C#.
This is for a personalized tool embedded in the tool bar.
Tagged:
2
Answers
-
With .Path from the document. Here is an example:
var window = Window.ActiveWindow; var doc = window?.Document; string docPath = doc.Path;
0