AutoCAD Electrical General Discussion

AutoCAD Electrical General Discussion

Reply
Valued Contributor
76 Posts
0 Kudos
Registered: ‎08-23-2005
Post 1 of 5

Close Project (API)

147 Views, 4 Replies
01-08-2008 08:09 AM
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
*Mike Spitzer \(Autodesk\)
Post 2 of 5

Re: Close Project (API)

01-08-2008 02:17 PM 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
Valued Contributor
76 Posts
0 Kudos
Registered: ‎08-23-2005
Post 3 of 5

Re: Close Project (API)

01-10-2008 01:53 AM in reply to: Josdc
Mike,

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

Jos
Valued Contributor
98 Posts
2 Kudos
Registered: ‎03-17-2008
Post 4 of 5

Re: Close Project (API)

04-11-2012 12:51 PM in reply to: Josdc

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

Valued Contributor
98 Posts
2 Kudos
Registered: ‎03-17-2008
Post 5 of 5

Re: Close Project (API)

04-11-2012 01:06 PM in reply to: pjfontes

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.