Tharwat Posted June 30, 2010 Posted June 30, 2010 Hello Why the (vla-get-propertyobject) is not responding either in Autocad Command line and Visual LISP console Window.... ? For Example. (setq myCircle (vla-addcircle mspace (vlax-3d-point (getpoint "\nPick the center point for a circle: ")) 2.0)) In Autocad directly in will show an error like : ; error: bad argument type: VLA-OBJECT nil Any explaination ? Many thanks Tharwat Quote
alanjt Posted June 30, 2010 Posted June 30, 2010 You're not defining the ActiveSpace in the mspace variable. Also, know that a point use to create an object with VL or entmake MUST be translated to WCS. Quote
Tharwat Posted June 30, 2010 Author Posted June 30, 2010 Hello Mr.Alanjt I have tried the function in many ways but with no result ..... any examlpe ??? I thought it might need the (vl-load-com) so I inserted it first but the same problem. Best Regards. Tharwat Quote
alanjt Posted June 30, 2010 Posted June 30, 2010 Here's my ActiveSpace subroutine... (defun AT:ActiveSpace (/) ;; Defined ActiveSpace ;; Alan J. Thompson, 10.12.09 (if (or (eq acmodelspace (vla-get-activespace (cond (*AcadDoc*) ((setq *AcadDoc* (vla-get-activedocument (vlax-get-acad-object)))) ) ) ) (eq :vlax-true (vla-get-mspace *AcadDoc*)) ) (vla-get-modelspace *AcadDoc*) (vla-get-paperspace *AcadDoc*) ) ) Quote
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.