Hoe to pass a point data to lisp from vba

Discussion in 'AutoCAD' started by kamalesh, Jun 10, 2004.

  1. kamalesh

    kamalesh Guest

    Hi all,

    I'm facing a problem in the use of following VBA statement

    Dim X as variant
    X = thisdrawing.utility.getpoint(, "Pick the Insertion Point:")
    thisdrawing.sendcommand(X)
    .........

    Here is my problem, Though the variable X is assigned to a
    point, AutoLISP is not detecting the actual point co-ordinates that are assigned to X.

    Can any one say where i'm wrong..

    Thanks in advance,
    Kamalesh
     
    kamalesh, Jun 10, 2004
    #1
  2. Try this:

    Dim X as variant
    X = thisdrawing.utility.getpoint(, "Pick the Insertion Point:")
    thisdrawing.sendcommand(X(0) & "," & X(1) & "," & X(2))


    Regards - Nathan
     
    Nathan Taylor, Jun 10, 2004
    #2
  3. kamalesh

    kamalesh Guest

    Dear Nathan,

    Thnx for ur kind help.
    It works for me...

    Thnx n regards,
    Kamalesh
     
    kamalesh, Jun 10, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.