No iProperty Change event fired for iPart row change

<?xml encoding=”UTF-8″>By Adam Nagy

If you have an iLogic rule then you can hook it up to various events – one of those is iProperty Change:

IPropertyChange

Though ideally this event should fire even when the iProperty changes as a result of an iPart factory row change, it does not. It’s a limitation in the Inventor API.

However, the following workaround is available.

First of all, you might have to add a new user parameter to the part just for this purpose:

IPropertyChange2

Add this parameter to the iPart table and make sure its value changes whenever the iProperty (in this case Title) changes – i.e. it needs to have different values in each row. 

IPropertyChange3

 

Then add a line like this to the rule:

trigger = UserParameter

Even though the purpose of the rule is to work with the iProperty, you can use the parameter change to trigger it.

IPropertyChange4

Attached is the sample part file:  Download IPartTest


Comments

2 responses to “No iProperty Change event fired for iPart row change”

  1. chris harbour Avatar
    chris harbour

    the example file is newer than my inventor version r2015

  2. I don’t have that version installed at the moment.
    Could you just follow the above steps? I “think” it contains everything you need.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading