Linetype Help

Linetype Help

Anonymous
Not applicable
2,286 Views
11 Replies
Message 1 of 12

Linetype Help

Anonymous
Not applicable

I recently upgraded my AutoCAD from 2019 to 2022. I noticed while working on a drawing one of my linetypes no longer looked the way it was created. It was a continuous line with empty dots/bullets, but now the line is no longer continuous and a dash is in place where an empty dot/circle was supposed to be. I tried to create a new linetype but I'm not having the best of luck with it. I also tried to add it into the file I import my linetypes but I seem to mess up since I get error messages about line definition.

 

Now that I learned the difference between a BUS connection & DCS connection I wanted to edit one linetype and create a new linetype. Attached is an image of the line types as they are now.

 

DCS connection should look like (--0--0--0--0--0--0) with empty dots/circles and no line going through the circle and the dashes are not separated.

BUS connection should look like (--0--0--0--0--) with filled in dots/circle also dashes are not separated.

 

The thing is I would like to keep both dots the same size and have the fill in be the difference between them.

Any help will be appreciated.

 

Thank you

Irving

 

0 Likes
2,287 Views
11 Replies
Replies (11)
Message 2 of 12

dbroad
Mentor
Mentor

Did you use a special font for the "o" and bullet symbols?  If so, is the path to that/ose font/s on your support files path?  AutoCAD linetypes will always end and begin the the line part though, not a symbol.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 12

Anonymous
Not applicable

I'm not sure if it was a special font, it was created before I started working in the company. The path and support files all migrated when I upgraded to 2022 but everything else is fine just this one line type, which I believe was a custom linetype to begin with.

0 Likes
Message 4 of 12

dbroad
Mentor
Mentor

Open the .LIN file and look at the symbol coding. If the style isn't standard, then perhaps the style doesn't exist in your drawing.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 5 of 12

Anonymous
Not applicable

When I go to the .LIN file, it is not there but AutoCAD has in the line type properties. The style is not standard like I said I believe the previous drafter created it, I just don't know how he did it with no path.

0 Likes
Message 6 of 12

vinodkl
Mentor
Mentor

Hi @Anonymous 

Looks like the linetype has been embed into the drawing. Try this lisp(see attachment) to extract the line types from the drawing to .lin file 🙂

 

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes
Message 7 of 12

dbroad
Mentor
Mentor

That's nice.  You can also use vlide -> view -> browse drawing database -> browse tables -> <linetypes> -> pick linetype and see the code.

Architect, Registered NC, VA, SC, & GA.
Message 8 of 12

Anonymous
Not applicable

So I used "vlide" and found the code, I attached it at the bottom. Do I add this to the AutoCAD definition file? 

0 Likes
Message 9 of 12

dbroad
Mentor
Mentor

Unfortunately, it doesn't tell you anything about the complex portions of the linetype.  For that, try using @vinodkl 's code or the following, if you're wary about zip files.

 

 

;;;To get basic linetype information, either use the vlide method or
;;;copy/paste the code below into either the vlide console or the command line.
(tblsearch "ltype" "<linetype name>")
;;;Example:
(tblsearch "ltype" "DCS")
;;;This doesn't tell you anything about the complex components.

;;;To get the complete complex linetype information use this
;;;To interpret the data, look at a dxf manual
(setq info (entget (tblobjname "ltype" "<linetype name>")))
;;;Example:
(setq info (entget (tblobjname "ltype" "DCS")))
;;;To get the first text style information from the linetype use this after the above
(setq style (entget (cdr(assoc 340 info))))

;;;Code 3 will tell you the font name.  Code 2 will tell you the style name.

 

 

 

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 10 of 12

Anonymous
Not applicable

@dbroad I followed what you advised and this is what I pulled up. Problem is when I try to follow the path from code 3 I run into issues. DWG folder doesn't exist, but projects does, so I followed it until I got to Blocks. After I clicked into blocks, the computer folder was not there.

 

Attached is that I pulled up.

0 Likes
Message 11 of 12

Anonymous
Not applicable

@vinodkl When I tried your link it downloaded as a vxf file not a zip. I could not open nor extract anything.

0 Likes
Message 12 of 12

dbroad
Mentor
Mentor

I think you're out of luck unless you can find the folder.

To recreate the linetypes, at least for the filled dot, I would recommend finding a TTF font that is on your system and has the character.  The process for re-creating a shapefile and linking that to a linetype is complex.

The process of coding a complex linetype isn't difficult.

Sorry I can't help more.

Architect, Registered NC, VA, SC, & GA.
0 Likes