Create new layout by copying


#1

Hi, I’m making a GH script that automates making fabrication drawings – one drawing per part. There are things common to each drawing, and the easiest way is to have one layout as a template, and have the script copy the layout. FabTools has a component that does this, but I’d rather build our own.

I’ve been scouring the SDK to find how to do this in the GH C# component … I’ve found out how to find an existing layout (i.e., PageView), create a new one, but nothing on how to copy one. How can this be done?

Thank you!


(Giulio Piacentino) #2

Sorry, I don’t see a method for that right now. I noted your request: RH-39727.

In the meantime, you can still create a new RhinoPageView with ViewTable.AddPageView() and copy the content of the other RhinoPageView. See the example, here.

Does it help?

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com