teknomatika Posted September 21, 2012 Share Posted September 21, 2012 What is failing to not work properly? ;;writing point with z value (defun c:wpz() (setvar "PDMODE" 3) (setq pt (getpoint "\nPoint:")) (setq zv (getdist "\nZ Value:")) (setq x (car pt)) (setq y (cadr pt)) (command "point" x y zv) (princ) ) Quote Link to comment Share on other sites More sharing options...
teknomatika Posted September 21, 2012 Author Share Posted September 21, 2012 maybe so? ;;writing point with z value (defun c:wpz() (setvar "PDMODE" 3) (setq pt (getpoint "\nPoint:")) (setq zv (getdist "\nZ Value:")) (setq x (car pt)) (setq y (cadr pt)) (setq cord (list x y zv)) (command "point" cord) (princ) ) Quote Link to comment Share on other sites More sharing options...
MSasu Posted September 21, 2012 Share Posted September 21, 2012 The issue is the way you tried to build the coordinates list: (defun c:wpz() (setvar "PDMODE" 3) (setq pt (getpoint "\nPoint:")) (setq zv (getdist "\nZ Value:")) (setq x (car pt)) (setq y (cadr pt)) (command "point" [color=red](list [/color]x y zv[color=red])[/color]) (princ) ) Quote Link to comment Share on other sites More sharing options...
teknomatika Posted September 21, 2012 Author Share Posted September 21, 2012 The issue is the way you tried to build the coordinates list: (defun c:wpz() (setvar "PDMODE" 3) (setq pt (getpoint "\nPoint:")) (setq zv (getdist "\nZ Value:")) (setq x (car pt)) (setq y (cadr pt)) (command "point" [color=red](list [/color]x y zv[color=red])[/color]) (princ) ) Tanks, Mircea. However, how do I set routine by the size of the point style. For example, to determine their visibility in absolute units? Quote Link to comment Share on other sites More sharing options...
MSasu Posted September 21, 2012 Share Posted September 21, 2012 Please check the PDSIZE system variable - will need to input a positive value for absolute units (the negative one means percentage of viewport size). Quote Link to comment Share on other sites More sharing options...
teknomatika Posted September 21, 2012 Author Share Posted September 21, 2012 Please check the PDSIZE system variable - will need to input a positive value for absolute units (the negative one means percentage of viewport size). Tanks, Mircea. Resolved. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 23, 2012 Share Posted September 23, 2012 Not sure I would use getdist (setq zv (getdist "\nZ Value:")) (setq zv (getreal "\nZ Value:")) or (setq zv (getdist pt "\nZ Value:")) Quote Link to comment Share on other sites More sharing options...
MSasu Posted September 23, 2012 Share Posted September 23, 2012 First, I was also tempted to suggest to constrain indication of that distance from insertion point, but later thought that, since OP doesn't gave info about his scenario, then is possible that he/she will pick the said distance in a different part of the drawing. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 23, 2012 Share Posted September 23, 2012 A lot of people use GETDIST thinking its as the name implies get a distance when asking for the user to actually enter a value via the keyboard. Its real purpose is to get a distance using mouse style screen input. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.