Ruta Critica

Ruta Critica

reylorente1
Collaborator Collaborator
646 Views
4 Replies
Message 1 of 5

Ruta Critica

reylorente1
Collaborator
Collaborator

Tengo la lista de las secciones de la ruta critica de mi instalación, como podría obtener ,por ejemplo el flujo o la velocidad de cada sección 

Aquí esta mi código

....

string lista = string.Empty;

.....

.....

foreach (MEPSection section in mEPSections)//recorrido de mi lista

{

   var flowsection = section.Flow;
flujoconverted = Math.Round((UnitUtils.ConvertFromInternalUnits(flowsection, UnitTypeId.LitersPerSecond)), 3).ToString();

var velsection = section.Velocity;
velconverted = Math.Round((UnitUtils.ConvertFromInternalUnits(velsection, UnitTypeId.MetersPerSecond)), 3).ToString();

}

lista += string.Format("Numero de pieza {0}, Flujo es = {1} L/s , Velocidad = {2} m/s,  flujoconverted, velconverted, ) + Environment.NewLine;

......

......

......

TaskDialog.Show("Info",  lista);

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

jeremytammik
Autodesk
Autodesk
Accepted solution

Afaik, the flow and velocity information of each section is available in the appropriate Revit element parameters.

 

I suggest that you take a close look at your system with RevitLookup to discover what information is available and where it is stored.

 

Once you know that, the parameter data can easily be read and processed by your add-in.

 



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

0 Likes
Message 3 of 5

reylorente1
Collaborator
Collaborator

Muchas gracias,ya resolví el problema,hice lo que usted me dijo,muchas gracias.

Ahora otra pregunta ,no se si es aquí donde debo hacerla,el system browsser, despues de rectificar el diámetro,y comprobar las presiones,veo que me aparece unos renglón azules a que se debe esto?.aquí le mando la imagen

Y una vez gracias

Como se ve,en el sistema ,algu reglon se ,marca en azul y otro no,por que?Como se ve,en el sistema ,algu reglon se ,marca en azul y otro no,por que?

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

Happy I was able to help and thank you for your appreciation.

 

Sorry, I have no idea about the blue marked properties; you will have to ask product support or an end user expert about that.

 

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

 

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end user support issues here.

 

You should try one of the non-API Revit product support discussion forums instead for that:

 

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not...

 

The people there are much better equipped to answer your question than us programming nerds.

 



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

0 Likes
Message 5 of 5

reylorente1
Collaborator
Collaborator

Gracias,asi lo hare

0 Likes