Change parameters with IUpdater

Change parameters with IUpdater

Anonymous
Not applicable
496 Views
3 Replies
Message 1 of 4

Change parameters with IUpdater

Anonymous
Not applicable

Hi,

 

I wrote an IUpdater that is triggered when a level is changed. What it does is setting some shared parameters in the floors associated with this level in order to change the text displayed on the floor tags.

The problem is that, although it updates the shared parameters, the text on the floor tags only updates if I open the view and click the floor. In other words, the parameter value is changed but the floor tag doesn't refresh until I manually click the floor element.

How can I make it update automatically?

 

Thanks

 

 

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

Anonymous
Not applicable
Accepted solution
I have noticed this before with other tags. Can't recall how or if I was
able to solve it. Maybe try moving the tag or changing one of its
properties to force Revit to update it?
Message 3 of 4

Anonymous
Not applicable

It works! 🙂

 

I move the tag and put it back where it was:

ElementTransformUtils.MoveElement(doc, t.Id, new XYZ(1, 0, 0));
ElementTransformUtils.MoveElement(doc, t.Id, new XYZ(-1, 0, 0));

 

Thanks Scott

 

0 Likes
Message 4 of 4

PhillipM
Advocate
Advocate

Nice trick.  I will remeber that one 🙂

0 Likes