Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make a new fenceline2 line type with a solid hatched square

3 REPLIES 3
Reply
Message 1 of 4
tjburdick
825 Views, 3 Replies

How to make a new fenceline2 line type with a solid hatched square

I am trying to create a new line type that will allow me to have the square in the fenceline2 linetype solid.

Any ideas?
Thank you
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: tjburdick

Post your figure line as a drawing,to easy one look at it.

wrote in message news:5062803@discussion.autodesk.com...
I am trying to create a new line type that will allow me to have the square
in the fenceline2 linetype solid.

Any ideas?
Thank you
Message 3 of 4
Anonymous
in reply to: tjburdick

If you don't expect to use the empty-square version, you could just
re-define the BOX shape that FENCELINE2 uses, in the LTYPESHP.SHP file, (and
recompile it into LTYPESHP.SHX). You would need to fill it up with lines,
spaced depending on how big you typically would use it and with what kind of
lineweight. But since that BOX is only two units on an edge:

[original shape definition:]
*132,6,BOX
014,020,02C,028,014,0

you would also need to adjust the scale part of the linetype definition in
ACAD.LIN:

[original linetype definition:]
*FENCELINE2,Fenceline square ----[]-----[]----[]-----[]----[]---
A,.25,-.1,[BOX,ltypeshp.shx,x=-.1,s=.1],-.1,1

If three internal lines would fill it densely enough for you, try something
like:

*132,14,BOX
024,040,04C,048,044,010, 04C, 010,044, 010, 04C,038,024, 0
[That has a little overlap, but it's shorter than adding pen-up stuff to
avoid that.]

And since that's a FOUR-unit square, adjust the linetype definition to use
it at half the size:

*FENCELINE2,Fenceline
square ----[|||]-----[|||]----[|||]-----[|||]----[|||]---
A,.25,-.1,[BOX,ltypeshp.shx,x=-.1,s=.05],-.1,1

Or, if you want to keep the open-square one available, add another shape to
LTYPESHP.SHP, and linetype to ACAD.LIN, something like:

*135,14,BOXFILLED
024,040,04C,048,044,010, 04C, 010,044, 010, 04C,038,024, 0
[Use the next available unused shape number, if 135 is already used.]


*FENCELINE3,Fenceline filled
square ----[|||]-----[|||]----[|||]-----[|||]----[|||]---
A,.25,-.1,[BOXFILLED,ltypeshp.shx,x=-.1,s=.05],-.1,1

I hope that all works [haven't tested it].
--
Kent Cooper


wrote...
I am trying to create a new line type that will allow me to have the square
in the fenceline2 linetype solid.

Any ideas?
Thank you
Message 4 of 4
Anonymous
in reply to: tjburdick

Sorry.... I seem to have left an unwanted space before the final zeros in
the shape definitions (see fixed ones below).

As penance, I offer a slightly shorter way of defining the filled box, using
horizontal instead of vertical infill lines:

*135,13,BOXFILLED
040,02C,048,044,040, 03C, 048,024, 040, 01C,048,0

And a slightly DENSER way using diagonal fill in the same size box:

*135,21,BOXFILLED
024,040,04C,048,034,012,010,02A,01C,032,010,04A,010,032,01C,02A,010,012,014,048,0

[Again, I haven't tested them, so further penance may be in order. Watch
for word wrap.]

If those aren't dense enough, you could make a SIX-unit (or EIGHT- or
TEN-unit, or whatever) box with a longer shape definition, and reduce the
scale part in the linetype definition accordingly.
--
Kent Cooper


"Kent Cooper" wrote...
.....
If three internal lines would fill it densely enough for you, try something
like:

*132,14,BOX
024,040,04C,048,044,010, 04C, 010,044, 010, 04C,038,024,0 <<--[ removed
space before final zero]
[That has a little overlap, but it's shorter than adding pen-up stuff to
avoid that.]

And since that's a FOUR-unit square, adjust the linetype definition to use
it at half the size:

*FENCELINE2,Fenceline
square ----[|||]-----[|||]----[|||]-----[|||]----[|||]---
A,.25,-.1,[BOX,ltypeshp.shx,x=-.1,s=.05],-.1,1

Or, if you want to keep the open-square one available, add another shape to
LTYPESHP.SHP, and linetype to ACAD.LIN, something like:

*135,14,BOXFILLED
024,040,04C,048,044,010, 04C, 010,044, 010, 04C,038,024,0 <<--[ removed
space before final zero]
[Use the next available unused shape number, if 135 is already used.]


*FENCELINE3,Fenceline filled
square ----[|||]-----[|||]----[|||]-----[|||]----[|||]---
A,.25,-.1,[BOXFILLED,ltypeshp.shx,x=-.1,s=.05],-.1,1
.....

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost