×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

sending data between VBA and lisp

sending data between VBA and lisp

sending data between VBA and lisp

(OP)
Hi all.
Can anyone help me with an ongoing problem?  I'm using a vba form called from lisp, but am having trouble passing data back to lisp from this form.
I have used the users1-s5 variables successfully in the past but this particular form has about 20 input fields that I need to feed back.  Anyone found a solution for a similar problem?

RE: sending data between VBA and lisp

how about writing to a temporary file ?

just write the data out in vba
read the data in via Lisp
kill the temporary file

or string the items together in a single list, then use one of the USERSx variable to hold the single string (list) then you will need to parse the list when reading it back in


http://www.resourcecad.com ~ for your CAD solutions

RE: sending data between VBA and lisp

(OP)
Thanks Hendie.

Yeah, I'm currently writing out to a temp text and then reading/deleting this temp file within lisp.  I've thought of the single list option too, but for reasons too complicated to explain simply it got too messy.
I was hoping to find a simple solution that could take place within acad (ie, no external file needed) but I can't seem to find a solution.  It's one of those problems that I know other people must have faced before but I can't seem to find a single instance mentioned anywhere online.

Thanks for your thoughts though.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources