[Behaviour suggestions] New sketch plane selection
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [Behaviour suggestions] New sketch plane selection
Well most people seem on-board for this one so I'll start here.
For 2- I think I can do it quickly for 1- it might need more thinking.
For 2- I think I can do it quickly for 1- it might need more thinking.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
Re: [Behaviour suggestions] New sketch plane selection
It would help already a lot, if you can increase the line thickness of the frame.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: [Behaviour suggestions] New sketch plane selection
Yes you're right.
About that it seems that I don't understand the code so it's not so easy afterall.
I'm in mod/Partdesign/GUI/command.cpp
The code logic for newsketch tool seems to be in the function
Code: Select all
void CmdPartDesignNewSketch::activated(int iMsg)
Code: Select all
// Called by dialog when user hits "OK" and accepter returns true
auto worker = [=](const std::vector<App::DocumentObject*>& features) {
// may happen when the user switched to an empty document while the
// dialog is open
if (features.empty())
return;
App::Plane* plane = static_cast<App::Plane*>(features.front());
std::string FeatName = getUniqueObjectName("Sketch",pcActiveBody);
std::string supportString = getObjectCmd(plane,"(",",[''])");
FCMD_OBJ_CMD(pcActiveBody,"newObject('Sketcher::SketchObject','" << FeatName << "')");
auto Feat = pcActiveBody->getDocument()->getObject(FeatName.c_str());
FCMD_OBJ_CMD(Feat,"Support = " << supportString);
FCMD_OBJ_CMD(Feat,"MapMode = '" << Attacher::AttachEngine::getModeName(Attacher::mmFlatFace)<<"'");
Gui::Command::updateActive(); // Make sure the Support's Placement property is updated
PartDesignGui::setEdit(Feat,pcActiveBody);
};
Beside I can't find the code of the dialog.
Is anyone familiar with this and want to make this ?
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
Re: [Behaviour suggestions] New sketch plane selection
One hand on mouse the other on keyboard, single click on plane and enter key to accept/ok
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: [Behaviour suggestions] New sketch plane selection
You're probably right but the question is how to do thatadrianinsaval wrote: ↑Tue Jan 04, 2022 3:09 pm maybe you need to place a translucent (filled) rectangle behind the letters. Making the lines of the planes thicker may be helpful too.
I have no clues how the part design workbench works that's the main difficulty.
I'm also in to make plane lines thicker.
Something like this? (just a paint mockup I haven't done it yet :p)
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: [Behaviour suggestions] New sketch plane selection
Looks good, this looks like it involves some coin3d wizardry and I think it's not actually defined in Part Design but just inherited from the core (Part containers have them too).
Re: [Behaviour suggestions] New sketch plane selection
Any idea who's wizard enough to handle it?adrianinsaval wrote: ↑Tue Jan 04, 2022 3:30 pm Looks good, this looks like it involves some coin3d wizardry and I think it's not actually defined in Part Design but just inherited from the core (Part containers have them too).
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
- Pauvres_honteux
- Posts: 728
- Joined: Sun Feb 16, 2014 12:05 am
- Location: Far side of the moon