Jump to content

Recommended Posts

Posted

Hi folks,

 

Does anyone have any idea how to get the content library as a vla-object?

 

Thanks,

SOliver.

Posted

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)

 

VLisp - Apropos.png

 

 

3- In the dialog box, enter "vla-" in edit box, then press OK. (Picture #2)

 

vlisp - Apropos Options.png

 

 

4- You will see a window containing the list of desired functions and variables, etc. (Picture #3)

 

Apropos Results.png

Posted

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

Posted
... 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

Posted

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 Method

Creates 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

Posted

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

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...