Jump to content

Passing variables from VBA to Lisp


TomJandro

Recommended Posts

Hi everyone.

First off, let me say that I have almost no experience with Lisp but I am proficient with VB/VBA.

I am writing a VBA program to help our engineering staff automate our drawing tasks. We are using AutoCAD electrical 2006.

I am trying to use the AutoCAD API to interface to the electrical 'functions'.

One of the API calls I am trying to use is (c:ace_add_dwg_to_project nil (list nil nil nil nil))).

In VBA I am using it in the following syntax - ThisDrawing.SendCommand "(setq ent_return (c:ace_add_dwg_to_project nil (list nil nil nil nil))) ".

My goal is to replace (list nil nil nil nil) with values passed from several text boxes that are on a form in VBA. This is the point at which I am lost.

 

Can anyone help?

 

Thanks in advance.

Tom

Link to comment
Share on other sites

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