Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm trying to read a certain iProperty, so I can check if my part/assembly is a valid file to edit via code.
This is what i get, but when i'm debugging it kills me at:
oPropSet = oDoc.Item("Inventor Document Summary Information")
What do i need to change?
I also tried inserting this code instead of the text, same result.
{D5CDD502-2E9C-101B-9397-08002B2CF9AE}
My code:
' Get the active document.
Dim oDoc As Document
oDoc = _invApp.ActiveDocument
' Get a reference to the "Inventor Document Summary Information" PropertySet
Dim oPropSet As PropertySet
oPropSet = oDoc.Item("Inventor Document Summary Information")
' Get the Category property.
Dim oCat As [Property]
oCat = oPropSet.Item("Category")
MsgBox(oCat.Value())
Thanks for the help!
Inventor 2013
Visual Studio 2010
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2
Solved! Go to Solution.