Question about GetChangeTypeElementAddition

Question about GetChangeTypeElementAddition

Organon
Advisor Advisor
344 Views
2 Replies
Message 1 of 3

Question about GetChangeTypeElementAddition

Organon
Advisor
Advisor

Hi everyone,

 

I've created an updater for rebar that uses the GetChangeTypeElementAddition change type, and it works fine for rebars created by placement and free form, but it doesn't work for rebars by sketch. I think the updater is triggered on the first transaction and not on the last one, so I can't get the rebar because it's not fully created yet.

 

RebarUpdater.png

 
Can anyone confirm this? Thanks.
 
Regards,

Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube
0 Likes
Accepted solutions (1)
345 Views
2 Replies
Replies (2)
Message 2 of 3

ricaun
Advisor
Advisor
Accepted solution

I believe the GetChangeTypeElementAddition trigger only when the object is created as you said, on the first transaction.

 

Probably you need to use the GetChangeTypeGeometry, supposed gonna trigger when you change the sketch or only on the Finish sketch transaction.

 

See yaa

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 3

Organon
Advisor
Advisor

Hi @ricaun,

 

I need to use GetChangeTypeElementAddition but GetChangeTypeGeometry is useful to me as well, so I'll use both:

ChangeType.ConcatenateChangeTypes(Element.GetChangeTypeElementAddition(), Element.GetChangeTypeGeometry())

 

Thanks.


Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube