Prompt the user for input!?

Prompt the user for input!?

Anonymous
Not applicable
232 Views
1 Reply
Message 1 of 2

Prompt the user for input!?

Anonymous
Not applicable
Hi!
I want to prompt the user to enter either a string or select an object.
Does anyone have any idea???

Thanks.
0 Likes
233 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi,

To prompt to select an object you cold try the following VBA code:

Dim PickedPoint As Variant
Dim PickedObj As AcadObject

ThisDrawing.Utility.GetEntity PickedObj, PickedPoint, "Select an object"

To prompt for a string try:

InputBox "Enter String"


Cheers,

Russell.



"J.K." wrote in message
news:25782131DAACC051C7FB8D9B9CD0202E@in.WebX.maYIadrTaRb...
> Hi!
> I want to prompt the user to enter either a string or select an object.
> Does anyone have any idea???
>
> Thanks.
>
>
0 Likes