Inventor Customization

Reply
Distinguished Contributor
afirmation
Posts: 147
Registered: ‎04-19-2006
Message 1 of 12 (498 Views)

Check in file in a shared project

498 Views, 11 Replies
07-15-2010 04:21 AM

Hello,

 

I have stumbled in the following problem. I want to rename a file that is in check in and change manually the references within its parents (drawing, assembly). When I change the reference within the drawing, after saving, the drawing becomes automatically check out by me (reserved for write). How can I check in the file automatically?

Distinguished Contributor
afirmation
Posts: 147
Registered: ‎04-19-2006
Message 2 of 12 (459 Views)

Re: Check in file in a shared project

07-26-2010 01:56 AM in reply to: afirmation

I was hoping to get an answer on this isssue at it starts to be important to me.

 

If I have a file that is ReservedForWriteByMe, how can I commit (Check In) the file in a shared project?

Distinguished Contributor
Rene-J
Posts: 305
Registered: ‎05-07-2005
Message 3 of 12 (453 Views)

Re: Check in file in a shared project

07-26-2010 03:25 AM in reply to: afirmation
Distinguished Contributor
afirmation
Posts: 147
Registered: ‎04-19-2006
Message 4 of 12 (442 Views)

Re: Check in file in a shared project

07-27-2010 12:58 AM in reply to: Rene-J

Hello,

 

I have tried your code but it does not seem to work for me. Inventor fails when I try to set ReservedForWriteByMe = false. I am not using Apprentice, but Inventor application. I have followed your steps, but maybe I am missing something. Any ideeas?

 

These documents have been checked out when saving, I am trying to put them in check in to spare the user of some problems.

 

Thanks

Irina

Distinguished Contributor
Rene-J
Posts: 305
Registered: ‎05-07-2005
Message 5 of 12 (433 Views)

Re: Check in file in a shared project

07-27-2010 01:52 AM in reply to: afirmation

What version of Inventor are you using ?

Are your project file, set as shared project ?

Is the ReservedForWriteName, the same as username in Inventor ?

 

René J

 

Distinguished Contributor
afirmation
Posts: 147
Registered: ‎04-19-2006
Message 6 of 12 (430 Views)

Re: Check in file in a shared project

07-27-2010 01:55 AM in reply to: Rene-J

I am using Inventor 10.

 

The project type is in fact Semi-Isolated.

 

And yes the ReservedForWriteName is the same as the username in Inventor.

Distinguished Contributor
Rene-J
Posts: 305
Registered: ‎05-07-2005
Message 7 of 12 (426 Views)

Re: Check in file in a shared project

07-27-2010 02:18 AM in reply to: afirmation

Have you changed  Dim invApprenticeDoc As ApprenticeServerDocument

to  dim odoc as inventor.document ?

the Apprenticeserver does not work in VBA

 

René J

 

Distinguished Contributor
afirmation
Posts: 147
Registered: ‎04-19-2006
Message 8 of 12 (424 Views)

Re: Check in file in a shared project

07-27-2010 02:20 AM in reply to: Rene-J

No, I am not using ApprenticeDocument, I am using Inventor.Document that also has all the required properties. My add-in runs in Inventor so I can not use Apprentice.

Distinguished Contributor
Rene-J
Posts: 305
Registered: ‎05-07-2005
Message 9 of 12 (415 Views)

Re: Check in file in a shared project

07-27-2010 03:07 AM in reply to: afirmation

 

If I remember right,

Shared project is reserveforwrite the files on the server.

 

Semi-Isolated  is copy the file from the server

to your workspace on your pc (like vault). 

I think you have to checkin the file on the server.

 

René J

 

 

Distinguished Contributor
afirmation
Posts: 147
Registered: ‎04-19-2006
Message 10 of 12 (404 Views)

Re: Check in file in a shared project

07-27-2010 03:40 AM in reply to: Rene-J

Any ideea how can I do that?

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
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube