Check-in as someone else

Check-in as someone else

xdumontnti
Collaborator Collaborator
765 Views
3 Replies
Message 1 of 4

Check-in as someone else

xdumontnti
Collaborator
Collaborator

Hi all,

 

I have to develop an add-in who will get a derived IPT file from the Vault (link with a part already in the Vault too) and copy it, change a parameters and then check-in the new part to Vault.

 

But, the folder where this part will be added is read-only for everyone excepted for a specific user who as read-write rights.

 

The senario: I'm logged in with a user who has only read right on the folder.

I have an empty IAM opened.

Now, the add-in must working as the following:

1- Get the derived part + the base part.

2-Save as the derived part

3- Change a parameters Fx in this new IPT.

4- Check-in this new IPT as the special user who as read-write rights on the folder

5- Place it on the assembly.

 

Step 2 + 3 + 5 are working actually without Vault through an Inventor add-in.

 

Step 1 + 4 must be develop in order to use this with Vault but is it possible to do this kind of "check-in as someone else"?

 

Thanks in advance for your precious help.

 

 

 

0 Likes
766 Views
3 Replies
Replies (3)
Message 2 of 4

minkd
Alumni
Alumni

To check-in as another user, you will also need to check-out as that user.

 

To do anything as a another user you will need to sign-in to vault as that user. There is no way to bypass that.

 

Before you go down that road, you should know that doing so will require an additional license. Licenses are tied to the user & machine where they are logging in from. So if your add-in is running on n desktops, you could need up to n additional licenses (depending on how many will be trying this operation simultaneously).

 

-Dave



Dave Mink
Fusion Lifecycle
Autodesk, Inc.
0 Likes
Message 3 of 4

xdumontnti
Collaborator
Collaborator

Hi Dave, thanks for your answer.

 

Yes I and my customer are aware of the license effect.

 

For the check-in operation (it's always a new file then it's an addfile method), do I need to construct the fileassociation + BOM + create the DWF or is there a "All in One" method throught the Vault add-in for Inventor?

0 Likes
Message 4 of 4

minkd
Alumni
Alumni

I'm not positive, but I don't think the Inventor Vault Add-in provides any kind of "all in one" method to resolve child dependencies, extract the BOM and generate a DWF.  However, I work on the server so my API knowledge doesn't extend much past the web-service API. Maybe someone else knows for sure?

 

The dependencies are needed for a number of workflows, so it's pretty important to provide those. The BOM is necessary if you use or ever intend to use items.

 

The DWF generation can be offloaded to a Job Processor by queing a job (seperate call) if you have the job queue enabled and a machine setup to process the jobs.

 

-Dave



Dave Mink
Fusion Lifecycle
Autodesk, Inc.
0 Likes