MEP Fabrication Pipework (Edit Parameter or More Parameter)

MEP Fabrication Pipework (Edit Parameter or More Parameter)

ncircle_a4
Explorer Explorer
361 Views
1 Reply
Message 1 of 2

MEP Fabrication Pipework (Edit Parameter or More Parameter)

ncircle_a4
Explorer
Explorer

How can we get the values of MEP Fabrication connectors from more parameter or edit parameter selected using Revit API. Please refer to the attached snap for better understanding. 

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

jeremy_tammik
Alumni
Alumni
Accepted solution

The screen snapshot that you share is not showing parameters, but connectors. So, the title of your query has little to do with the screen snapshot. So, it is unclear what you really want. However, I can share the following code snippet that shows a possible way to access the name and group of the fabrication part connectors, which corresponds to your picture:

    

  FabricationConfiguration config
    = FabricationConfiguration
      .GetFabricationConfiguration(doc);

  ConnectorSet cons = fabrication_part.ConnectorManager.Connectors;
  foreach (Connector con in cons)
  {
    FabricationConnectorInfo infoFabCon
      = con.GetFabricationConnectorInfo();

    int id = infoFabCon.BodyConnectorId;
    string sg = config.GetFabricationConnectorGroup(id);
    string sn = config.GetFabricationConnectorName(id);
    string s = sg + "_" + sn;
  }

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes