Dynamo scripts - change model groups types

Dynamo scripts - change model groups types

467600
Observer Observer
945 Views
1 Reply
Message 1 of 2

Dynamo scripts - change model groups types

467600
Observer
Observer

hey,

 

I have been writing a dynamo script for a few weeks now. With the script, I want to select an individual model group and modify it to another type of model group. To my knowledge, this is not possible with a "Dynamo note". Would anyone know how I could solve this with a dynamo custom code script or with a revit api script? And is it possible to change the current model type to another one by using images?

Thanks in advance!

Bart

0 Likes
946 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

I see no reason why this should not be possible in a Dynamo node. All you need to do is call the Element class ChangeTypeId method:

 

https://www.revitapidocs.com/2022/7f875907-d138-999a-a8fb-83717ed07680.htm

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes