Skip to content

Commit 42fedf8

Browse files
committed
Add parse_ifcxml to ifcopenshell_wrapper
1 parent c93a4b6 commit 42fedf8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ifcwrap/IfcParseWrapper.i

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,13 +521,18 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
521521
// The IfcFile* returned by open() is to be freed by SWIG/Python
522522
%newobject open;
523523
%newobject read;
524+
%newobject parse_ifcxml;
524525

525526
%inline %{
526527
IfcParse::IfcFile* open(const std::string& fn) {
527528
IfcParse::IfcFile* f = new IfcParse::IfcFile(fn);
528529
return f;
529530
}
530531

532+
IfcParse::IfcFile* parse_ifcxml(const std::string& fn) {
533+
return IfcParse::parse_ifcxml(fn);
534+
}
535+
531536
IfcParse::IfcFile* read(const std::string& data) {
532537
char* copiedData = new char[data.length()];
533538
memcpy(copiedData, data.c_str(), data.length());

0 commit comments

Comments
 (0)