Jump to content

how to load the dvb file automatically when autocad MAP starts


Recommended Posts

Posted

Hi,

 

first thank you all for helping me for clearing my doubts

 

but now as I have completed my project, i facing a very simple yet a very important issue how to make it load when autoCAD Map statrs and run the program when command button is clicked

 

any ideas how to......

 

I am using AutoCAD Map 2008

Posted

Maybe put something similar to this in your acaddoc.lsp file

(vl-load-com)
(vl-vbaload "c:\\[color=Red]SAVEDIR[color=Black]\\[color=Red]FILENAME.dvb[/color]")[/color][/color]

and on your command button

(vl-vbarun "[color=Red]COMMANDNAME[/color]")

Posted

See also, in the ACAD_DEV.CHM help file, the topic titled "Automatically Load and Execute VBA Projects"

Posted

but i have done whole programming in vba not in visual lisp?

Posted

I think you can create an acad.dvb file that is loaded when autocad starts but I don't remember what folder it needs to be saved in.

Posted

ACAD.dvb just needs to be in the search path and it will autoload

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