Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change parameters with IUpdater

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
zimarrio
394 Views, 3 Replies

Change parameters with IUpdater

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

 

 

3 REPLIES 3
Message 2 of 4
Scott_Wilson
in reply to: zimarrio

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
zimarrio
in reply to: Scott_Wilson

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

 

Message 4 of 4
PhillipM
in reply to: zimarrio

Nice trick.  I will remeber that one 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community