乐筑天下

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

[编程交流] Hi, I need help on SCALE comma

[复制链接]

24

主题

93

帖子

76

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
115
发表于 2022-7-6 08:10:24 | 显示全部楼层 |阅读模式
Hi to all,
I want to know what is Lisp of built-in Scale command of AutoCad, I want to use default scale command value 0.8 every time rather than 1.0 (which is default value set by Cad). Where are these default values found in AutoCad.
Thanks.
回复

使用道具 举报

pBe

32

主题

2722

帖子

2666

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
211
发表于 2022-7-6 08:26:06 | 显示全部楼层
What is it you need anyway? tell us the big picture
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-6 08:28:45 | 显示全部楼层
This can do the trick instead of the built-in scale command , and permanently with value 8.0 .
 
  1. (defun c:Test (/ selectionset intger point) (vl-load-com);;; Tharwat 12. march. 2012 ;;; (if (and (setq selectionset (ssget "_:L"))          (setq point (getpoint "\n Specify base point :"))     )   (repeat (setq intger (sslength selectionset))     (vla-scaleentity       (vlax-ename->vla-object         (ssname selectionset (setq intger (1- intger)))       )       (vlax-3d-point point)       8.0     )   )   (princ) ) (princ))
回复

使用道具 举报

26

主题

1495

帖子

20

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 08:38:01 | 显示全部楼层
 
ASAIK, They've always been hard coded into AutoCAD and therefore not negotiable.  -David.
 
That is if you are talking about the scale parameter via INSERT command.
回复

使用道具 举报

24

主题

93

帖子

76

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
115
发表于 2022-7-6 08:53:12 | 显示全部楼层
 
Hi Tharwat,
Thanks for your help, yes this is what I needed. I'll add this Lisp in startup suite content in the AutoLisp Loadapplication so that when I use scale command I don't have to write 0.8 every time on every drawing I open.
Thanks for your help.
回复

使用道具 举报

24

主题

93

帖子

76

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
115
发表于 2022-7-6 08:55:18 | 显示全部楼层
Hi pBe,
I don't mean to change Cad's standard commands, just wanted to change  Scale command's default value 1.0 to 0.8. I am working on too many  drawings. All of them were edited to make some changes but now we need  some of old data from unchanged drawings and scale them a little bit  like 0.8. Tharwat made a Lisp which works as I wanted.
Hope you understand.
回复

使用道具 举报

24

主题

93

帖子

76

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
115
发表于 2022-7-6 09:04:01 | 显示全部楼层
Hi David,
Alright no problem if they are unable to change. I wanted to change Scale command's value 1.0 to 0.8. Tharwat made a Lisp which works fine. Thanks.
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-6 09:14:26 | 显示全部楼层
 
You're welcome .
 
happy to hear that .
 
Tharwat
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-9 08:58 , Processed in 0.418507 second(s), 68 queries .

© 2020-2025 乐筑天下

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