乐筑天下

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

[编程交流] Out of my Depth - ObjectDBX an

[复制链接]

28

主题

118

帖子

95

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
136
发表于 2022-7-5 20:02:03 | 显示全部楼层 |阅读模式
This might be best achieved in .NET but I will put it out there in any case.
 
Deleting superfluous page setups and importing or setting a named page setup across multiple drawings through ObjectDBX?
 
At present, I just use a basic lisp on startup using "._-PSETUPIN" from a named file.
 
Cheers,
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-5 20:27:51 | 显示全部楼层
 
As I suspect you're already aware, one cannot call Commands via ObjectDBX.
 
However, as you might also already know, you can quickly iterate the PlotConfigurations Collection, to Delete() them:
 
  1. (defun _DeletePlotConfigurations (doc) (vlax-for x (vla-get-plotconfigurations doc)   (vl-catch-all-apply 'vla-delete (list x)) ))
 
 
You can copy the ACAD_PLOTSETTINGS Dictionary entries from one Document to another, in order to 'import' named Page Setups.
 
As for setting a given named Page Setup as active for one or more Layouts, that will require something like this:
 
 
 
 
Cheers
回复

使用道具 举报

28

主题

118

帖子

95

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
136
发表于 2022-7-5 20:45:53 | 显示全部楼层
BlackBox,
 
Thank you for taking the time to respond, I will use the information provided to try and achieve what I want.
 
Also, your Right Click Rename App is awesome!
 
https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3arightclickrenameforautocad%3aen
 
Cheers.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-5 21:14:35 | 显示全部楼层
 
No worries; I'm interested to see what you come up with.
 
 
 
 
That is incredibly kind of you to say; thank you.  
 
Cheers
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-12 00:55 , Processed in 1.325713 second(s), 60 queries .

© 2020-2025 乐筑天下

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