-
-
July 11, 2025 at 3:37 pm
downie
SubscriberHello,
I've developed an addin that has the following simple workflow.Â1. Open a Discovery model (.dsco file) using Document::Open(String)2. Resets the project (File::ResetProject), copies the solid bodies from the Document to the project, and then performs modeling operations on the model.3. Control returns to the DiscoveryÂAt this point, the Disovery application has the new model displayed.ÂMy addin is still in memory and has a pointer to the Document from step #1, but when I try to save it (Document::SaveAs) it fails with an exception.If I save the Document before step #2, there isn't an exception and the model is saved.ÂTherefore it appears that the call to File::ResetProject() is deleting the Document and it's contents.ÂIs there a way to tell Discovery not to delete the Document when File::ResetProject is called, i.e. a "soft" reset?ÂThank you,Blair DownieÂ
-
Viewing 0 reply threads
- You must be logged in to reply to this topic.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3467
-
1057
-
1051
-
929
-
896
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.