Why are plot configurations created for Paperspace layouts incompatible with

Why are plot configurations created for Paperspace layouts incompatible with

Anonymous
Not applicable
294 Views
6 Replies
Message 1 of 7

Why are plot configurations created for Paperspace layouts incompatible with

Anonymous
Not applicable
I get an "invalid object" error trying to do a CopyFrom. This makes
no sense if both Paperspace and Modelspace implement the AcadLayout
interface.

Regards,
Eric
0 Likes
295 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
When using CopyFrom, you should check the ModelType property of the PlotConfig. If True, the PlotConfig can only be used for ModelSpace. If False, then it is a PaperSpace PlotConfig. If you want to use a PlotConfig that was created in ps for ms (or vise versa), you could create a duplicate of it, but with the correct ModelType property. First create a new PlotConfig using the Add method on the PlotConfigurations collection. Be sure to specify the argument for the correct ModelType in the add method. Then on the newly created PlotConfiguration, copy the propertys from the desired existing PlotConfiguration. -Ed
0 Likes
Message 3 of 7

Anonymous
Not applicable
p.s. You may need to check some of the properties. For example, if the ViewToPlot property specifies a view that was created in the wrong space, you will get an error. -Ed
0 Likes
Message 4 of 7

Anonymous
Not applicable
Well I know there's a wishlist floating around in this group. My
suggestion is to make the ModelType property read AND write. That. or
at least make the method a little more intelligent and copy the
properties which apply to both variations.

I guess I'll have to hard code a plot config just for plotting
Modelspace. Ridiculous.

On Mon, 25 Feb 2002 10:57:14 -0800, elj wrote:

>When using CopyFrom, you should check the ModelType property of the PlotConfig. If True, the PlotConfig can only be used for ModelSpace. If False, then it is a PaperSpace PlotConfig. If you want to use a PlotConfig that was created in ps for ms (or vise versa), you could create a duplicate of it, but with the correct ModelType property. First create a new PlotConfig using the Add method on the PlotConfigurations collection. Be sure to specify the argument for the correct ModelType in the add method. Then on the newly created PlotConfiguration, copy the propertys from the desired existing PlotConfiguration. -Ed
0 Likes
Message 5 of 7

Anonymous
Not applicable
While you could "hard code" one, what I do is define a model space setup (as well as ps ones of course) in a template. That way all new dwgs would be up-to-date. For older dwgs, I import (using CopyFrom) from the template. I have a sub that does this very quickly, without user intervention, using ObjectDBX. This replaces the PSETUPIN command. I'll post in in CustomerFiles. -Ed
0 Likes
Message 6 of 7

Anonymous
Not applicable
I forgot, I already did. Look for ImportPageSetupsND on 2/20/2. -Ed
0 Likes
Message 7 of 7

Anonymous
Not applicable
Well, I decided not to go into much detail because I didn't want the
post to turn into a rant.

I'm trying to fix drawings which were created by incompetent drafters
that are either all in Paperspace or all in Modelspace. I refuse to
maintain two sets of configuration files just for these people. What
really makes automating this a nightmare is when they cut & paste
titleblocks from Paperspace into Modelspace, and leave viewports and
other entities in Paperspace.

Regards,
Eric

On Mon, 25 Feb 2002 13:22:10 -0800, elj wrote:

>While you could "hard code" one, what I do is define a model space setup (as well as ps ones of course) in a template. That way all new dwgs would be up-to-date. For older dwgs, I import (using CopyFrom) from the template. I have a sub that does this very quickly, without user intervention, using ObjectDBX. This replaces the PSETUPIN command. I'll post in in CustomerFiles. -Ed
0 Likes