SOliver Posted April 18, 2011 Posted April 18, 2011 Hi folks, Does anyone have any idea how to get the content library as a vla-object? Thanks, SOliver. Quote
Ahankhah Posted April 19, 2011 Posted April 19, 2011 I don't know if I understand correctly your mean, but you can see all visual lisp functions starting with vla- in this manner: 1- Enter Visual Lisp Window (if you are not in). 2- Select Apropos botton from toolbar. (Picture #1) 3- In the dialog box, enter "vla-" in edit box, then press OK. (Picture #2) 4- You will see a window containing the list of desired functions and variables, etc. (Picture #3) Quote
MSasu Posted April 19, 2011 Posted April 19, 2011 Also, along with what Ahankhah suggesteed, if you have access to an AutoCAD release older than 2010 check the VBA help file for Object, Properties and Methods. Regards, Mircea Quote
Ahankhah Posted April 19, 2011 Posted April 19, 2011 ... if you have access to an AutoCAD release older than 2010 check the VBA help file for Object, Properties and Methods. Regards, Mircea msasu, but I see just helps for VBA and not any object, property or method relating to AutoCAD? Should you guide me, if I am in wrong position? Mehrdad Quote
MSasu Posted April 19, 2011 Posted April 19, 2011 For AutoCAD bigger than 2010 you should have the VBA extension (discontinued from this version) installed in order to have access to VBA. Not sure if is available for version 2012. In VBA help you can find detalied information that match the VLA-* functions syntax. VBA help: AddCircle MethodCreates a circle given a center point and radius. RetVal = object.AddCircle(Center, Radius) VLA-AddCircle example: (setq *ModelSpace* (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))) (vla-AddCircle *ModelSpace* (vlax-3D-point '(0.0 0.0)) 25.0) Regards, Mircea Quote
Ahankhah Posted April 19, 2011 Posted April 19, 2011 Mircea, After highlightng a word (like: thisdrawing.ModelSpace.AddCircle), then pressing Ctrl+F1, I found the your mentioned help. Thank you very much for this offer:D. Mehrdad Quote
SOliver Posted April 19, 2011 Author Posted April 19, 2011 Sorry folks I should have been clearer about what I'm looking for. I want to get the contents library vla-object not alist of it's methods or members. For example if Iwere looking for the active document I'd use vla-get-activeDocument. Lol I've been in the lisp game for over five years; I'd be as well hangin' the towel up if I'd not stumbled upon aprops by now. mssau makes a good point regarding versions of acd Thanks. Quote
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.