Get active documents iProperties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I have an iLogic external rule where I read the directory of the currently open part and then begin opening all .ipt files in the directory.
The problem is I need to read the iProperties of the newly opened part file, but it keeps reading the initial part file's properties. I've tried closing the initial file, but that creates all sorts of problems.
I've tried using the code below, but the revision number comes up blank.
Dim oiPartDoc As PartDocument
oiPartDoc = invApp.ActiveEditObject
oiPartDoc.Activate()
RevNo = oPropsets.Item("Design Tracking Properties").ItemByPropId(47).Value 'Not sure 47 is the correct value here????
Even if I could get the above code to work, I'd rather use the iLogic system snippets.
So what am I doing wrong with the code above AND is there some way to get the newly opened part to be read by using iProperties.Value("Project", "Revision Number")?
Thanks
Mike
Master Drafter/ CAD Programmer
Using Inventor 2018