Project file restriction on creation

Project file restriction on creation

cdbussey
Advocate Advocate
304 Views
2 Replies
Message 1 of 3

Project file restriction on creation

cdbussey
Advocate
Advocate

We use two main project files (ipj); one for the library, and one for production. We have users that typically work in the library, but occasionally help out in production. From time to time, they will forget to change the project file and use the wrong one. I would like to have a way to check the file being created in Vault, be checked for the correct project file, and if it's not, have a message box to prompt the user to change it to the correct one. This is an Inventor only environment. Does anyone know a way to do that with iLogic or api?

0 Likes
Accepted solutions (1)
305 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor
Accepted solution

Hi @cdbussey.  Here is one way to access which 'project' is currently active.

 

Dim sActiveProjectName As String = ThisApplication.DesignProjectManager.ActiveDesignProject.Name
MsgBox("The 'Active' Project Name = " & sActiveProjectName, vbInformation, "iLogic")

Edit:  The ActiveDesignProject also has a property called FullFileName, if that would be more appropriate.  But you obviously can not have the iLogic rule automatically switch to another Project, because all documents must be closed first.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 3

cdbussey
Advocate
Advocate

@WCrihfield Thanks very much for this...

0 Likes