Skip to content

Commit

Permalink
Add new output data
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgGrebenyuk committed May 2, 2022
1 parent 45b1f96 commit 16246d9
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions src/renga_debug/renga_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,43 @@
#include <iostream>
#include "renga_core.h"
#include <windows.h>
#include <filesystem>
#include <comdef.h>
namespace fs = std::filesystem;

int main()
{
setlocale(LC_ALL, "");
//TestHouse_Offset problem with getting props in IBuildingInfoPtr
std::string path_to_files_in_dir;
std::cout << "Press path to folder with Renga projects (rnp):" << std::endl;
std::cout << "Ââåäèòå ïóòü äî ïàïêè ñ ôàéëàìè ïðîåêòîâ (rnp):" << std::endl;
std::cout << "Ââåäèòå ïóòü äî ïàïêè ñ ôàéëàìè ïðîåêòîâ (rnp):\n" << std::endl;
std::cin >> path_to_files_in_dir;
std::cout << std::endl;

int conv_type;
std::cout << "Press type of project conversion (0: Navisworks)" << std::endl;
std::cout << "Óêàæèòå òèï äëÿ ïðåîáðàçîâàíèÿ ïðîåêòà (0: Navisworks)" << std::endl;
std::cout << "Óêàæèòå òèï äëÿ ïðåîáðàçîâàíèÿ ïðîåêòà (0: Navisworks)\n" << std::endl;
std::cin >> conv_type;
std::cout << std::endl;

for (const auto& entry : fs::directory_iterator(path_to_files_in_dir))
{
fs::path one_path = entry.path();
if (one_path.has_extension() && one_path.extension() == ".rnp")
{
std::cout << "Start for file " << one_path << std::endl;
_bstr_t str_path(one_path.c_str());
const char* new_path = str_path;
default_start(new_path, 0);
std::cout << "End!\n";
}
}


//std::string current_path = "E:\\VC_Projects\\BDC_2022\\20_Models\\Renga\\EKB-3-Ãàðàæ-ÀÐ.rnp"; //"ttage.rnp" E:\\Temp\\BridgeEx.rnp"
//


std::string current_path = "E:\\VC_Projects\\BDC_2022\\20_Models\\Renga\\EKB-3-Ãàðàæ-ÀÐ.rnp"; //"ttage.rnp" E:\\Temp\\BridgeEx.rnp"

const char* new_path = current_path.c_str();

default_start(new_path, 0);

std::cout << "End!\n";
return 0;
}

0 comments on commit 16246d9

Please sign in to comment.