AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Close Project (API)

4 REPLIES 4
Reply
Message 1 of 5
Josdc
421 Views, 4 Replies

Close Project (API)

I would like to close a project (remove it from the project manager) through VBA (or lisp if VBA doesn't allow this). Is this possible?

Thanks in advance,

Jos
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Josdc

There is an undocumented lisp call that I believe will do what you want:

(ace_closeproject ProjectNameAndPath ReservedAlwaysZero)

ProjectNameAndPath - String containing the full name and path for the
project to close

ReservedAlwaysZero - Integer - Set to 0



Sample:

(ace_closeproject "c:/My Projects/Project.wdp" 0)

Since this is undocumented, it could change without notice in the future, so
be aware of that.

Regards,
Mike

wrote in message news:5814939@discussion.autodesk.com...
I would like to close a project (remove it from the project manager) through
VBA (or lisp if VBA doesn't allow this). Is this possible?

Thanks in advance,

Jos
Message 3 of 5
Josdc
in reply to: Josdc

Mike,

Thank you very much. This is exactly what I was looking for.

Jos
Message 4 of 5
pjfontes
in reply to: Josdc

Is there an update to this API call?  I can't seem to get it to work...

Message 5 of 5
pjfontes
in reply to: pjfontes

nm, you can only close a project if it's Not the Active project..

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost