CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.091.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

My custom hatch pattern doesn't show correctly

 Post Reply Post Reply
Author
ASteel View Drop Down
Newbie
Newbie


Joined: 03.Dec.2024
Location: United Kingdom
Using: AutoCAD, Civil 3D
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASteel Quote  Post ReplyReply Direct Link To This Post Topic: My custom hatch pattern doesn't show correctly
    Posted: 03.Dec.2024 at 09:57
So I've been making some custom hatch patterns so that we can use tram and ladder tactile paving in our design. I've gone through making a hatch pattern using notepad, and the preview shows as it should when loaded into CAD but it appears as a solid hatch when used even at different scales (0.01-100).

The notepad file reads as such:

*LADDER, ladder type
0, 0,0, 0,4, 4,0
0, 0,0.35, 0,1, 4,0
0, 0,0.65, 0,1, 4,0
90, 0,0, 4,0, 4,0

The preview and hatch are shown below


Edited by ASteel - 03.Dec.2024 at 10:36
Back to Top
philippe JOSEPH View Drop Down
Senior Member
Senior Member


Joined: 14.Mar.2011
Location: France
Using: AutoCAD Mechanical 2017
Status: Offline
Points: 1493
Post Options Post Options   Thanks (0) Thanks(0)   Quote philippe JOSEPH Quote  Post ReplyReply Direct Link To This Post Posted: 03.Dec.2024 at 11:50
Hello ASteel, have you tried to change the scale, what I read on your screen to be the number : 32 ( maybe it's the color ? ) or 1.000 ( scale ? ).
Back to Top
ASteel View Drop Down
Newbie
Newbie


Joined: 03.Dec.2024
Location: United Kingdom
Using: AutoCAD, Civil 3D
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASteel Quote  Post ReplyReply Direct Link To This Post Posted: 03.Dec.2024 at 13:45
Hi,

The 32 is the colour. I've tried multiple scales ranging from 0.01 to 100, and the pattern doesn't change.


Back to Top
philippe JOSEPH View Drop Down
Senior Member
Senior Member


Joined: 14.Mar.2011
Location: France
Using: AutoCAD Mechanical 2017
Status: Offline
Points: 1493
Post Options Post Options   Thanks (0) Thanks(0)   Quote philippe JOSEPH Quote  Post ReplyReply Direct Link To This Post Posted: 04.Dec.2024 at 08:03
Hello ASteel, eventually select the hatches and open the properties pannel ( Ctrl+1 ) to take a look at all the settings.
Back to Top
ASteel View Drop Down
Newbie
Newbie


Joined: 03.Dec.2024
Location: United Kingdom
Using: AutoCAD, Civil 3D
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASteel Quote  Post ReplyReply Direct Link To This Post Posted: 04.Dec.2024 at 10:24
Here are the properties for the hatch, but nothing seems amiss with them?
Back to Top
philippe JOSEPH View Drop Down
Senior Member
Senior Member


Joined: 14.Mar.2011
Location: France
Using: AutoCAD Mechanical 2017
Status: Offline
Points: 1493
Post Options Post Options   Thanks (0) Thanks(0)   Quote philippe JOSEPH Quote  Post ReplyReply Direct Link To This Post Posted: 04.Dec.2024 at 12:35
ASteel, I see :
Line type scale : 1.000 try and change
Scale : 1.000 that you have tried to change
Spacing : 1.000 but it's in gray maybe not to be changed ?
ISO pen width : 1.00 mm but it's in gray maybe not to be changed ?
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 685
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 06.Dec.2024 at 19:35
I see that 32 is not the color of the pattern, but the background color.  Try turning off the background.

BUT WAIT --
AutoCAD is telling me there's an error in the pattern definition.  I see you have no pen-up negative-number entries, which suggests all the lines are meant to be continuous.  If that's the case, you need no pen-down-pen-up entries at the ends of the lines of code.  And a lineset with zero for the Y offset is meaningless, offsetting its lines on top of themselves.  The X and Y of the offset values are not the drawing's X and Y directions, but in relation to the angle of the lineset being the X direction.  When I change the last line to:
90, 0,0, 0,4, 4,0
it works, giving me this:

Is that what it's supposed to look like?  If not, draw what it should look like with Lines, and post an image.

If so, and they're all meant to be continuous, as mentioned you can omit the  4,0  at the end of each line -- they serve no purpose if there are to be no gaps, and if there are to be gaps, a negative number is needed.


Edited by Kent Cooper - 06.Dec.2024 at 19:56
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 685
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 06.Dec.2024 at 19:37
Originally posted by philippe JOSEPH philippe JOSEPH wrote:

....
Spacing : 1.000 but it's in gray maybe not to be changed ?
....

[The reason Spacing is grayed out is simply that it's applicable only to User-defined patterns, the same as the Double option.]
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,322 seconds.