mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
[IfcConver] Changed OperatesOn hierarchy level in xml task export
This commit is contained in:
committed by
Dion Moult
parent
99d8a225a9
commit
01c6a0d9be
@@ -419,7 +419,6 @@ void format_tasks(IfcSchema::IfcTask* task, ptree& node) {
|
|||||||
IfcSchema::IfcRelAssignsToProcess::list::ptr operates = task->OperatesOn();
|
IfcSchema::IfcRelAssignsToProcess::list::ptr operates = task->OperatesOn();
|
||||||
if (operates->size() > 0)
|
if (operates->size() > 0)
|
||||||
{
|
{
|
||||||
ptree noperates_on;
|
|
||||||
for (IfcSchema::IfcRelAssignsToProcess::list::it i = operates->begin(); i != operates->end(); ++i)
|
for (IfcSchema::IfcRelAssignsToProcess::list::it i = operates->begin(); i != operates->end(); ++i)
|
||||||
{
|
{
|
||||||
IfcSchema::IfcObjectDefinition::list::ptr objects = (*i)->RelatedObjects();
|
IfcSchema::IfcObjectDefinition::list::ptr objects = (*i)->RelatedObjects();
|
||||||
@@ -428,11 +427,9 @@ void format_tasks(IfcSchema::IfcTask* task, ptree& node) {
|
|||||||
IfcSchema::IfcObjectDefinition* object = (*it2);
|
IfcSchema::IfcObjectDefinition* object = (*it2);
|
||||||
ptree nobject;
|
ptree nobject;
|
||||||
nobject.put("<xmlattr>.id", object->GlobalId());
|
nobject.put("<xmlattr>.id", object->GlobalId());
|
||||||
noperates_on.add_child("Object", nobject);
|
ntask->add_child("OperatesOn", nobject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ntask->add_child("OperatesOn", noperates_on);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user