From a13060196951c61225fda0156290a482196e0f7b Mon Sep 17 00:00:00 2001 From: Richard Brice <37087370+RickBrice@users.noreply.github.com> Date: Sun, 5 May 2024 13:17:55 -0700 Subject: [PATCH] A few more tweaks to the alignment examples --- src/examples/IfcAlignment.cpp | 6 +++++- src/examples/IfcSimplifiedAlignment.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/examples/IfcAlignment.cpp b/src/examples/IfcAlignment.cpp index 6571585cc9..d17bf76cd4 100644 --- a/src/examples/IfcAlignment.cpp +++ b/src/examples/IfcAlignment.cpp @@ -50,6 +50,7 @@ Schema::IfcProject* setup_project(IfcHierarchyHelper& file) { auto project = file.addProject(); project->setName(std::string("FHWA Bridge Geometry Manual Example Alignment")); + project->setDescription(std::string("C++ Example")); // set up project units for feet // the call to file.addProject() sets up length units as millimeter. @@ -479,7 +480,10 @@ int main() { auto site = file.addSite(project, nullptr); site->setName(os.str()); - auto rel_referenced_in_spatial_structure = new Schema::IfcRelReferencedInSpatialStructure(IfcParse::IfcGlobalId(), nullptr, boost::none, boost::none, list_alignments_referenced_in_site, site); + std::ostringstream description; + description << "Alignments referenced into the spatial structure of Bridge Site " << i; + + auto rel_referenced_in_spatial_structure = new Schema::IfcRelReferencedInSpatialStructure(IfcParse::IfcGlobalId(), nullptr, boost::none, description.str(), list_alignments_referenced_in_site, site); file.addEntity(rel_referenced_in_spatial_structure); } diff --git a/src/examples/IfcSimplifiedAlignment.cpp b/src/examples/IfcSimplifiedAlignment.cpp index b811a88675..52f007f142 100644 --- a/src/examples/IfcSimplifiedAlignment.cpp +++ b/src/examples/IfcSimplifiedAlignment.cpp @@ -46,6 +46,7 @@ Schema::IfcProject* setup_project(IfcHierarchyHelper& file) { auto project = file.addProject(); project->setName(std::string("FHWA Bridge Geometry Manual Example Alignment")); + project->setDescription(std::string("C++ Example - Simplified")); // set up project units for feet // the call to file.addProject() sets up length units as millimeter. @@ -150,7 +151,10 @@ int main() { auto site = file.addSite(project, nullptr); site->setName(os.str()); - auto rel_referenced_in_spatial_structure = new Schema::IfcRelReferencedInSpatialStructure(IfcParse::IfcGlobalId(), nullptr, boost::none, boost::none, list_alignments_referenced_in_site, site); + std::ostringstream description; + description << "Alignments referenced into the spatial structure of Bridge Site " << i; + + auto rel_referenced_in_spatial_structure = new Schema::IfcRelReferencedInSpatialStructure(IfcParse::IfcGlobalId(), nullptr, boost::none, description.str(), list_alignments_referenced_in_site, site); file.addEntity(rel_referenced_in_spatial_structure); }