//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
std::shared_ptr<SketchPlugin_MacroArcReentrantMessage> aReentrantMessage =
std::dynamic_pointer_cast<SketchPlugin_MacroArcReentrantMessage>(theMessage);
if (aReentrantMessage.get()) {
std::shared_ptr<SketchPlugin_MacroArcReentrantMessage> aReentrantMessage =
std::dynamic_pointer_cast<SketchPlugin_MacroArcReentrantMessage>(theMessage);
if (aReentrantMessage.get()) {
std::string aCircleType = aReentrantMessage->typeOfCreation();
string(CIRCLE_TYPE())->setValue(aCircleType);
std::string aCircleType = aReentrantMessage->typeOfCreation();
string(CIRCLE_TYPE())->setValue(aCircleType);
// If circle type switched reset all attributes.
if(theID == CIRCLE_TYPE()) {
SketchPlugin_Tools::resetAttribute(this, CENTER_POINT_ID());
// If circle type switched reset all attributes.
if(theID == CIRCLE_TYPE()) {
SketchPlugin_Tools::resetAttribute(this, CENTER_POINT_ID());