CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.097.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
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: 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)
)

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: 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
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: 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.
Back to Top
Arben.Allaraj View Drop Down
Senior Member
Senior Member


Joined: 14.Nov.2007
Location: Albania
Using: AutoCAD 2008
Status: Offline
Points: 602
Direct Link To This Post 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.
 


Edited by Arben.Allaraj - 15.Jul.2010 at 20:13
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com
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: 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
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: 30.Jul.2010 at 00:47
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,063 seconds.