ChangeSpace equivalent workflow

Hi,

I’m looking for a way to mimic the ChangeSpace command behaviour,
Specifically I’d like to get 3D silhouettes from a detail view and transpose those on the layout over the detailview.

Am I missing the obvious, or is there indeed no other way then to create this functionality by taking into account all variables like the detail properties, layout view properties etc…
In effect subjecting the 3D silhouettes to a series of transforms to align them with the detail.

Thanks
-Willem

Hi @Willem,

See how far this sample gets you.

https://github.com/mcneel/rhino-developer-samples/blob/6/rhinocommon/cs/SampleCsCommands/SampleCsWorldToPageTransform.cs

– Dale

Thanks Dale
I missed the DetailViewObject properties .PageToWorldTransform and .WorldTo.PageTransform

Working like a charme now!

_Willem

Hi Dale,

Do you have a Python version? Thanks in advance

Hi @egdivad,

Sorry no. But the example above is written just using RhinoCommon. So it is possible to translate this into Python. Or you could just script the ChangeSpace command.

– Dale

Hi @dale

I am using the rs.command to ChangeSpace but I thought maybe using RhinoCommon would be a quicker way. I was told RhinoCommand is quicker when compared to rhinoscriptsytax or using command line.

Hi @egdivad,

Well, rhinoscriptsytax, just uses RhinoCommon. The command it is written in C++ and is by far the fasted approach.

– Dale