Exchange an Family

Exchange an Family

Anonymous
Not applicable
1,452 Views
11 Replies
Message 1 of 12

Exchange an Family

Anonymous
Not applicable

Is it possible to exchange an Family by another Family ?

I have in my model a pipe with a valve from Honeywell, and I would like to replace it with one from Oventrop

 

First family - Honeywell with type TB10

Second family -  Oventrop  with type OT15

0 Likes
Accepted solutions (1)
1,453 Views
11 Replies
Replies (11)
Message 2 of 12

AGGilliam
Collaborator
Collaborator

Are you just trying to replace an instance of a family that's been placed? If so you can select the instance and set its Symbol property equal to the Family Type you want to switch it to.

0 Likes
Message 3 of 12

Anonymous
Not applicable

an instance 

0 Likes
Message 4 of 12

joshua.lumley
Advocate
Advocate

Have you tried match properties? 

Capture.PNG

0 Likes
Message 5 of 12

RPTHOMAS108
Mentor
Mentor

I take it from your posting history this is an API question rather than UI?

 

I'm no expert on MEP categories but the usual generic way you change one ElementType for another is by:

Element.ChangeTypeId

 

Generally if you change an ElementType from what it currently is to one from another family of the same category so be it.

 

You should review if there are any utility methods within Plumbing namespace to see if there is anything better than the above (to maintain other relationships that may be affected by such a change which I'm not aware of).

 

0 Likes
Message 6 of 12

Anonymous
Not applicable

sorry my fault 🙄, no the family is already modeled in the model, but because of the price or the customer's choice we have to change brands
so it's not an instance

0 Likes
Message 7 of 12

joshua.lumley
Advocate
Advocate

Keep the family but change the manufacturer parameter so that it appears correct in schedules.

0 Likes
Message 8 of 12

Anonymous
Not applicable

yes, but the dimensions of the valve are not the same

0 Likes
Message 9 of 12

RPTHOMAS108
Mentor
Mentor

Are you encountering problems with .ChangeTypeId (Families contain types not instances).

 

Instance based dimensions should remain the same type based ones will change to what is relevant for the type.

0 Likes
Message 10 of 12

ahmed.errazak
Enthusiast
Enthusiast

thank you all, it works

0 Likes
Message 11 of 12

joshua.lumley
Advocate
Advocate
Accepted solution

May I be the accepted solution...I put in more work than RPTHOMAS108 .

 

Cheers, 

J

(not a douchebag)

0 Likes
Message 12 of 12

ahmed.errazak
Enthusiast
Enthusiast

Sorry, I was so glad that it worked, that I didn't pay attention to my answer
Definitely Joshua and thanks again

0 Likes