Jump to content

Recommended Posts

Posted

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

Posted

Like this ... :)

 

(princ (vlax-safearray->list (vlax-variant-value thepoint)))

Posted

Thank u for the Quick response Tharwat ..

 

another doubt how to convert Variant to safe array

Posted

 

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

Posted

Man !! you are Awesome Thank you Again ..today i am Learning Safe array Function

Posted
Man !! you are Awesome Thank you Again ..

 

You're welcome . :D

 

today i am Learning Safe array Function

 

Good Luck .

Posted

Any other easiest way to learn Safe Array function ?

Posted
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 ;)

Posted
but why you feel it is hard to learn ?

 

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

Posted
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:

Posted
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

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