Costinbos77 Posted November 6, 2012 Share Posted November 6, 2012 How do I know which parameters need to be put in expressions visual lisp? For example, I took the properties and methods available: # (setq vgad (vla-get-ActiveDocument (vlax-get-acad-object))) (vlax-dump-object vgad T) # Methods available to find: ........... , Open (2) , PurgeAll () , Regen (1) , Save () , SaveAs (3) ........... where what is written between parentheses (), is the number of parameters required for setting: (vla-open 1? 2? 3?) or (vla-save?) Where do I find what to use? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted November 6, 2012 Share Posted November 6, 2012 A good start here from Lee . Quote Link to comment Share on other sites More sharing options...
Tharwat Posted November 6, 2012 Share Posted November 6, 2012 Follow the rules of the Forum CODE POSTING GUIDLINES Quote Link to comment Share on other sites More sharing options...
Costinbos77 Posted November 6, 2012 Author Share Posted November 6, 2012 More details see here: http://www.cadtutor.net/forum/showthread.php?33295-Help-for-VLA-*-functions-(where-to-find) Costin Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 6, 2012 Share Posted November 6, 2012 2013 ActiveX Documentation Quote Link to comment Share on other sites More sharing options...
Costinbos77 Posted November 6, 2012 Author Share Posted November 6, 2012 Thank you very much. It is difficult to work this way, but if that is the only way ... Thank you very much again. Costin Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 6, 2012 Share Posted November 6, 2012 Don't worry, after some practice you soon learn the parameters required by each method and, for commonly used methods, seldom need to reference the documentation. Quote Link to comment Share on other sites More sharing options...
Costinbos77 Posted November 6, 2012 Author Share Posted November 6, 2012 (edited) Such documentation found for lisp, not only for vba ? Edited November 10, 2012 by Costinbos77 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 6, 2012 Share Posted November 6, 2012 Such documentation found for lisp, not only for vb? No ActiveX Documentation was ever released specifically for Visual LISP, only VBA; though the number of parameters, their order and data type all translate directly for use with Visual LISP. Also, in the 2013 ActiveX Documentation (linked above) there are Visual LISP examples alongside the VB examples. Quote Link to comment Share on other sites More sharing options...
Costinbos77 Posted November 6, 2012 Author Share Posted November 6, 2012 I think this is the key Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 6, 2012 Share Posted November 6, 2012 I think this is the key That is the AutoCAD Object Model, yes. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted November 6, 2012 Share Posted November 6, 2012 2013 ActiveX Documentation I am unsure if this has been updated for 2013 or not, but I have found this site to be invaluable: http://entercad.ru/acadauto.en/ Quote Link to comment Share on other sites More sharing options...
Costinbos77 Posted November 6, 2012 Author Share Posted November 6, 2012 It is very good because it related directly to the point. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.