Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is it possible to create a linetype that just consists of the repeated shape? I'm trying to create railway tracks and my shape looks like this.
My linetype definition that ive tried is this:
*TRACK,Track
A,0.0001,-1.1622,[TRACK,Track.shx]
attempting to get a very small line, and then a space for my shape to fit into. This is what I get. Does anyone know the syntax to just include a repeating shape?
Dale
Solved! Go to Solution.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
dmleves49 wrote:Is it possible to create a linetype that just consists of the repeated shape? ....
My linetype definition that ive tried is this:
*TRACK,Track
A,0.0001,-1.1622,[TRACK,Track.shx]
attempting to get a very small line, and then a space for my shape to fit into. .... Does anyone know the syntax to just include a repeating shape?
....
Given the way your shape must be defined relative to its starting point, put the shape insertion part before the pen-up [negative-number] designation, rather than after. You can't entirely eliminate the short continuous-line parts at the ends -- the best you can do is adjust the overall length to minimize them.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Sorry If I'm not understanding your reply, but the shape cannot be the first spec. That was one of the first thing i tried. The Space can't be the initial spec either.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
dmleves49 wrote:Sorry If I'm not understanding your reply, but the shape cannot be the first spec. That was one of the first thing i tried. The Space can't be the initial spec either.
No, but it can be the second one rather than the third -- my suggestion was to put it before the pen-up designator, not before the initial pen-down designator:
A,0.0001,[TRACK,Track.shx],-1.1622
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
What a cool linetype.
However, I don't use linetypes that require SHX files. its just another thing that has to occompany your drawing when it shared. I have defined my linetypes to use the standard font. That way ALL users recieving my drawings can view them without the need of other files.
Here's my Vinyl Fence ... set your Standard Textstyle to Simplex with a 0.0 height for it to appear correctly.
*Fenceline_Vinyl,Fenceline Vinyl ____-____-____-____-____-___
A,0.250,-0.050,["|",STANDARD,S=0.0250,R=0.0,X=-0.0
For MY tracks ... I went in the field, took exact measurements and then created a dynamic block. Only drawback of a dynamic block (at least in version 2008), you can't make one to to work around an arc.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yes arcs are definitely a plus.![]()
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
That gives me a 'bad definition' error. Thanks for the suggestion though.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hmm. It works great for me. You didn't by chance place it on three lines in the LIN file. It must be only two lines.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
dmleves49 wrote:That gives me a 'bad definition' error. Thanks for the suggestion though.
Well, I don't have any better ideas. We have some that are defined just that way, and work well.
Re: Custom Linetype - Shapes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I tried it again and of course it worked nicely. Thank you very much it looks much better. Due to the limitations of AutoCAD and the way they included the shape functionality I do have this problem in polylines where there is a vertex. (Line to Arc transition.


