uwestoehr wrote: ↑Mon Jan 13, 2020 12:08 am
I wanted to make a PR but cannot find where in the code the name is defined. Do you have a pointer for me?
This one is in TaskLeaderLine.cpp. For others, look for "getUniqueObjectName("Draw*"
Code: Select all
void TaskLeaderLine::createLeaderFeature(std::vector<Base::Vector3d> converted)
{
// Base::Console().Message("TTL::createLeaderFeature()\n");
m_leaderName = m_basePage->getDocument()->getUniqueObjectName("DrawLeaderLine");
m_leaderType = "TechDraw::DrawLeaderLine";
std::string PageName = m_basePage->getNameInDocument();
Gui::Command::openCommand("Create Leader");
Command::doCommand(Command::Doc,"App.activeDocument().addObject('%s','%s')",
m_leaderType.c_str(),m_leaderName.c_str());