乐筑天下

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

[编程交流] ONE-CLICK commands

[复制链接]

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 11:01:35 | 显示全部楼层 |阅读模式
Please post here scripts that can be described as one-click commands.
I hope these commands will be useful, mostly (but not only) while working in XYplane.
 
For example I'll post first one: 'Rotate90degrees'.
It is made by fixo  and posted here as RS:
http://www.cadtutor.net/forum/showthread.php?t=24888&page=2   post #19
I made slight modification to eliminate manual entering the rotation value.
 
It needs little tuning to work correctly with undo/redo but I don't know how and what to modify.Now I'll ask again fixo to modify above and post here MIRROR-X(about X axis) and MIRROR-Y(about Y axis) using same start point (middle of selection set).
回复

使用道具 举报

1

主题

1069

帖子

1050

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
69
发表于 2022-7-6 12:59:50 | 显示全部楼层
 
Instead of this code line to rotate 90 degrees
  1. (vla-rotate a (vlax-3d-point midp) (* 90 (/ PI 180))))))
use the following one
  1. (vla-rotate a (vlax-3d-point midp) (/ PI 2.0))
 
~'J'~
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 11:39 , Processed in 1.149832 second(s), 56 queries .

© 2020-2025 乐筑天下

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