Jump to content


Hatching doesn't work when UCS isn't WCS


4 replies to this topic

#1 Phil

    Member

  • Members
  • PipPip
  • 22 posts

Posted 01 June 2023 - 03:22 PM

Hi all,

I'm using construction v23 (although this happened in v22 as well).

If I change the UCS to align with an object (for example the side of a rectangle which is at an angle to the WCS) and then hatch that rectangle, no hatch appears. Nanocad just doesn't hatch the space, even if I change the scale of the pattern. I get a boundary, but no hatch, even if I save the drawing, shut down nanocad and restart it and open the drawing again.

If I want to hatch the rectangle, I have to first query the angle it's at relative to the WCS and then set the hatch pattern to that angle. Am I missing something?

Ta!
Phil

#2 Artemio

    Advanced Member

  • Administrators
  • 323 posts

Posted 06 June 2023 - 07:40 PM

Hello.
Sorry, but I can't reproduce it.
My steps:

1. With SHIFT and Mouse wheel change view to something different.
2. Call UCS command and select "View" so that UCS is now settled on view I did on step 1 (it's not WCS).
3. Draw rectangle, call hatch, select rectangle as an object to be hatched.
4. Hatch appears.

Can you, please, check status of "SH" button at the bottom (status bar)?

#3 Phil

    Member

  • Members
  • PipPip
  • 22 posts

Posted 09 June 2023 - 03:10 PM

View PostArtemio, on 06 June 2023 - 07:40 PM, said:

Hello.
Sorry, but I can't reproduce it.
My steps:

1. With SHIFT and Mouse wheel change view to something different.
2. Call UCS command and select "View" so that UCS is now settled on view I did on step 1 (it's not WCS).
3. Draw rectangle, call hatch, select rectangle as an object to be hatched.
4. Hatch appears.

Can you, please, check status of "SH" button at the bottom (status bar)?


Thanks Artemio,

SHIFT and mouse doesn't do anything for me, unfortunately!

I can replicate it as follows:

1. In WCS (UCSICON at 90 degrees) draw a rectangle
2. Rotate rectangle by, for example, 35 degrees
3. Set view to align with one of the sides of the rectangle (the UCSICON will now be at 35 degrees)
4. Hatch the rectangle (I used ANSI31)
5. I don't get any hatch appearing

SH button toggles whether or not the hatch shows - doesn't matter whether it is toggled on or off, I still get no hatch!

#4 Artemio

    Advanced Member

  • Administrators
  • 323 posts

Posted 09 June 2023 - 07:15 PM

Maybe we are using different commands or some approaches?

1. UCS name in "Properties" panel = World
2. Drew rectangle by two points (command RECT).
3. Called command: "Rotate", selected object: rectangle, specified base point: left bottom corner of rectangle, specified rotation angle: 35.
4. Clicked ESC to clear selection after "Rotate" command.
5. Called command: "UCS", selected option "Object" and selected rectangle as it's object.
6. Specified new position of UCS on rectangle so that XY-axis rotates 35 deg anticlockwise.
7. UCS name in "Properties" panel = unnamed.
8. Called add hatch command: "HATCH".
9. Selected "Add: Select objects" in Hatch dialog window, selected rectangle, clicked "Enter".
10. Clicked "OK" in Hatch dialog window (all other in it is by default, include ANSI131 pattern etc.)
11. Hatch appeared...


Here is how my history in command line looks like:

R,REC,RECT,RECTANG,RECTANGLE - Rectangle by Two Points
Specify first corner point or [centeR/Chamfer/Elevation/Fillet/Thickness/Width]:
Specify other corner point or [Area/Dimensions/Rotation]:
RO,ROTATE - Rotate
Select objects or [?]:
1 found
Select objects or [?]:
Current positive angle in UCS: ANGDIR=counterclockwise ANGBASE=0
Specify base point or [Reference base]:
Specify rotation angle or [Copy/Reference angle] <35>: 35
*cancel*
Command: UCS
UCS - Coordinate System
Specify Origin of UCS or [Face/NAmed/OBject/View/World/X/Y/Z/ZAxis] <World>: OBject
Select object to align UCS or [?]:
BH,BHATCH,H,HATCH - Add Hatch
Select objects or [?]:
1 found
Select objects or [?]:
1 found, 1 total

Is it the same you're trying, or something differs?

#5 Phil

    Member

  • Members
  • PipPip
  • 22 posts

Posted 13 June 2023 - 02:05 PM

We're doing exaclty the same things! The only difference is I don't get any hatch. It selects the boundary, but no hatch appears, and if I do preview hatch, there's no hatch visible in preview either.

UPDATE: As I was replying I thought I would have another go and carried out the same commands, but this time before I made the hatch, I checked the 'precalculate contours' box. With this box cheked, it worked and the hatch appears. The 'precalculate contours' must change the way hatch is created or something, but I don't know what. Checking it or unchecking it doesn't seem to make a difference any other time.

Thanks for your help on this.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users