Exemplo n.º 1
0
 /// <summary>
 /// Write a Nucleus model to an ETABS file
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="model"></param>
 /// <param name="idMap"></param>
 /// <param name="options"></param>
 /// <returns></returns>
 public bool WriteModelToEtabs(FilePath filePath, Model.Model model, ref ETABSIDMappingTable idMap, ETABSConversionOptions options = null)
 {
     if (New())
     {
         if (idMap == null)
         {
             idMap = new ETABSIDMappingTable();
         }
         if (options == null)
         {
             options = new ETABSConversionOptions();
         }
         var context = new ETABSConversionContext(idMap, options);
         if (!WriteToETABS(model, context))
         {
             return(false);
         }
         return(Save(filePath));
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialise a new ETABSConversionContext with the specified ID Map and options
 /// </summary>
 /// <param name="idMap"></param>
 /// <param name="options"></param>
 public ETABSConversionContext(ETABSIDMappingTable idMap, ETABSConversionOptions options)
 {
     IDMap   = idMap;
     Options = options;
 }