Journal for listing modified interpart expressions

Hello,
I need to write a journal that would list interpart expressions that have been modified in current session.

Do you have any idea how could I identify expressions that have been modified after opening the part or last save?

Best regards,
Mod

I don't know of an API command that will track and report modified interpart expressions (of course this doesn't mean that such a command doesn't exist).

Assuming there is no API command to do this: one possible solution would be to create one journal that would export the expressions to file (.ExportToFile) when the part was opened or saved (this journal could be run automatically with some menuscript). A second journal could be run on command that would compare the saved expression file (created with the first journal) with the current values and report which ones changed (if any).

Thank you, I thought about that workaround. .ExportToFile exports expressions to the hard drive. It would be more convenient for me to export this file into the TC folder of the current part revision (or create a text dataset with expressions). Then, during saving I would compare existing expressions to the exported dataset and overwrite it (with warning about changes or not). Do you know how can I export this (or for example, Listing Window log) directly into TC?

Unfortunately, I have not done much work with TC and journaling, so I do not know how to save a text file to or retrieve one from TC.

As I've been working on this for last few days, I'll paste a post from another forum that I asked. Here's what I've found out about identifying expressions modified in current session:

Information -> Part -> Modifications would be perfect for me to acquire that information, however this isn't recorded by journal and I believe it can't be used there. Or maybe there's a way?

Another option that I tried is GetWorkPartWithPartRelationsXml() method which gets me really lot of information about interpart expressions - the ones that I am interested in.

Just a small part of a log from GetWorkPartWithPartRelationsXml would look like this:

ObjectObjectRelations
id="8"
targetObject="6"
sourceObject="7"
sourceIsPio="false"
partRelation="3"
modifiedDate="21-Feb-2018 16:33"
lastModifiedBy="myusername"
isPublished="false"
status="active_utd"
type="expression"

By id's of objects I can identify what expression it is, however I don't know the logic standing behind modifiedDate parameter. It does not update every time I change something, sometimes it does after saving child or parent component, sometimes it won't update even if every involved part is saved numerous times with a driving expressin change each time. It looks like it doesn't want to update too often, but I don't see a path there.

I will appreciate any help, thank you.

Mod