Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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*)
 )
)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...