Set SetElementOverrides inside an IUpdater

Set SetElementOverrides inside an IUpdater

atir5UTNF
Advocate Advocate
108 Views
2 Replies
Message 1 of 3

Set SetElementOverrides inside an IUpdater

atir5UTNF
Advocate
Advocate

Hi,

Is it possible to set SetElementOverrides (e.g., change color etc..) inside an updater?
For some reason this line causes my updater to fail.

If I skip this line, it works.

 

Thanks.

0 Likes
Accepted solutions (1)
109 Views
2 Replies
Replies (2)
Message 2 of 3

ricaun
Advisor
Advisor

I suppose is possible, never tried.

 

What error/exception happens in the updater when you use SetElementOverrides? And a sample code with your update Execute(UpdaterData data) method would help.

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 3

atir5UTNF
Advocate
Advocate
Accepted solution

Yes, it turns out it's possible.

I tried writing a simple example to send you, and it worked there.

The issue on my actual updater was that the elements I was trying to override were created inside the updater, so I had to call  regenerate() before making changes.

 

Thanks.