Search the Community
Showing results for tags 'autolisp code problems'.
-
How to create a Amnote in AutoCAD Mechanical
muhammad_rp posted a topic in AutoLISP, Visual LISP & DCL
hi guys, my name is ramdan i live in Indonesia, I want to Ask, how to make amnote in AutoCAD Mechanical with Autolisp ? thanks,- 1 reply
-
- autolisp programs
- autolisp code problems
- (and 3 more)
-
(defun c:sbb(/a b) ((setq a 10 b 5) (if (> a b) (progn (princ a) (setq a (+ a 5) b (+ b 6)) ((princ a)(princ)) ((princ b)(princ)) ) ) ) )
-
Error for ObjectID of polyline using vlax-curve-*
HelplessIntern posted a topic in AutoLISP, Visual LISP & DCL
I have just started learning AutoLISP from different posts on the forums and through the reference material from Autodesk but, I am hitting an error in my lisp routine that I don't know how to fix. I am trying to right a while loop that will go through a nested list and use information in the selected list segment to find points in reference to a Polyline using the vlax-curve-* functions. Currently I am using the vlax-curve-getPointAtDist with a variable distance and using a user defined polyline from the document. My code runs up until the point I try to use the getPointAtDist line which will return the error of "unable to find ObjectID for . The way I get the polyline from the user is a (setq Var (ssget "_+.:s" '((0 . "*POLYLINE")))). I have earlier in the routine the vla-load-com to load in all of the functions of visual lisp. Can anyone help me out on what I need to do to be able to run the vlax-curve-* functions?- 10 replies
-
- objectidcollection
- autolisp code problems
-
(and 2 more)
Tagged with: