Print Page | Close Window

help!!!!1

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=3976
Printed Date: 30.May.2026 at 19:42


Topic: help!!!!1
Posted By: Cuty
Subject: help!!!!1
Date 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



Replies:
Posted By: CarlB
Date 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)


Posted By: Cuty
Date 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


Posted By: CarlB
Date 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.
 


Posted By: Cuty
Date 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


Posted By: CarlB
Date 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".





Posted By: Cuty
Date Posted: 12.Jul.2010 at 08:27
I do not understand.. the lisp code you gave mi.. how does it work.. I copyed it into the comand line and it doesnt worh????

-------------
Cuty


Posted By: CarlB
Date Posted: 12.Jul.2010 at 09:08
Did you type "dx" after copying (loading) it?
See i said explaining running the lisp was more involved; it was 3 steps: copy; paste, type "dx" :)



Posted By: Zupmicher
Date Posted: 12.Jul.2010 at 19:48
only to offset and help commands


Posted By: Cuty
Date Posted: 13.Jul.2010 at 10:35
Yes, I did as you sead, I copied it and then tiped "dx"
after that that in the command line appered this text:

Command: .xy Unknown command "XY". Press F1 for help.

Command: 0 Unknown command "0". Press F1 for help.


?????

-------------
Cuty


Posted By: CarlB
Date Posted: 13.Jul.2010 at 22:28
Sorry, apparently code was not as simple as I thought, I had wrong command (distance vs dist) and wrong input order, still didn't work right. So took a different approach, try this:
 
(defun c:dx ()
   (setq Pt1 (getpoint "\nPick first point: "))
   (setq Pt2 (getpoint Pt1 "Pick second point: "))
   (setq Pt1x (list (car Pt1) (cadr Pt1)))
   (setq Pt2x (list (car Pt2) (cadr Pt2)))
   (command "_dist" Pt1x pt2x)
   (princ)
)



Posted By: Cuty
Date Posted: 15.Jul.2010 at 14:04
There is stil a problem, i have copied ti into the command bar, presed Enter and tiped "dx". This text shows:

Pick first point: Pick second point:    (I pick points)

And after that the program still doesnt give me the horizontal distance (it works like the normal dist command).

Am I doing something wrong, I do not understand..???


-------------
Cuty


Posted By: CarlB
Date Posted: 15.Jul.2010 at 18:02
The code uses the regular "dist" command, but uses just the x-y values of the points you picked. So check the output and see if that is happening.


Posted By: Arben.Allaraj
Date Posted: 15.Jul.2010 at 20:08
Originally posted by Cuty Cuty wrote:

There is stil a problem, i have copied ti into the command bar, presed Enter and tiped "dx". This text shows:

Pick first point: Pick second point:    (I pick points)

And after that the program still doesnt give me the horizontal distance (it works like the normal dist command).

Am I doing something wrong, I do not understand..???
 
 It is ok in 2009.

 Check this url below maybe it help you.
 
  http://www.xanadu.cz/en/download.asp?file=Dist2 - http://www.xanadu.cz/en/download.asp?file=Dist2


-------------
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com


Posted By: Cuty
Date Posted: 29.Jul.2010 at 21:16
I want to thank you for helping me in my last problem.
Now I have one question... I have installed AutoCAD R14 because I have one thing to try ...
But the problem is that when I start AutoCAD a error is shown ... It writes "MEM_BAD_POINTER" Do you know enything about that???????

-------------
Cuty


Posted By: CarlB
Date Posted: 30.Jul.2010 at 00:47
This site discusses a fix:
http://www.windowsreference.com/windows-vista/fix-for-mem_bad_pointer-error-autocad-r14-in-vista/" rel="nofollow - http://www.windowsreference.com/windows-vista/fix-for-mem_bad_pointer-error-autocad-r14-in-vista/
 



Print Page | Close Window