Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check in file in a shared project

11 REPLIES 11
Reply
Message 1 of 12
afirmation
889 Views, 11 Replies

Check in file in a shared project

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?

11 REPLIES 11
Message 2 of 12
afirmation
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?

Message 3 of 12
Rene-J
in reply to: afirmation
Message 4 of 12
afirmation
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

Message 5 of 12
Rene-J
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

 

Message 6 of 12
afirmation
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.

Message 7 of 12
Rene-J
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

 

Message 8 of 12
afirmation
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.

Message 9 of 12
Rene-J
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

 

 

Message 10 of 12
afirmation
in reply to: Rene-J

Any ideea how can I do that?

Message 11 of 12
Rene-J
in reply to: Rene-J

Something more about Semi isolate

If the file in your workspace is changed, you have to copy the file

from workspace to the server location before checked in .

 

René J

 

Message 12 of 12
Rene-J
in reply to: afirmation

you should probably back to ApprenticeServe, make a exe file with the check out code
you can call  the exe file from the addin see.

 

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/fullfilename/m-p/1809937/highlight/tru...

 

René J

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report