乐筑天下

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

[编程交流] A Simple Lisp: Plot, Select Pr

[复制链接]

33

主题

165

帖子

148

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
149
发表于 2022-7-5 14:45:19 | 显示全部楼层 |阅读模式
I do this routine roughly a hundred and 183 thousand times a day and it just occurred to me...why not try to see if I can find a lisp for it so that I can do it with a simple command.  Again these are the steps that I'm trying to achieve:
 
 
Plot, Select Printer, Paper Size (11x17), Plot Extents, Center the Plot, Click OK
 
 
Does anyone know of a Lisp that already exists for this type of function or a way of going about creating one?
 
 
For extra credit, all the same functions, but Print to PDF.
Would greatly appreciate any help with this.  Thanks.
回复

使用道具 举报

58

主题

3353

帖子

33

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1761
发表于 2022-7-5 14:55:13 | 显示全部楼层
Have you ever used sheet set manager and defined pagesetups .. that would save you a ton of time.
回复

使用道具 举报

33

主题

165

帖子

148

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
149
发表于 2022-7-5 15:02:08 | 显示全部楼层
That sounds moderately familiar...but then again I forget so many things.  To the Google for a refresher!
回复

使用道具 举报

39

主题

180

帖子

141

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
195
发表于 2022-7-5 15:05:59 | 显示全部楼层
Jim,
 
Modify this.
 
 
  1. ;;; PrintPDF1824(defun c:pdf1824 (/ ss mn mx)     (vl-load-com)     (if (setq ss  (ssget "_:S:E" '((0 . "INSERT,LWPOLYLINE"))))         (progn (vla-getboundingbox (vlax-ename->vla-object (ssname ss 0)) 'mn'mx)   (command "plot" "yes" "model" "[color="red"]Your PDF[/color].pc3" "ARCH C (18 x 24 in)"         "inches" "Landscape" "no" "Window"         (trans (vlax-safearray->list mn) 0 1)         (trans (vlax-safearray->list mx) 0 1)         "fit" "center" "yes" "[color="red"]YOUR.ctb[/color]"  "yes" "no" "no" "yes" "yes")               )         )     )
回复

使用道具 举报

39

主题

180

帖子

141

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
195
发表于 2022-7-5 15:16:23 | 显示全部楼层
Jim,
 
Modify this one. this does multiple copies.
 
 

[code];;; Printpage24X18(defun c:prp24 (/ ss mn mx)     (vl-load-com)(pltnum)     (if (setq ss  (ssget "_:S:E" '((0 . "INSERT,LWPOLYLINE"))))         (progn (vla-getboundingbox (vlax-ename->vla-object (ssname ss 0)) 'mn'mx)   (repeat xplta (command "plot" "yes" "model" "[color="red"]Your.pc3" "18x24(ARCH C)"         "inches" "LANDSCAPE" "no" "Window"         (trans (vlax-safearray->list mn) 0 1)         (trans (vlax-safearray->list mx) 0 1)         "fit" "center" "yes" "[color="red"]Your.ctb"  "yes" "no" "no" "yes" "yes")               )         )     )  )(defun pltnum ()(setq numplt (getint "\nEnter Number of Plots : "))(if (= numplt nil) (setq xplt 1) (setq xplt numplt))(if (
回复

使用道具 举报

39

主题

180

帖子

141

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
195
发表于 2022-7-5 15:21:29 | 显示全部楼层
Jim,
 
Here is a file with multiple print lisp routines to modify.
 
Brian
Print lisp.lsp
回复

使用道具 举报

2

主题

261

帖子

20

银币

初来乍到

Rank: 1

铜币
8
发表于 2022-7-5 15:29:55 | 显示全部楼层
Try using this:
Revers - Automatic batch printing a multiple format (rectangles, frames) of model space and layouts.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 15:37:01 | 显示全部楼层
I think Maratovich is the winner, we have 3 preset via a menu colour pdf b-w etc all plot a range of layouts here is the pdf for your info, also plots single sheets but end using ghostscript joins the pdf's into one.
plotA3Pdfrange2.lsp
GETVALS3.lsp
回复

使用道具 举报

58

主题

3353

帖子

33

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1761
发表于 2022-7-5 15:40:44 | 显示全部楼层
Post a sample drawing of what you're trying to plot. I'd still bet that sheet sets would be your ticket.
回复

使用道具 举报

33

主题

165

帖子

148

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
149
发表于 2022-7-5 15:48:32 | 显示全部楼层
That was more of a response than I was anticipating.  Going to need a minute to run through these.  Thanks.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-14 23:24 , Processed in 0.909207 second(s), 73 queries .

© 2020-2025 乐筑天下

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