Use NewCrossFitting() to connect four pipes which in different types,the new family instance of a cross fitting belong to which familySymbol?

Use NewCrossFitting() to connect four pipes which in different types,the new family instance of a cross fitting belong to which familySymbol?

1240904365
Enthusiast Enthusiast
675 Views
4 Replies
Message 1 of 5

Use NewCrossFitting() to connect four pipes which in different types,the new family instance of a cross fitting belong to which familySymbol?

1240904365
Enthusiast
Enthusiast

Use NewCrossFitting() to connect four pipes which in different types,the new family instance of a cross fitting belong to which familySymbol?

0 Likes
Accepted solutions (2)
676 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Implement the desire model manually through the user interface. When you are happy with it, use RevitLookup to analyse the result and find out:

  

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

IbrahimNaeem
Advocate
Advocate
Accepted solution

1- let the user select the pipe whose the desired cross family type is defined in its routing preferences prior to hitting the tool button. 

2- extract the desired cross family type. 

3- do the NewCrossFitting()

4- use FamilyInstance.ChangeTypeId(desiredFamilyType.Id) method to change the created cross to the desired cross family. 

 

Hope this helps!

0 Likes
Message 4 of 5

1240904365
Enthusiast
Enthusiast

Hi,I mean i need to make sure the  pipe fittings to be generated is the type i want,when the  four pipes in different pipeType ,Instead of i don't know how to use LookUp to check what fittingType it generated.When i use NewCrossFitting,i find that what fittingType it generated seems to be uncontrolled,Maybe it has something to do with the order of parameters?

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

I believe you can simply place the desired fittings first and then connect their connectors to automatically generate the types between them. Read the series of experiments to implement a rolling pipe offset:

  

http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes