Jump to content

Some Visual Lisp codes deal with (car(entsel)) and others (ssget -> ssname ......)


Recommended Posts

Posted

Hello.

 

Not most of Visual Lisp functions in Help books are indicating that they are requiring single selection or multiple selection like ssget function.

 

So how could I know the required selection set to each Visual lisp Function ?

 

Many Thanks.

 

Tharwat.

Posted

The help section for a particular function (eg. vla-put-constantwidth) will tell you that it needs a VLA-OBJECT/Safe Array as part of the requirements.

Posted

Which functions were you referring to Tharwat?

 

None of the VL functions will deal with entity names (except vlax-curve*), and they certainly won't specify how to obtain the required arguments, just that you supply them. :)

Posted

Usually all functions that starts with vla are not available with Cad help. Besides that, PDF books which

we couldn't find lots of undocumented functions.

 

And your example with (vla-put-constantwidth ) is more than enough for that issue.

 

Is this right ?

 

Tharwat

Posted

The help on the vla* functions is written in terms of VBA, but the argument type, number and order is still applicable to VL. To get the help, double-click on a function to highlight it and click on the beige help button (speech bubble with question mark).

Posted

Tells me exactly what the function requires...

help.png

Posted
Which functions were you referring to Tharwat?

 

None of the VL functions will deal with entity names (except vlax-curve*), and they certainly won't specify how to obtain the required arguments, just that you supply them. :)

 

Thanks indeed.

 

For example that given function by Alanjt, When I look for it in help it would drive me to the VBA which makes me confused with it,

because the function is no written completely in its part and belong to VBA.

 

So how could I know the action of that function. The same image that given by Alanjt in his last reply ?

 

Many thanks

Posted

Exactly, from the image Alan has provided:

 

(vla-put-ConstantWidth <VLA-Object> <Real>)

Posted

So do all VBA functions all used by Visual Lisp with the start of (vla-put- ......) or (vla-get-.......) for example ?

 

That's what I realized while searching for functions that are not existed in VL division till now.

 

Regards.

Posted

Thanks Lee for that reference.

 

And here what I have been looking for as shown in the attached image.

 

Best regards,

 

Tharwat

Vla.jpg

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