TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: velasquez on November 30, 2013, 07:37:02 AM
-
Hi
Can anyone explain me the difference between working with:
(setq JoyObj (vlax-invoke
(JoyGetActiveSpace)
'addline
p1
p2
) ;_ fim de vlax-invoke
)
OR
(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
-
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
-
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.
-
The answers were very good.
Sorry if I posted in the wrong way.
thanks
velasquez
-
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