mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 08:33:10 +00:00
typename
This commit is contained in:
@@ -100,9 +100,7 @@ class entity_instance_mixin:
|
|||||||
INVALID, FORWARD, INVERSE, DERIVED = range(4)
|
INVALID, FORWARD, INVERSE, DERIVED = range(4)
|
||||||
attr_cat = self.get_attribute_category(name)
|
attr_cat = self.get_attribute_category(name)
|
||||||
if attr_cat == INVALID:
|
if attr_cat == INVALID:
|
||||||
raise AttributeError(
|
raise AttributeError("entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name))
|
||||||
"entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name)
|
|
||||||
)
|
|
||||||
elif attr_cat == FORWARD:
|
elif attr_cat == FORWARD:
|
||||||
idx = self.get_argument_index(name)
|
idx = self.get_argument_index(name)
|
||||||
return self.get_argument(idx)
|
return self.get_argument(idx)
|
||||||
|
|||||||
@@ -881,7 +881,7 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
|
|
||||||
auto prodrep = product.Representation();
|
auto prodrep = product.Representation();
|
||||||
auto reps = prodrep.Representations();
|
auto reps = prodrep.Representations();
|
||||||
auto ifc_representation = representation ? representation.as<typename Schema::IfcRepresentation>() : Schema::IfcRepresentation();
|
auto ifc_representation = representation ? representation.as<typename Schema::IfcRepresentation>() : typename Schema::IfcRepresentation();
|
||||||
|
|
||||||
if (!ifc_representation) {
|
if (!ifc_representation) {
|
||||||
// First, try to find a representation based on the settings
|
// First, try to find a representation based on the settings
|
||||||
|
|||||||
Reference in New Issue
Block a user