乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 135|回复: 13

Set plot configuration

[复制链接]

93

主题

353

帖子

3

银币

中流砥柱

Rank: 25

铜币
725
发表于 2014-9-11 08:45:44 | 显示全部楼层 |阅读模式
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
回复

使用道具 举报

58

主题

3353

帖子

33

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1761
发表于 2014-9-11 09:03:54 | 显示全部楼层
Make a pagesetup in a template and import it into the drawing on open using the following code.
  1. (defun _importpagesetups (template)
  2.   (vlax-map-collection
  3.     (vla-get-plotconfigurations (vla-get-activedocument (vlax-get-acad-object)))
  4.     'vla-delete
  5.   )
  6.   (setvar 'filedia 0)
  7.   (if (findfile template)
  8.     (progn (vl-cmdf ".-psetupin" template "*") (princ "\n >"))
  9.     (princ "\n >")
  10.   )
  11.   (setvar 'filedia 1)
  12.   (princ)
  13. )
  14. ;; (_importpagesetups "C:\\temp\\mytemplate.dwt)
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 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:
  1. (foreach layoutname (layoutlist)
  2.   (vla-SetActivePageSetup layoutname )
  3. )

Cheers
[Edit] - D@mn ninja's fast.  
[Edit[ - Looks like AUGI's down; here's a cached version of the linked post above.
回复

使用道具 举报

36

主题

621

帖子

2

银币

中流砥柱

Rank: 25

铜币
765
发表于 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.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2014-9-11 09:28:52 | 显示全部楼层

o5yexcj2v0x.gif

o5yexcj2v0x.gif


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

使用道具 举报

93

主题

353

帖子

3

银币

中流砥柱

Rank: 25

铜币
725
发表于 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.
回复

使用道具 举报

33

主题

470

帖子

9

银币

中流砥柱

Rank: 25

铜币
599
发表于 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.
回复

使用道具 举报

58

主题

3353

帖子

33

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1761
发表于 2014-9-11 09:41:02 | 显示全部楼层


                               
登录/注册后可看大图


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

使用道具 举报

93

主题

353

帖子

3

银币

中流砥柱

Rank: 25

铜币
725
发表于 2014-9-11 09:44:25 | 显示全部楼层

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

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2014-9-11 09:48:13 | 显示全部楼层


                               
登录/注册后可看大图


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

Am I that obvious?  

... It takes one to know one.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-11 03:06 , Processed in 0.379904 second(s), 75 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表