Adjustable hash marks

Started by Shipmodeler, March 31, 2014, 10:05:03 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Shipmodeler

Is there any way the DC design team could make the thickness of the hash mark adjustable (not the dimension line)?  The reason I don't use them now is that the hash thickness is the same thickness as the dimension line.  I would like to be able to adjust the thickness and size of the hash line separately.  Being a draftsman for the 30 years, I long for hash marks to make the drawing appear more hand drawn. 

Since the same adjustments can currently be done to arrows, dots, and other termination icons, I would think doing the same for hash marks would be no-brainer.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

prl

I pulled my note.  I thought you were still talking about the arrow with a slash.  I see now you are talking about dimension witness lines and those slash marks.

Lar

Quote from: Shipmodeler on March 31, 2014, 10:05:03 AM
Since the same adjustments can currently be done to arrows, dots, and other termination icons, I would think doing the same for hash marks would be no-brainer.
You can't actually make arrowheads *thicker* without the arrow line being thick as well. You can make the heads bigger or give the whole arrow a fixed lineweight.

Dimension lines are actually arrows (explode a dimension to see) so the same rules apply to dimension lines and arrows.

Lar

Shipmodeler

I guess I'm not familiar with the DC nomenclature, so forgive me for being unclear.  We always called those slashes "Hash Marks" back in the day when I drew on the board.  I am referring to the arrow with the slash located on the arrow drop down menu. 

What you suggest sounds just like what I want.  To thicken the "slash" by adding lines to accomplish the desired line width sounds very workable since the size or "length" can already be adjusted.  You need to add a "Thicken Slash Mark" as a new check box.  When the box is checked, enter the width you need and click save.

I hope this is clear.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

prl

ShipModeler,

Got it with the hash or slash terminology.  But are you taking about the end of a leader or in general all dimension lines?

Lar

ShipModeler,

I understand exactly what you are speaking of. I was just referring to your comments on dcad's arrowheads being able to made thicker while the rest of the dimension remain thin. I myself don't use the hash dimension because it can't be made thicker, the way we did it with a chiseled pencil back in the drawing board days.

Back in the dos days the autocad crew would create a block of a heavy line that they would attach to the two ends of dimensions to get heavy hash marks. I don't know if acad has this feature built-in now but I'm sure most of that crew still use that block. I thought I read Prl mentioning that idea already so I didn't mention it myself. If I remember correctly one of acad's dimension styles utilized 2 thin hash marks close together, that when printed looked like one thick hash mark.

Lar

Shipmodeler

#6
I would like to be able to adjust the thickness of the tick mark.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

prl

Quote from: Shipmodeler on April 01, 2014, 10:18:28 AM
I would like to be able to adjust the thickness of the tick mark.

Shipmodeler,  so I'm thinking of this again in a general sense.  Mostly about having a basiccad routine cycle the drawing looking for dimension entities and using a block for the slash/arrow location.  The benefit of this approach is that you define the slash/arrow block (layer, color, line thickness, etc.)   Do it once and it (the block) is used everywhere.  And because it is a block, technically it can be anything, smiley faces, half circles, etc.

If you provide a simple made-up sample drawing (take a collection of squares or rectangles and dimension them the way you normally do) and attach the file, it will give me a starting point.

Shipmodeler

Here ya go.  I used dots instead of hash marks because that's what I use now. See attached.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

prl

Quote from: Shipmodeler on April 26, 2014, 04:03:55 PM
Here ya go.  I used dots instead of hash marks because that's what I use now. See attached.

Thanks. Just what I was looking for.

prl

#10
Hash Slash Tick Whatchamacallit 

Attached are two basiccad routines.

The hash.d3m routine hides the native dimension arrow and adds a block at the locations.

The unhash.d3m routine removes all the blocks created by hash.d3m and restores the native dimension arrow.


If you repeatedly use the hash routine, you will be adding blocks on top of blocks.  Therefore I recommend you dimension as you normally would, say using the filled circle, and only run the hash.d3m routine when you want the slashes. Otherwise use unhash.d3m and work normally.  Do the hash.d3m routine at print time.

(To restore your drawing after the routine has added the blocks, use the unhash routine. )

Note I've arbitrarily put the block instances (insertions) on layer 100.   Also named the block "mytick". You can change the code to anything you want.  The file for the below graphics is attached. The block is already made but not inserted.  Run the hash.d3m to get the results shown in the second graphic (the big blue ticks).

'program hash.d3m (add user slash block)

'4/27/2014 v1 - forum topic


'------------------------- begin user data

bname$ = "mytick"  'a user block, defined to a scale of 1
blayer = 100       'a user defined layer for where the blocks will be placed

'------------------------- end user data


dim p1x(1000), p1y(1000), p1z(1000), p2x(1000), p2y(1000), p2z(1000)
include "dcadalias.d3i"
index = 0

sys(80)=0

for i=1 to sys(9)
  entity i
  getattr i, etype, select
  if etype = 75 then 'a linear dimension
     putattr i, etype, 1
     query D_TEXTSIZE, dtsize 'store the text size and use it to scale the block
     change D_ARROWTYPE, 0 'remove the current arrowhead type
  endif
next i
sys(1)=0

'explode dimension assembly into subassemblies in order to find the arrow components
>explode
{
}

maxsel = sys(80)
for j = 1 to maxsel
  getselect j, entnum
  entity entnum
  getattr entnum, type, select, laynum, groupid, red, green, blue, solidid
 
  if type = 24 then 'then arrow part of dimension assembly
       index = index + 1
       pointval p1x(index) p1y(index) p1z(index) 1
       pointval p2x(index) p2y(index) p2z(index) 2
  endif
  sys(1)=0
next j

'restore dimensions
>undo
{
}
sys(80)=0

'now add user block to dimension
for i = 1 to index
  >blockinsert
  {
  <layer [blayer]
  <Name [bname$]
  <Type 0
  <Scale [dtsize], [dtsize], 1
  <WaitForOK 0
  <pointxyz [p2x(i), p2y(i), p2z(i)]
  <pointxyz [p1x(i), p1y(i), p1z(i)]
 
  }
next i

regen
End


'program unhash.d3m (remove user added slash block)

'4/27/2014 v1 - forum topic

'------------------------- begin user data

blayer = 100 'user defined layer for where the blocks will be placed
artype = 3   'user defined arrow head type for dimensions

'------------------------- end user data


include "dcadalias.d3i"

sys(80)=0

for i=1 to sys(9)
  entity i
  getattr i, etype, select
  if etype = 75 then 'a linear dimension
     change D_ARROWTYPE, artype
  endif
next i
sys(1)=0

>SelectLayer
{
<Layer [blayer]
<Type 0 ' default; just here for clarity
}
if sys(80) > 0 then
  >Erase
  {
  }
endif

regen
End




prl

#11
And keep in mind, it is a block.  So if you redefine it, it will affect all the locations.  And also the symmetry of the block is important.


prl

#12
Or if you are a carpenter, the crooked nail.  You get the point.


samdavo