Jump to content

Convert to autolisp code


gS7

Recommended Posts

Hey Guys ..

 

;Codes Copied from Afralisp website
;Copyright © 1999 by Kenny Ramage
;All rights reserved. 


(defun c:al-getpoint()

(vl-load-com)

(setq util (vla-get-utility 
                  (vla-get-activedocument 
                       (vlax-get-acad-object))))
                       
(setq thepoint (vla-GetPoint util nil "\nFirst Point : "))

(princ thepoint)

(princ)

)

 

 

Here I want to Know How to convert # file to Autolisp code

Link to comment
Share on other sites

 

another doubt how to convert Variant to safe array

 

(if (setq pt (getpoint "\n Specify point :"))
 (vlax-safearray-fill (vlax-make-safearray vlax-vbDouble '(0 . 2)) pt)
)

Link to comment
Share on other sites

Any other easiest way to learn Safe Array function ?

 

I am afraid not , but why you feel it is hard to learn ?

Otherwise Lisp function still faster and easier with powerful abilities .

 

Nothing comes easily ;)

Link to comment
Share on other sites

While learning I Get so much confusions so Feels Like That ...Think Its a Starting Trouble .. :P

 

Keep on working on your goal and you would become very familiar with functions if you had the willing to . :roll:

Link to comment
Share on other sites

Keep on working on your goal and you would become very familiar with functions if you had the willing to . :roll:

 

Off course Tharwat

 

and Thank for your Support

Link to comment
Share on other sites

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...