How can I import a page layout from another file?

How can I import a page layout from another file?

What have you tried so far?

Camber has several nodes that can help - there is going to be a requirement for some python

This page Plot Settings and Page Setups (.NET) has the C# code (unfortunately not in python) which outlines the way to achieve what you are asking

1 Like

Hello, you can use Camber Package, there is a Node for Layout import form external file.

I need the configuration page setups

It’s complicated for me, I don’t know the Python language. If you could help me a little with the code, I would appreciate it.

I can help - may take a day or so, so please be patient

thank you very much, I will be attentive

Hi Albert,
This is not so easy - as soon as I touch the PlotSettingsDictionary (where the named pages reside) on a side loaded database I get a protected memory access violation -everytime-. These are the joys of using the AutoCAD API.
Bear with me I will keep trying when I get the time

1 Like

Thank you very much, I will be attentive to any solution

Quick update
I have worked out that using the Named Object Dictionary is more stable although it still is causes errors when trying to copy plot settings

Hi, you can try Document.SendCommand node Simulating ENTER key when using Camber SendCommand node - #2 by mzjensen
for -PLOT or another command line commands with “-” prefix.