When writing an obj I am being prompted on the Rhino command line for PolygonDensity.
I have asked it not to show dialogs, but it still asks for this. How do I stop it from asking anything and just write the obj file? Thanks!
If you’re using V5, then your only option is to script the Export command.
If you’re using V6, in order to get absolutely no UI, you will need to mesh the objects first (and add them to the document). See Rhino.DocObjects.RhinoObject.MeshObjects, “uiStyle”. Then select those meshes and run your code. This will keep the meshing dialog or command options from appearing. Later you’ll have to go back and delete the temp meshes you added.
In V7, there’s is a new property on Rhino.FileIO.FileWriteOptions called SuppressAllInput that obj export pays attention to. If you add that to your code, and run it in V7, you can get what you want.
Thanks Tim – I have everything working well on Rhino 6, but now we find out that our client has Rhino 5, not 6. I’ve found the example code to get ETO forms to work in R5. My question is; we have several floating licences for R6, but how can I run R5 for just a few weeks to get this working?
I’ve got it running in trial mode for 90 days – that should be enough time to see if I can get an ETO dockable panel working in Rhino 5. I have the SampleCsETO you put together – hopefully I can get that working and put in my UI code and see what happens…
I see that it happens in V7 too. It’s not going to get fixed for V6 but I’m going to try to figure it out for V7. I’ll make a YT issue in a bit and post it here.
Thanks @tim, can you suppress it in V7 using SuppressAllInput = True ? (This is not available in V6) Anyway, if there is only a single mesh, i think it could safely skip asking for mesh settings.
_
c.
It’s already done and no settings were necessary. It uses the same flag that prevents the meshing dialog from appearing when there is nothing to mesh. It was not being applied to the command line version.