TechDraw ordinate dimensioning
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: TechDraw ordinate dimensioning
Added the icons to the TechDraw menu and toolbar. Also inverted the colors on the icons and refined the design to match the existing icons.
The tool tips will still need to be refined.
Next I think I would need to dive into the commands behind the icons. I've been thinking that the the logic of the functions could be something like:
- Select the 0 node
- Select the nodes you want to dimension
- Click the icon
Tips and comments are more than appreciated.
Git link: https://github.com/kemes/FreeCAD_TechDr ... dimensions
The tool tips will still need to be refined.
Next I think I would need to dive into the commands behind the icons. I've been thinking that the the logic of the functions could be something like:
- Select the 0 node
- Select the nodes you want to dimension
- Click the icon
Tips and comments are more than appreciated.
Git link: https://github.com/kemes/FreeCAD_TechDr ... dimensions
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw ordinate dimensioning
Took a quick peek at your branch - it looks good. You probably want to rebase your branch on the current master to save aggravation later.
We willl eventually need a feature derived from dimension that will remember the "nodes". We need to do this for chain dimensions too.
Ask questions if you get stuck on anything.
Re: TechDraw ordinate dimensioning
I suppose the first step would be finding out the selected nodes? right?
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw ordinate dimensioning
Good place to start. If you're making the dimension from a set of vertices, something like this would work:
Code: Select all
//get selected vertices from a DrawViewPart
auto selection = cmd->getSelection().getSelectionEx();
auto dvp = dynamic_cast<TechDraw::DrawViewPart*>(selection[0].getObject());
std::vector<std::string> vertexNames;
std::vector<std::string> subNames = selection[0].getSubNames();
for (auto& name : subNames) {
std::string type = DrawUtil::getGeomTypeFromName(name);
if (type == "Vertex") {
vertexNames.push_back(name):
}
}
- LVAeronautics
- Posts: 105
- Joined: Sun Nov 20, 2022 6:21 pm
- Contact:
Re: TechDraw ordinate dimensioning
I see that it has been some time since this thread last saw any action. How is the ordinate dimensioning function coming along? Currently developing an aircraft, and having this capability would be extraordinarily helpful in ID'ing Station, Butt & Water Lines about the airframe, as well as dimensioning other items for the build.
Also, if there is a branch that has this capability, let me know, and since I am very new at the practice, if one of you can assist in showing me how to install said branch if one exists. Thanks!
Also, if there is a branch that has this capability, let me know, and since I am very new at the practice, if one of you can assist in showing me how to install said branch if one exists. Thanks!
"Testing leads to Failure, and Failure leads to Understanding" -Burt Rutan
- Shalmeneser
- Veteran
- Posts: 9584
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
- LVAeronautics
- Posts: 105
- Joined: Sun Nov 20, 2022 6:21 pm
- Contact:
Re: TechDraw ordinate dimensioning
Downloaded what seems to be the latest/greatest; no ordinate dimensioning capability, unless I am not finding it. If I am wrong, please direct me to what I need. Thank you in advance!!Shalmeneser wrote: ↑Wed Mar 08, 2023 6:54 pm https://www.freecad.org/downloads.php > https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.32110 (Git)
Build type: Release
Branch: master
Hash: a000dcf60af18f489fff48d29d7f2f4b2092483f
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods:
* AirPlaneDesign 0.4.0
* Assembly4 0.12.6
* CfdOF 1.21.6
* CurvedShapes 1.0.4
* Curves 0.6.8
* Defeaturing 1.2.0
* Estimate 0.1.2
* ExplodedAssembly 0.2.61
* fasteners 0.4.54
* FeedsAndSpeeds 0.5.0
* FEMbyGEN 1.2.0
* FEM_FrontISTR 0.1.0
* freecad.gears 1.0.0
* lattice2 1.0.0
* LCInterlocking
* Render 2023.2.2
* Rocket 2.8.6
* sheetmetal 0.2.61
* Ship 2022.4.11
"Testing leads to Failure, and Failure leads to Understanding" -Burt Rutan
Re: TechDraw ordinate dimensioning
Unfortunately, it's not available in master. There's even no open PR for it yet. It's only available in kemes' GitHub branch but he hasn't be active since the fall of 2023.
@kemes Any chance for PR in master or is this project abandoned ?
@kemes Any chance for PR in master or is this project abandoned ?
- LVAeronautics
- Posts: 105
- Joined: Sun Nov 20, 2022 6:21 pm
- Contact:
Re: TechDraw ordinate dimensioning
That is unfortunate. Ordinate dimensioning is a big must-have in the aero and sheet metal worlds. But if @kemes has a product, I just need to know how to download it. Other than that, FreeCAD is amazing!
"Testing leads to Failure, and Failure leads to Understanding" -Burt Rutan
Re: TechDraw ordinate dimensioning
You can build FreeCAD from his branch. Instructions are available on the FreeCAD wiki, depending on the OS.LVAeronautics wrote: ↑Wed Mar 08, 2023 10:38 pm But if @kemes has a product, I just need to know how to download it.