piston.asmt file is running correctly

This commit is contained in:
Aik-Siong Koh
2023-07-30 12:08:39 -06:00
parent 225966dced
commit 6ef4789eca
142 changed files with 3177 additions and 1144 deletions

View File

@@ -1,13 +1,35 @@
#include "ExternalSystem.h"
#include "CADSystem.h"
#include "ASMTAssembly.h"
#include "System.h"
using namespace MbD;
void MbD::ExternalSystem::preMbDrun()
void MbD::ExternalSystem::preMbDrun(std::shared_ptr<System> mbdSys)
{
if (cadSystem) {
cadSystem->preMbDrun(mbdSys);
}
else if (asmtAssembly) {
asmtAssembly->preMbDrun(mbdSys);
}
else {
assert(false);
}
}
void MbD::ExternalSystem::outputFor(AnalysisType type)
{
if (cadSystem) {
cadSystem->updateFromMbD();
}
else if (asmtAssembly) {
asmtAssembly->updateFromMbD();
asmtAssembly->compareResults(type);
}
else {
assert(false);
}
}
void MbD::ExternalSystem::logString(std::string& str)