Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I had a script that eported my models to stl-files.
thisDrawing.SendCommand("STLOUT" +
" " +
"g" +
" " +
group.Name +
Environment.NewLine +
" " +
" " +
completeFilename +
Environment.NewLine);And i used the FACETRES variable to change the model quality.
acApp.SetSystemVariable("FACETRES", 8);
First problem is: Since Acad2021 it does no longer change the variable via script. Other variables like FILEDIA are still working.
Second: I found a better way to export the models. But this example completly ignore the FACETRES value and and export super lowpoly only.
Solid3d sol = (Solid3d)tr.GetObject(myId, OpenMode.ForRead);
sol.StlOut(Path.Combine(targetDirectory, newFileName + ".stl"), true); //ignore facetres settings
It's possible to get a higher quality with that solid3d.stlout command?
Solved! Go to Solution.

