Beginner here and I've searched the internet until I was blue in the face for an answer to a seemingly straightforward problem. As part of an assignment, I need to make a macro that creates an octagon with edges that measure 8 units in length. Every time I use this macro:
^C^C_polygon;8;e;\;8<90;
I get an "invalid 2d point. Specify second endpoint of edge" error and need to manually enter "8" tab "90" or drag the cursor 8 units straight up to form the octagon. The macro registers the number of side I want and allows me to select the fist endpoint of the edge...then fails.
I'd appreciate any concrete. non-cryptic, help.
I have tried dozens of permutations (including -polygon) of the macro above and nothing gets me past the error
Solved! Go to Solution.
Solved by VincentSheehan. Go to Solution.
Solved by Kent1Cooper. Go to Solution.
Solved by ВeekeeCZ. Go to Solution.
The @ is the key, needed for a relative displacement. Also, the \ for user input is complete by itself -- the ; after it is extraneous. And the ; at the very end is not needed -- Enter is assumed at the end unless the macro ends with a control character of some kind.
Another way:
^C^C_polygon;8;e;\@0,8
Here is a Lisp.
(defun c:OCTA (/ side angle radian step x y points)
(setq pt1 (getpoint "\nSelect point"))
(command "_polygon" "8" "E" pt1 "@8<90")
(princ)
)
@dpierson6B4ETP It appears you may not familiar with these for deliberate placement (see highlighted section)
Happy coding!
Just a dynamic input user who does not know, that it's not all relative by default.
You guys are the best! Thank you...I almost threw my laptop out the window!
Can't find what you're looking for? Ask the community or share your knowledge.