I used the console command ./dwghatcharea -platform offscreen -f 0.001 -s 0.05 C.dwg to calculate block areas, but the execution got stuck and couldn't complete the full calculation.
Issue:./dwghatcharea -platform offscreen -f 0.001 -s 0.05 C.dwg connot complete the full calculation
how can i do it
Environment
Linux Centos7
Qcad 3.23.3
Thank you for your reply
I used the console command ./dwghatcharea -platform offscreen -f 0.001 -s 0.05 C.dwg to calculate block areas, but the e
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
- Junior Member
- Posts: 20
- Joined: Wed Jun 11, 2025 2:33 am
I used the console command ./dwghatcharea -platform offscreen -f 0.001 -s 0.05 C.dwg to calculate block areas, but the e
- Attachments
-
- Image20250611150611185.png (135.89 KiB) Viewed 15557 times
-
- C.dwg
- (4.63 MiB) Downloaded 162 times
-
- Premier Member
- Posts: 4920
- Joined: Wed Sep 27, 2017 4:17 pm
Re: I used the console command ./dwghatcharea -platform offscreen -f 0.001 -s 0.05 C.dwg to calculate block areas, but t
Hi,
I suspect invalid content.
RVector(X=nan, Y=nan, Z=0, false) is simply not a valid position.
But also not one of the predefined invalid positions.
Flatten your drawing to 2D to start with.
QCAD is basically a 2D drawing application and only has some support for 3D content.
How do you expect to calculate the area of a Block at the hand of Hatch entities?
Or Block Reference entities for that matter.
Without a specified Block it will process all Hatch or Solid entities on Model_Space.
That would disregard any other entity type.
To know the extend of all visible try bbox.
The area of a Hatched surface is calculated as the area(s) of the outlines and those are handled as RPolyline shapes.
An RPolyline is the low level mathematical representation of a Polyline.
Self-intersecting boundary loops or intersecting loops of the same Hatch may be rendered using XOR.
But the area value might not be correct because of the algorithm used.
Rendered as Hatched and enclosed area are completely different things.
While constructing the outline ...
We see QCAD attempting to add a line shape (RLine) with an invalid X and Y coordinate value as start.
I saw a glimpse of your drawing before the QCAD GUI crashed on the first screen regenerate.
Perhaps these kind of drawings are just to complex.
Regards,
CVH
I suspect invalid content.
RVector(X=nan, Y=nan, Z=0, false) is simply not a valid position.
But also not one of the predefined invalid positions.
Flatten your drawing to 2D to start with.
QCAD is basically a 2D drawing application and only has some support for 3D content.
How do you expect to calculate the area of a Block at the hand of Hatch entities?
Or Block Reference entities for that matter.
Without a specified Block it will process all Hatch or Solid entities on Model_Space.
That would disregard any other entity type.
To know the extend of all visible try bbox.
The area of a Hatched surface is calculated as the area(s) of the outlines and those are handled as RPolyline shapes.
An RPolyline is the low level mathematical representation of a Polyline.
Self-intersecting boundary loops or intersecting loops of the same Hatch may be rendered using XOR.
But the area value might not be correct because of the algorithm used.
Rendered as Hatched and enclosed area are completely different things.
While constructing the outline ...
We see QCAD attempting to add a line shape (RLine) with an invalid X and Y coordinate value as start.
I saw a glimpse of your drawing before the QCAD GUI crashed on the first screen regenerate.
Perhaps these kind of drawings are just to complex.
Regards,
CVH