Well.. if you get the green light from the community (in this case @chrisb) to open a ticket for a bug or feature request then read more on how to do that on the wiki Tracker page
Feature request : In sketcher be able to enter dimensions
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Feature request : In sketcher be able to enter dimensions
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Feature request : In sketcher be able to enter dimensions
paddle, I second your idea. I also believe it would be great improvement in shorting up number of moves and time.
Re: Feature request : In sketcher be able to enter dimensions
So I have been working on this and it's looking good.
I have one problem though. How to add the widget to the tasks window?
I checked TaskSketcherGeneral.cpp for reference, and found it's added to a variable called 'Content'.
So I'm trying to do
But it keeps saying me 'Content' is not defined. What I don't understand is that I am including
in CommandCreateGeo where I need to create/destroy the widget when a tool is opened/closed.
I'm not understanding because I included the .h file where Content is defined so why is it not defined?
I checked the TaskPadParameter (class of the widget of Pad tool) to see how it's done, as it's called from the tool so I thought it would be similar.
However the Content.push_back is called from a class that seems to be made just for that.
Any ideas?
I have one problem though. How to add the widget to the tasks window?
I checked TaskSketcherGeneral.cpp for reference, and found it's added to a variable called 'Content'.
So I'm trying to do
Code: Select all
settings = new TaskSketcherTool(sketchgui); //TaskSketcherTool is the class of my widget.
Content.insert(settings);
Code: Select all
#include <Gui/TaskView/TaskDialog.h>
I'm not understanding because I included the .h file where Content is defined so why is it not defined?
I checked the TaskPadParameter (class of the widget of Pad tool) to see how it's done, as it's called from the tool so I thought it would be similar.
However the Content.push_back is called from a class that seems to be made just for that.
Code: Select all
TaskDlgPadParameters::TaskDlgPadParameters(ViewProviderPad *PadView, bool /*newObj*/)
: TaskDlgSketchBasedParameters(PadView)
{
assert(vp);
Content.push_back ( new TaskPadParameters(PadView ) );
}
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