Deleting GroupType Error.

Deleting GroupType Error.

Anonymous
Not applicable
547 Views
1 Reply
Message 1 of 2

Deleting GroupType Error.

Anonymous
Not applicable

Hi, I am having a lot of trouble eliminating an error when deleting a grouptype programmatically after the groupinstance was deleted from the model.

This dis not happen in all cases... this only happens when the grouptype is composed of groups like the Grouptype highlighted in Yellow in fig 1, bellow.

 

 

 

deletebefore.PNG

fig 1.

first I select the group instance to delete in fig 1.

 

 

 

deleteafter.PNG

fig 2.

Fig 2 is the model with the instance deleted.

 

deletederror.PNG

fig 3.

 

Here is the error I am getting once I try to delete the Grouptype "With Radiator" (highlighted in fig 1.). I am using a try/catch block to do this.

 

because my problem only stems from deleting a group composed of groups(like "With Radiator")... I want to be able to identify groups where this is the case. I can't see anything in the GroupType or ElementType classes which would allow me do this.

 

Thank you in advance,

 

Mendo

0 Likes
Accepted solutions (1)
548 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

I managed to solve this by hiding the warnings. (Sorry, I did not know this was possible).

 

I figured this out with the help of these links.

 

http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-52A45CC1-3BB4-48B4-BFC7-F6F8666C2AA4

 

http://forums.autodesk.com/t5/revit-api/supressing-warning-pop-ups/m-p/4764741/highlight/true#M5401

 

 

0 Likes