Skip to content

Commit

Permalink
Restored helper function for faster library/object creation (#3610)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-wessel authored Aug 2, 2024
1 parent a6a42e5 commit 0ec1f10
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "CreateCommand.hpp"
#include "LibpartImportManager.hpp"
#include "ClassificationImportManager.hpp"
#include "APIHelper.hpp"
#include "FieldNames.hpp"
#include "OnExit.hpp"
#include "ExchangeManager.hpp"
Expand Down Expand Up @@ -123,6 +124,8 @@ GS::ObjectState CreateCommand::Execute (const GS::ObjectState& parameters, GS::P
parameters.Get (GetFieldName (), objectStates);

ACAPI_CallUndoableCommand (GetUndoableCommandName (), [&] () -> GSErrCode {
LibraryHelper helper (false);

GS::Array<GS::ObjectState> applicationObjects;

AttributeManager* attributeManager = AttributeManager::GetInstance ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "RealNumber.h"
#include "DGModule.hpp"
#include "LibpartImportManager.hpp"
#include "APIHelper.hpp"
#include "FieldNames.hpp"
#include "OnExit.hpp"
#include "ExchangeManager.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "CreateGridElement.hpp"
#include "ResourceIds.hpp"
#include "ObjectState.hpp"
#include "APIHelper.hpp"
#include "Utility.hpp"
#include "Objects/Level.hpp"
#include "Objects/Point.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "CreateObject.hpp"

#include "APIMigrationHelper.hpp"
#include "APIHelper.hpp"
#include "LibpartImportManager.hpp"
#include "ResourceIds.hpp"
#include "Utility.hpp"
Expand Down Expand Up @@ -130,6 +131,8 @@ GS::ObjectState CreateObject::Execute (const GS::ObjectState& parameters, GS::Pr
parameters.Get (FieldNames::MeshModels, meshModels);

ACAPI_CallUndoableCommand (GetUndoableCommandName (), [&] () -> GSErrCode {
LibraryHelper helper (false);

AttributeManager* attributeManager = AttributeManager::GetInstance ();
LibpartImportManager* libpartImportManager = LibpartImportManager::GetInstance ();
for (ModelInfo meshModel : meshModels) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "RealNumber.h"
#include "DGModule.hpp"
#include "LibpartImportManager.hpp"
#include "APIHelper.hpp"
#include "FieldNames.hpp"
#include "OnExit.hpp"
#include "ExchangeManager.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "RealNumber.h"
#include "DGModule.hpp"
#include "LibpartImportManager.hpp"
#include "APIHelper.hpp"
#include "FieldNames.hpp"
#include "OnExit.hpp"
#include "ExchangeManager.hpp"
Expand Down

0 comments on commit 0ec1f10

Please sign in to comment.