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: 

Create New Union Fitting

2 REPLIES 2
Reply
Message 1 of 3
RickyBell
1871 Views, 2 Replies

Create New Union Fitting

I have a method which draws two pieces of pipe and puts a union fitting in between.

 

My problem is that the union fitting, while retaining it's connection, is showing up as the wrong size.  (ex.  12" fitting on a 6" pipe)

 

The family I'm using is a custom family which uses a lookup table for dimensional data.  There is only one type in this family.  The lookup table drives off the "Diameter" parameter.  If I try setting the "Diameter" parameter after the family is placed, it returns a "read only" message.

 

I've tried duplicating the family type, changing the size, and placing the family instance but that is not the ideal outcome.  I'd rather not have multiple types for a family using a lookup table.

 

Any help is appreciated!

2 REPLIES 2
Message 2 of 3
RickyBell
in reply to: RickyBell

After more playing around, I'm still nowhere.  Here is the method I use to create the Union Connection.

 

FamilyInstance newFitting = doc.Create.NewUnionFitting(unionCon1, unionCon2);

 

It creates the union with connections.  But the variable 'newFitting' always comes back as null.  Has the fitting not yet been created?  

 

doc.regenerate() doesn't help.

 

Thanks!

Message 3 of 3
RickyBell
in reply to: RickyBell

*UPDATE - I've been able to get the Id's of the elements that need to be changed.  So, I guess the question is now:  

 

How do you change the size of a parametric family through the API?

 

Thanks.

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