MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / setValue

Method setValue

src/App/ObjectIdentifier.cpp:1741–1757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1739}
1740
1741void ObjectIdentifier::setValue(const App::any& value) const
1742{
1743 std::stringstream ss;
1744 ResolveResults rs(*this);
1745 if (rs.propertyType) {
1746 FC_THROWM(Base::RuntimeError, "Cannot set pseudo property");
1747 }
1748
1749 Base::PyGILStateLocker lock;
1750 try {
1751 Py::Object pyvalue = pyObjectFromAny(value);
1752 access(rs, &pyvalue);
1753 }
1754 catch (Py::Exception&) {
1755 Base::PyException::throwException();
1756 }
1757}
1758
1759const std::string& ObjectIdentifier::getSubObjectName(bool newStyle) const
1760{

Callers 1

adjustLinksMethod · 0.45

Calls 1

pyObjectFromAnyFunction · 0.85

Tested by

no test coverage detected