mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 03:19:53 +00:00
Fixed retrieving attributes derived in subtype Convert argument type enumeration to python string Add ability to iterate over all instances from python
This commit is contained in:
@@ -85,6 +85,15 @@ namespace IfcParse {
|
||||
void AddEntity(IfcUtil::IfcSchemaEntity e);
|
||||
IfcFile();
|
||||
~IfcFile();
|
||||
|
||||
std::vector<int> entity_names() const {
|
||||
std::vector<int> keys;
|
||||
keys.reserve(byid.size());
|
||||
for (MapEntityById::const_iterator it = byid.begin(); it != byid.end(); ++ it) {
|
||||
keys.push_back(it->first);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
|
||||
IfcParse::IfcFile* open(const std::string& s) {
|
||||
|
||||
Reference in New Issue
Block a user