Fabricio28 发表于 2014-9-11 08:45:44

Set plot configuration

Hi guys,
I'm plotting many files and everytime when I open a file I have to set plot configuration.
I'd like to set a plot configuration as default.
Name: HP Color LaserJet 500
Paper size: A4
Plot offset: Center the plot
Plot scale: FIT to paper
Number of copies: 2
Thank in advande

ronjonp 发表于 2014-9-11 09:03:54

Make a pagesetup in a template and import it into the drawing on open using the following code.
(defun _importpagesetups (template)
(vlax-map-collection
    (vla-get-plotconfigurations (vla-get-activedocument (vlax-get-acad-object)))
    'vla-delete
)
(setvar 'filedia 0)
(if (findfile template)
    (progn (vl-cmdf ".-psetupin" template "*") (princ "\n >"))
    (princ "\n >")
)
(setvar 'filedia 1)
(princ)
)
;; (_importpagesetups "C:\\temp\\mytemplate.dwt)

BlackBox 发表于 2014-9-11 09:05:56


Create a named page setup in your drawing template, either at drawing open, or on command, import your named page setup (either via ODBX, or PSETUPIN Command), and use this to set as active for all applicable Layouts.
Example:
(foreach layoutname (layoutlist)
(vla-SetActivePageSetup layoutname )
)

Cheers
- D@mn ninja's fast.
here's a cached version of the linked post above.

Rob... 发表于 2014-9-11 09:17:30

Named page set-ups can be imported into the layouts from other files.
They can be temporarily applied for plotting using publisher.
They can also be applied using Project Navigator.

BlackBox 发表于 2014-9-11 09:28:52




You're soooo going to see the new TMNT movie; aren't you?

Fabricio28 发表于 2014-9-11 09:34:18

Thank for the quick replay guys,
Sorry but I can't doing that.
When I imported the pagesetup of my template, the number of copies continue 1 but I set 2 copies.
My current drawing is already set the plot area in windows and I'd like to keep it.
When I open my file, I have to set plotter name, number of copies and center the plot.

Krushert 发表于 2014-9-11 09:40:54

Have you tried the "previous" under the pagesetup?This will remember your settings from the previous plot during an open session of the application and set them current for the current plot.

ronjonp 发表于 2014-9-11 09:41:02


/images/o5yexcj2v0x.gif

You're soooo going to see the new TMNT movie; aren't you?
Am I that obvious?

Fabricio28 发表于 2014-9-11 09:44:25


Yes, but the number of copies still 1 and I'd like to set for 2 copies.
Regards

BlackBox 发表于 2014-9-11 09:48:13


/images/o5yexcj2v0x.gif

You're soooo going to see the new TMNT movie; aren't you?

Am I that obvious?

... It takes one to know one.
页: [1] 2
查看完整版本: Set plot configuration