mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 17:06:29 +00:00
Fix examples
This commit is contained in:
@@ -117,10 +117,10 @@ template <typename Schema, typename T>
|
|||||||
void process_pset(element_properties& props, const T& inst) {
|
void process_pset(element_properties& props, const T& inst) {
|
||||||
// Process an individual Property or Quantity set.
|
// Process an individual Property or Quantity set.
|
||||||
if (auto pset = inst.template as<typename Schema::IfcPropertySet>()) {
|
if (auto pset = inst.template as<typename Schema::IfcPropertySet>()) {
|
||||||
if (!pset->Name()) {
|
if (!pset.Name()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto ps = pset->HasProperties();
|
auto ps = pset.HasProperties();
|
||||||
for (auto& p : ps) {
|
for (auto& p : ps) {
|
||||||
if (auto singleval = p.template as<typename Schema::IfcPropertySingleValue>()) {
|
if (auto singleval = p.template as<typename Schema::IfcPropertySingleValue>()) {
|
||||||
std::string propname, propvalue;
|
std::string propname, propvalue;
|
||||||
|
|||||||
Reference in New Issue
Block a user