Feature #7317: Calculate Area of Arbitrary Faces (was Techdraw Problem Calculating Area)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Feature #7317: Calculate Area of Arbitrary Faces (was Techdraw Problem Calculating Area)

Post by Creative25 »

When trying to calculate an area I get the following error.

12:23:18 <Exception> CmdTechDrawAreaAnnotation - forbidden border element found
Last edited by Kunda1 on Tue Apr 18, 2023 2:28 pm, edited 1 time in total.
Reason: Renamed topic with github issue number and title
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Techdraw Problem Calculating Area

Post by kisolre »

So maybe, just maybe there is a forbidden border element somewhere? Like a zero length line, self intersecting spline, ...? How could anyone guess without a file, FC version info, steps to reproduce? Seen the IMPORTANT banner and link on top of the page?
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Re: Techdraw Problem Calculating Area

Post by Creative25 »

Thanks for letting me know that my poest was not specific.
Original File was too large for uploading.
That is why I left it out.
I have small Drawing that has the same problem.
I upload this one.

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * parts_library
SampleRoom.FCStd
(123.43 KiB) Downloaded 24 times
User avatar
NewJoker
Veteran
Posts: 3072
Joined: Sun Oct 11, 2020 7:49 pm

Re: Techdraw Problem Calculating Area

Post by NewJoker »

Faces with curved edges are not supported: TechDraw ExtensionAreaAnnotation and in your case there are such edges (doors).
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Re: Techdraw Problem Calculating Area

Post by Creative25 »

Thanks for th info.
So I deleted the door and it works.
But now my question ist the sample also contains doors but only the opening lines are shown, how do I go about to make it work like the example on the link?
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Techdraw Problem Calculating Area

Post by wandererfan »

Creative25 wrote: Fri Aug 05, 2022 12:30 pm But now my question ist the sample also contains doors but only the opening lines are shown, how do I go about to make it work like the example on the link?
AreaAnnotation is only smart enough to handle polygons at the moment. The curved arc of the door opening confuses it.

AreaAnnotation should be smart enough to take a list of any faces and return the area. There might still be an issue with the door.

I've created issue #7317 so this doesn't get forgotten.
Creative25
Posts: 21
Joined: Wed May 25, 2022 5:42 am

Re: Techdraw Problem Calculating Area

Post by Creative25 »

So at the moment it is a limitation?

A nice simple feature would be if you could select the corners of an area and then press calculate.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Feature #7317: Calculate Area of Arbitrary Faces (was Techdraw Problem Calculating Area)

Post by Kunda1 »

Anyone interested implementing this before v0.21 feature freeze ?
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
Post Reply