API function for opening project is c:wd_makeproj_current.
By opening some other project, active project is closed.
Again, this is LISP function.
I'm not sure, but in Visual Basic something like
ThisDrawing.SendCommand ("(c:wd_makeproj_current wdpfnam)") should be used,
where wdpfnam is full path of project ".wdp" file name (this project does not have to be displayed in the list i.e. does not have to be "open").
I said I would follow this thread as I am interested. I looked up what the code for what you are doing amd I ask: WHY?
ACE is data base driven. It will let you edit drawings using ACAD commands BUT it will "break" the data base.
This is from accidental experience and more learned contributers to this forum.
I have written FORTRAN, assembler for various chips and computers, HTML.
I am sure you will achieve what you are aiming toi achieve but will ACE work? IMHO a big NO. I am willing to listen and learn.
If you need non ACE users to see drawings then get a suitable free viewer.
Cheers with interest John Q
It works well..
I want to close a project,instead of closing manually.
To close a project, right-click the project name and select Close.
I want to close project using command line function..can?