Export shortcut in Rhino 7

Hi Guys !
How can i shortcut;
Export Sellected objects > STP
Export Sellected objects > DXF (Options Solid)
Export Sellected objects > Rhinoceros 6

Hello - the problem with a macro for non-3dm formats is there’s no way to specify the format ahead of time. For Rhino files you can use

! -_Export _Pause Version=6 _Browse

but to force other formats (i.e. not dig through the list each time) you’ll either need to know the name and path and all the options ahead of time, in the macro, or deal with the dialog every time.
i.e. you need a script. I probably have something in my pile, I’ll look.

-Pascal

2 Likes

Thank you so muck dear Pascal. Save to RH 6 is ok!. I am waiting others

You could use Grasshopper and Elefront to export your files

1 Like

Thanks Martin

Hello - see if these work -
ExportOBJFIle.py (705 Bytes)
ExportSTP.py (486 Bytes)
ExportDXF.py (496 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

Hello Pascal,
I’m so sorry for late. is it a practical way use this code? Like shortcut.

image
This not work.

1 Like

I can do it below method. But there is two problems. One, work Aliases not hot but I can’t see DXF options menu. Two, I can open DXF format file but “open read only”

  • In Options>Aliases, create a new alias with the following:

! _-RunPythonScript "<full path to your script including extension>"

(Path example: "C:\Users\<username>\Documents\Myscripts\TestScript.py" )

Hello - you can either have the format (dxf) etc pre-set as part of the process, in which case the options are all on the command line,

image

etc.

or have the dialog, but then you cannot pre-set the format.

-Pascal

1 Like