Author Topic: Layout Problems  (Read 2404 times)

0 Members and 1 Guest are viewing this topic.

Twitch

  • Guest
Layout Problems
« on: June 19, 2007, 01:32:41 PM »
I've been able to cerate a new layout and set it current and create a custom pages setup.

How can I set my new layout's page setup with code?

If I modify the layout and set the page setup to the one I created by hand everything works great.

Thanks in advance.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Layout Problems
« Reply #1 on: June 19, 2007, 01:49:35 PM »
It would help if you show your code that you are trying to get to work. Since this is a .NET forum, there are a number of different languages you could be using.

Twitch

  • Guest
Re: Layout Problems
« Reply #2 on: June 20, 2007, 05:57:23 AM »
Got the answer from Tony T. on the AutoCAD.Net group

Call the CopyFrom method of the Layout, and pass it the PlotSettings object.


PS - No source code needed.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Layout Problems
« Reply #3 on: June 20, 2007, 06:23:24 AM »
Twitch,

Thanks for at least coming back and confirming the status of your question.

However, it's worthwhile keeping in mind Jeff's comments. It DOES help is anyone trying to answer a question has as much usefull information as possible.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.