Create FabricationPart using API

Create FabricationPart using API

TigerEUEBW
Participant Participant
461 Views
1 Reply
Message 1 of 2

Create FabricationPart using API

TigerEUEBW
Participant
Participant

Hi, I am trying to create a FabricationPart using the API. I was able to retrieve the desired type for my FabricationPart (just the default Straight duct I downloaded from Autodesk cloud) but I'm not sure how to create it in Revit. I have looked into the create method for FabricationPart but the input is a FabricationServiceButton. I'm not sure how to grab the FabricationServiceButton - I have tried looking into RevitLookUp database but there is nothing for FabricationServiceButton.

 

I'm assuming this is the button that shows up when I open the MEP Fabrication Parts menu but I don't know how to retrieve it. Is there an easier way to create a FabricationPart? Or should I just use the .rfa family?

 

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

Moustafa_K
Collaborator
Collaborator
Accepted solution

your first point to start looking for an answer is Revit sample SDK. there are almost an example of every know how.

see this example if it helps

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes