CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedhelp!!!!1

 Post Reply Post Reply Page  <12
Author
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 10.Jul.2010 at 20:07
The macro & lisp code is straightforward. What's more difficult is describing how to make a button to assign the macro to, andr how to load  a lisp routine.

Macro code:
^C^C_distance;.xy;0;\.xy;0;\

(not sure the semicolon (enter) and backslash (pause) syntax is quite right


Lisp code;

(defun c:dx ()
   (command "_distance" ".xy" "0" pause ".xy" "0" pause)
   (princ)
)

To load the lisp code, you could copy and paste the 4 above lines to the command line. Then run it by typing "dx".



Back to Top
Cuty View Drop Down
Newbie
Newbie


Joined: 09.Jul.2010
Location: United Kingdom
Using: AutoCAD2010
Status: Offline
Points: 11
Direct Link To This Post Posted: 10.Jul.2010 at 13:30
Truly ti makes more sense now. The thing is in that I now just that basic stuff about AutoCAD, so I have know idea what lisps or macrons are.
Would it be difficult to write a lisp of that assignment???

Cuty
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 09.Jul.2010 at 23:43
I apolologize in not being more clear in my response :)
By "excluding z" I was referring to filtering out the z value while using the "distance" command.  Not changing the points in any way. Re-read my suggestions and see if they make more sense.
 
1. Set OSNAPZ to 1, then run the distance command, it will give you the x-y distance.
2. Use the ".xy" filter when selecting points in the distance command, supply "0" as the z values, it will give you the x-y distance.
 
if you do this a lot you could make a button macro or a lisp routine.
 
Back to Top
Cuty View Drop Down
Newbie
Newbie


Joined: 09.Jul.2010
Location: United Kingdom
Using: AutoCAD2010
Status: Offline
Points: 11
Direct Link To This Post Posted: 09.Jul.2010 at 23:31
First I want to apologize for not been clear enough, because in my work I need to be fast.Surely it does not take a lot of time to measure only one distance , but when you have a 30 - 40 it takes a lot of time.
The problem is I can not exclude the Z value because I need the height of the points, otherwise I would already done it.
Is there maybe a command that will automatically give you horizontal distance (maybe in AutoCAD 2008 version)???
Cuty
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 09.Jul.2010 at 18:01
You can use the distance command, but exclude the z value when you select the points.
Do this with a filter (type ".xy" when prompted for point), or with "osnapz" variable setting (not sure available in 2007)
Back to Top
Cuty View Drop Down
Newbie
Newbie


Joined: 09.Jul.2010
Location: United Kingdom
Using: AutoCAD2010
Status: Offline
Points: 11
Direct Link To This Post Posted: 09.Jul.2010 at 12:44
People, I need help... I hope somebody can answer me..
I am using AutoCAD 2007 verson and I do not know how to mesure the hozizontal distance between two points if these points have height.
The standard command DIST does not give me the horizontal distance in that case..

I hope somebody can answer me...!!!!
Cuty
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,054 seconds.