Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8543

Create temp document for test purpose

$
0
0

Hi everyone,

I have some preferences for both RhinoDoc and RhinoObjects for plugin details. In order to test them, I simply want to create this scenario;

(At the beginning of test plugin)

  1. Open temporary RhinoDoc
  2. Create plugin object into temporary RhinoDoc
  3. Save into temp file in the system
  4. Open it again for test purpose to check saved values are true
// at the beginning of test project
RhinoDoc tempDoc = RhinoDoc.Create("docForTestPurpose");
string tempPath = System.IO.Path.GetTempPath();
// ..
// creating some plugin objects there into tempDoc
// ..
var fileWriteOptions = new FileWriteOptions();
bool res = tempDoc.Write3dmFile(tempPath, fileWriteOptions);

I simply tried this, but Write3dmFile method returned false.
Do you have any insight?

Best,
-Oğuzhan

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 8543

Trending Articles