22 lines
455 B
C++
22 lines
455 B
C++
#include "pch.h"
|
|
|
|
#include "Creo90Manager.h"
|
|
|
|
#include "CreoOtk.h"
|
|
|
|
pfcSession_ptr Creo90Manager::GetSession() {
|
|
return pfcGetProESession();
|
|
}
|
|
|
|
pfcModel_ptr Creo90Manager::GetCurrentModel() {
|
|
pfcSession_ptr session = GetSession();
|
|
if (!session) return nullptr;
|
|
return session->GetCurrentModel();
|
|
}
|
|
|
|
pfcSolid_ptr Creo90Manager::GetCurrentSolid() {
|
|
pfcModel_ptr mdl = GetCurrentModel();
|
|
if (!mdl) return nullptr;
|
|
return pfcSolid::cast(mdl);
|
|
}
|