TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: AWW on January 13, 2010, 03:22:47 PM

Title: ActiveX...
Post by: AWW on January 13, 2010, 03:22:47 PM
Does anyone have any good links for more in depth explanation of ActiveX? I am trying to learn and
understand ActiveX. I've never used it (I don't think). I looked at the help files of AutoCAD but it
seems all the coding they provide is in VBA.
Title: Re: ActiveX...
Post by: Lee Mac on January 13, 2010, 03:25:32 PM
True, the ACAD help is written for VBA, but the argument types and their order do still apply, so this does serve as a good reference.

AfraLISP  (http://www.afralisp.net/)has a good section on some parts of Visual LISP, and there is also this (http://augiru.augi.com/content/library/au07/data/paper/CP311-4.pdf), posted recently which I think is superb.


Hope this helps,

Lee
Title: Re: ActiveX...
Post by: T.Willey on January 13, 2010, 04:01:17 PM
This might be of some help also

http://carnet-de-cablage.chez-alice.fr/Doc/lakose_The_Visual_LISP_Developers_Bible.pdf
Title: Re: ActiveX...
Post by: dgorsman on January 13, 2010, 05:08:27 PM
One of the first things to wrap your head around is the object model.  That stays the same, the only thing that changes is how you make use of it.  Thus, getting a property of a line in VBA is test_list.Layer as opposed to (vla-get-Layer test_line) in LISP.
Title: Re: ActiveX...
Post by: AWW on January 13, 2010, 05:11:44 PM
Found what I was looking for: http://asmitools.com/Files/AutoLISP_Help/AutoLISP%20Help.html
ActiveX written as ActiveX! :-D
Title: Re: ActiveX...
Post by: AWW on January 15, 2010, 04:40:54 PM
I am starting to understand the structure of Active x.  :-) However, I am having trouble grasping the safearray fuction. I believe that it is the Active X version of list, correct? If so, then vla-make-safearray is used to make a list and vla-safearray-fill is to populate the safearray (list). What exactly is a dimension in the safearry function and the l-bound and u-bound argument has me baffled. Also, how would I pass 3 points into a safearry? I have 3 points: 2 specified by user input and one specifed by polar function. Thanks for any clarification on this function.
Title: Re: ActiveX...
Post by: Lee Mac on January 15, 2010, 04:43:25 PM
See here

http://www.theswamp.org/index.php?topic=31674.0 (http://www.theswamp.org/index.php?topic=31674.0)
Title: Re: ActiveX...
Post by: Lee Mac on January 15, 2010, 04:48:34 PM
Another good one:

http://www.theswamp.org/index.php?topic=29248.0 (http://www.theswamp.org/index.php?topic=29248.0)