Jump to content

Grab a distance using the 'CAL Expression


tzframpton

Recommended Posts

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. 8)

Link to comment
Share on other sites

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.

Edited by BIGAL
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...