乐筑天下

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

[综合讨论] Grab a distance using the 

[复制链接]

49

主题

1246

帖子

1210

银币

后起之秀

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

铜币
254
发表于 2022-7-7 00:13:26 | 显示全部楼层 |阅读模式
I'm trying to see if I can't invoke a CAL expression transparently during a command (such as MOVE) and pick two points to calculate a distance. I've researched the CAL Topics [link here] and it seems there's a dist(p1,p2) command but it errors, so I'm guessing that has to do with LISP or some other type of information handling.
 
Anybody know of such a way? Thanks in advance.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-7 00:48:15 | 显示全部楼层
Are you trying to move an object say ortho but picking two points that are not square ?
 
Move pick object pick two random pts works ? moves relative.
 
Are you looking at using the distance later ? a bit more info please.
 
Had a bit more of a play if you use lisp and create p1 p2 then dist works also if you do another move then type !p1 !p2 it will move object the pre defined distance and angle.
回复

使用道具 举报

7

主题

340

帖子

338

银币

初来乍到

Rank: 1

铜币
37
发表于 2022-7-7 01:36:34 | 显示全部楼层
Something like this (clipped from command window)?
 
Command: m
MOVE
Select objects: Specify opposite corner: 0 found
Select objects: Specify opposite corner: 1 found
Select objects:
Specify base point or [Displacement] : cen of Specify second
point or : 'cal
>>>> Expression: (end+end)
>>>> Select entity for END snap:
>>>> Select entity for END snap:
Resuming MOVE command.
Specify second point or :
52.456918101139,13.513592022022,0
 
This was used to move a circle using it's center as a base point, and adding the endpoints of two lines together to get the distance.
 
correction---this process gives you the coordinates of your destination, not the distance
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-7 08:56 , Processed in 0.404091 second(s), 58 queries .

© 2020-2025 乐筑天下

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