Apply check in/out to OLE files using iLogic?

Apply check in/out to OLE files using iLogic?

Anonymous
Not applicable
1,799 Views
9 Replies
Message 1 of 10

Apply check in/out to OLE files using iLogic?

Anonymous
Not applicable

 

Hello, first of all apologize as English is not my first language. I'll try to explain myself the best that I can.

 

I was wondering if iLogic can check in or out OLE files, but haven't found a solution yet.

 

In our company, we have written an external rule that saves the currently open IDW into PDF format, and add it as an OLE object.

We do it this way so when we check-in the drawing, the OLE file checks-in too. (And also PDF can be seen in the tabs "use" and "is used" in Vault).

 

The thing is when we update the IDW file, we have to manually change to vault tab in the browser, select all of the OLE linked files and check-out them. And only after that we can use our rule again to automaticly generate another PDF and link it to the drawing.

 

So that's basically our question...

 

Is it possible to automate this?. Check in/out an OLE object? Or maybe supress the "Read only" state of the file so we are able to overwrite it?

 

 

Thanks in advance.

 

PS: Autodesk Inventor 2017.4.2 & Vault Basic 2017.0.1

 

 

0 Likes
1,800 Views
9 Replies
Replies (9)
Message 2 of 10

bradeneuropeArthur
Mentor
Mentor
Use the commandmanager and check in file.
I can give you the complete code tommorow.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 10

bradeneuropeArthur
Mentor
Mentor
thisapplication.commandmanager.controldefinitions.item("VaultCheckInTop").Execute()

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 4 of 10

bradeneuropeArthur
Mentor
Mentor
The same with:

VaultCheckin
VaultCheckinTop
VaultCheckout
VaultCheckoutTop

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 10

Anonymous
Not applicable

 

Thanks for the answer. I knew those pieces of code, but they don't fit exactly with what we need.

 

VaultCheckOutTop - Makes check-out of all the parts in my assembly. We would like to check-out just the OLE files (PDF's... DWG's etc)

VaultCheckOut - Doesn't seem to make any effect.

 

Desired workflow is as follows....

 

We open the IDW, make changes on it and click on our external rule.

The rule checks-out linked OLE objects (PDF's and DWG's)

The rule generates and overwrites those files

The rule links those files again to the IDW

 

I guess we'll have to keep checking-out OLE links manually... I'm still searching for another solution (I thought about changing the 'read only' state of the file, so it can be overwriten?).

 

Thanks anyway!, any other help is much appreciated

 

 

0 Likes
Message 6 of 10

bradeneuropeArthur
Mentor
Mentor
I use the Vault API for this.

Therefore my question:

Are you familiar with Programming and the Vault API?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 7 of 10

Anonymous
Not applicable

Yes, but I'm using Vault Basic, and it doesn't have an API I think.

0 Likes
Message 8 of 10

Anonymous
Not applicable

 

I have changed the code to change the 'read only' attribute of the OLE files.

 

Works great with the PDF files but not with the DWG files (I guess because DWG's must be checked-in from Autocad).

Now the new PDF files generated overwrite the last ones and get linked as OLE object to the IDW, without having to check them out before.

They no longer appear in the check-in dialog box, but they seem to be instantly updated.

 

So I'm now trying to find a similar solution to the DWG's that are OLE files in our IDW's.

 

0 Likes
Message 9 of 10

bradeneuropeArthur
Mentor
Mentor
Please check for the API..

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 10 of 10

Stansteel
Enthusiast
Enthusiast

Hello,

 

I came across this thread and am wanting to do pretty much the exact same thing.  Did you ever find a solution this?

 

I have written a code that exports the drawing set and links it to the drawing.  Then the PDF goes into the Vault automatically when I check-in the drawing.  The last piece of the puzzle I need is for the PDF file to be checked out when the inventor drawing is checked out.

 

If you are willing to share, I'd appreciate it.

 

Nate

0 Likes