AutoCAD Electrical General Discussion

Reply
Valued Contributor
Josdc
Posts: 76
Registered: ‎08-23-2005
Message 1 of 5 (142 Views)

Close Project (API)

142 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\)
Message 2 of 5 (142 Views)

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
Josdc
Posts: 76
Registered: ‎08-23-2005
Message 3 of 5 (142 Views)

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
pjfontes
Posts: 98
Registered: ‎03-17-2008
Message 4 of 5 (82 Views)

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
pjfontes
Posts: 98
Registered: ‎03-17-2008
Message 5 of 5 (80 Views)

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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

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.

Ask the Community