NamedView Export

How do I export NamedViews so they can be reused? A simple question, which seems entirely reasonable? This has been around for a long time, but I have not seen an answer.

I have many files, each with a model of a different boat or canoe. I need to be able to open a file, or a worksession with multiple files, select the layers/objects to be displayed, and then set the view to a NamedView before Print or view capture. Snapshots is NOT useful because I only want to reuse named views.

Hi @davidcockey,

Rather than export, import them from a source file. There is an Import button on the panel toolbar.

– Dale

Hi David,

To add to Dale’s reply — since you’re doing this across many files, the import is also scriptable. Keep one curated 3dm that holds just the views you want to reuse, then put this in a toolbar button or alias:

-_NamedView _Import "C:\library\boat-views.3dm" _Enter

one click and the views are in the current model. Works in a worksession too, they land in the active model. You can chain a restore right after if the prep is always the same view:

-_NamedView _Import "C:\library\boat-views.3dm" _Enter -_NamedView _Restore "Profile" _Enter

A couple things worth knowing:

  1. Import brings in all named views from the source file, there is no picker — that’s why i suggest a dedicated library file. Selective import is an open feature request, RH-33097
  2. if your files use different unit systems, camera distances don’t rescale on import — RH-58915

If you ever want the same view set stamped into dozens of existing files in one pass, that’s a small python script — happy to point you in that direction.

@dale @japhy You are missing a fundamental. I need to export named views to create/supplement a library file of the named views to use with the group of files, which I can import named views from. (I have two different groups of boats so I’ll need to create two different libary files.)

That is exactly what I want to do. I just need to create and update that file.

Is adding the ability to export named views fundamentally too difficult?

Hi @davidcockey,

If I understand correctly, you in Model.3dm and you want to add or replace some named view in Library.3dm. Is this correct? If so, a Python script should suffice.

ExportNamedViews.py (1.4 KB)

– Dale

The script does this, btw.

– Dale

Looks liike I mis-read your previous message. Thanks for the reply.