TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: velasquez on November 30, 2013, 07:37:02 AM

Title: vlax-invoke
Post by: velasquez on November 30, 2013, 07:37:02 AM
Hi
Can anyone explain me the difference between working with:

Code: [Select]
(setq JoyObj (vlax-invoke
                 (JoyGetActiveSpace)
                 'addline
                 p1
                 p2
               ) ;_ fim de vlax-invoke
  )

OR

Code: [Select]
(setq JoyObj (vla-addLine
               (JoyGetActiveSpace)
               (vlax-3D-Point p1)
               (vlax-3D-Point p2)
             ) ;_ fim de vla-addLine
) ;_ fim de setq

And when one method is better than the other?

Thanks
velasquez
Title: Re: vlax-invoke
Post by: CAB on November 30, 2013, 08:16:54 AM
I don't think one is better than the other but others with deeper knowledge may comment.
Here is a very good general explanation.

;;=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
;;  How to use vla by Lee Mac
;;=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.cadtutor.net/forum/showthread.php?81195&p=551261&viewfull=1#post551261
Title: Re: vlax-invoke
Post by: Lee Mac on November 30, 2013, 08:24:11 AM
Thanks for the recommendation Alan  :-)

Concerning the differences in the structure/operation of the functions, here (http://bit.ly/1cr3roB) is a good explanation by sinc.
Title: Re: vlax-invoke
Post by: velasquez on November 30, 2013, 12:29:54 PM
The answers were very good.
Sorry if I posted in the wrong way.

thanks
velasquez
Title: Re: vlax-invoke
Post by: Lee Mac on November 30, 2013, 12:38:53 PM
The answers were very good.

You're welcome!  :-)

Sorry if I posted in the wrong way.

No worries - but for future reference: when posting a new thread to the forum, use the 'New Topic' button:

(http://www.lee-mac.com/swamp/newtopic.png)

Also, please read this (http://bit.ly/16mUwmY) regarding formatting code in your posts.

Lee