ilogic to open engineers notes

ilogic to open engineers notes

tom_rafferty1234
Participant Participant
503 Views
5 Replies
Message 1 of 6

ilogic to open engineers notes

tom_rafferty1234
Participant
Participant

Is there a way to use ilogic to open the engineers notebook?

 

I have added a custom user guide to one of our more complex models, currently embedded into the engineers notes section in the master part.  Ideally I'd like to add a button to the main form called "User Guide", and when you click this button it opens up the engineers notebook, displaying the user guide.


I'm aware I could use ilogic to open an external file, but I don't really want to link to an external file (if possible).

0 Likes
504 Views
5 Replies
Replies (5)
Message 2 of 6

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Why not referring to an embedded file?

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 6

tom_rafferty1234
Participant
Participant
As long as the file is embedded (and not an external file) then this would be ok. How can I embed a .docx file into an .ipt?


0 Likes
Message 4 of 6

tom_rafferty1234
Participant
Participant

I have resolved this using an embedded file as suggested.


Used Manage, Insert Object to embed a word document.

 

Code to run the userguide:

 

Imports Inventor.OLEDocumentTypeEnum

WordApp = CreateObject("Word.Application")
Dim WordFile As ReferencedOLEFileDescriptor
WordFile = ThisDoc.Document.ReferencedOLEFileDescriptors.Item(1)
WordFile.Activate(kEditOpenOLEVerb, WordApp)

0 Likes
Message 5 of 6

bradeneuropeArthur
Mentor
Mentor
Dim objDocument As DrawingDocument
    Set objDocument = ThisApplication.ActiveDocument
    
    Dim objReferenceOLE As ReferencedOLEFileDescriptor

                Set objReferenceOLE = objDocument.ReferencedOLEFileDescriptors.Add("Your path")
            End If

        End If

End Sub

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 6 of 6

bradeneuropeArthur
Mentor
Mentor

And this to open:

 

Sub OpenEmbeddedfile()
Dim oApp As Inventor.Application
Set oApp = ThisApplication
Dim oOleRef As ReferencedOLEFileDescriptor
Set oOleRef = oApp.ActiveDocument.ReferencedOLEFileDescriptors.Item(1)
Dim owb As Object
Call oOleRef.Activate(kEditOpenOLEVerb, owb)

End Sub

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