Login  Register

Problem creating blocks with hatch

Posted by aangelo on Apr 11, 2019; 12:34pm
URL: https://forum.librecad.org/Problem-creating-blocks-with-hatch-tp5717231.html

Hi all!
I needed to create some blocks with hatch inside, but rectangles (from line>rectangle or polyline) works differently from circles.

LibreCAD version and OS

 Version: 2.1.2
 Compiler: GNU GCC 6.2.0
 Compiled on: Sep 17 2016
 Qt Version: 5.9.5
 Boost Version: 1.62.0
 System: Ubuntu 18.04.2 LTS

test_block_with_hatch.dxf

Steps followed
1. New drawing
2. Application Preferences: Unit: Millimeters
3. Working at Layer 0
4. Circle >Center Point, centered at 0,0 with radius 30
5. Select Circle just created
6. Hatch ansi31, Scale 1
The Circle is correctly hatched.

1. Select the circle and its hatch.
2. Create Block
3. Select 0,0 as insertion point
4. Set Block Name "circle"
5. From Block List, select "circle" then insert the active block.
The new created "circle" is correctly inserted, complete with its hatch.

1. Line >Rectangle, 30x30 units
2. Select the square just created
3. Hatch ansi31, Scale 1
The Rectangle is correctly hatched.

1. Select the rectangle and its hatch.
2. Create Block
3. Select the insertion point
4. Set Block Name "rectangle"
5. The hatch is disappeared
6. From Block List, select "rectangle" then insert the active block.
The new created "rectangle" is inserted, without its hatch.

1. Polyline, insert 3 vertices then Close (from command line)
2. Select the closed polyline
3. Hatch ansi31, Scale 1
The closed polyline is correctly hatched.

1. Select the closed polyline and its hatch.
2. Create Block
3. Select the insertion point
4. Set Block Name "rect_poly"
5. The hatch is disappeared
6. From Block List, select "rect_poly" then insert the active block.
The new created "rect_poly" is inserted, without its hatch.

The same problem occurs with many others hatch styles and is highly reproducible.
I suspect this is a LibreCAD bug.
Someone can help?
Thank you.
--
Antonio