Jump to content
dal-designs

Linetype with Text Shows Question Marks Instead

Recommended Posts

dal-designs

Hey all,

 

 

This little conundrum my supervisor hit me with on my first week at a new job. It seems to me that I ran into it once or twice years ago working for a civil engineer, but, well- I've slept since then. No recollection of the solution.

 

 

Anyway, he has a linetype of the 'line segments and text' variety (-- X -- X -- X -- for example) that isn't displaying text. Instead, it displays question marks, so the above example ends up looking like -- ? -- ? -- ? -- on screen. There are multiple linetypes of this sort in the drawing, but only one seems to have lost its mind like this. Whatever is doing it, purging the drawing and copy+paste of a sample segment from another drawing doesn't help- as soon as the copied segment hits, the text goes all ? again.

 

 

Any ideas? We're all using vanilla ACAD 2014 here.

Share this post


Link to post
Share on other sites
ReMark

Did you check the linetype definition file to see what font is being referenced?

Share this post


Link to post
Share on other sites
dal-designs

It turns out that the problem started when we upgrade our ACAD. My guess is, the errant linetype (PL with a phantom line in between for a property line) was lost during the upgrade, and ACAD no longer knows what to do with that definition. It happens across all machines and all drawings that had that linetype, so that's probably it.

 

But your answer still pointed me in the right direction. Next I can either try to find that linetype and add to my .lin files, or take a crash course in how to custom build a linetype!

Share this post


Link to post
Share on other sites
ReMark

How is it then that all the other custom linetypes got ported over when everyone's computer was upgraded? There should have been a single custom linetype file or a copy of the edited version of acad.lin on the network, someone's (CAD manager) hard drive, or on a flash drive.

Share this post


Link to post
Share on other sites
dal-designs

How is it then that all the other custom linetypes got ported over when everyone's computer was upgraded?

 

There were no other custom linetypes found. ACAD.lin and ACADISO.lin in the c:/Program Files/AutoCAD etc etc directory both seem to be default.

 

 

What I did was I copied the standard GAS line in ACAD.lin and modified it accordingly for the replacement line as a test, figuring that if it works I can tweak it later. It took me awhile to figure out that the acad.lin I was editing was *not* the acad.lin that was loaded (because, hey, it's a great idea to have the same file in two different places) but now at least I think I'm on the right track trying to re-create this linetype.

Share this post


Link to post
Share on other sites
eldon

My guess is that the linetype references a character that is not in the current font file.

 

If the Unicode Property Line character is being used (214a), then that symbol is not in every font file.

 

If an edited font file was being used on the old system, then it has not been transferred.

Share this post


Link to post
Share on other sites
dal-designs

Well, so far so good. Except for two things.

 

 

One, I can't seem to get the Phantom linetype to show up between text (even though I copied that directly from the phantom linetype entry in the acad.lin file). Two, even though I did not (to my knowledge) touch any other definitions in that file, for some reason now I get the "bad definition of" error when I try to load FENCELINE1, FENCELINE2, TRACKS, BATTING, and ZIGZAG.

 

 

This is my attempted property line. I want it to be a segment of Phantom linetype between the PLs...

 

*PROPLINE,Property Line ___ _ _ ___ PL ___ _ _ ___ PL ___ _ _ ___ PL

A,.5,-.2,["PL",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.2

 

I'm wondering if I should continue here or post a new topic to help figure out exactly what id (still) wrong.

 

EDIT: First problem is solved - I needed to reset FONTALT. However, I still can't seem to recreate the PHANTOM linetype between the texts

Share this post


Link to post
Share on other sites
eldon

What font is assigned to Standard font style?

 

The Phantom linetype is not defined in your linetype. The separate dashes and spaces have to be itemised.

Share this post


Link to post
Share on other sites
eldon

Those other linetypes all are referenced to the standard shape file ltypeshp.shx.

 

Perhaps the paths are not set correctly.

Share this post


Link to post
Share on other sites
dal-designs

Sorry, but what do you mean by 'itemised'?

 

 

(This is my first time to create a custom line type. I apologize if I don't understand the format or syntax required).

 

To answer your other question, our STANDARD style uses txt.shx.

Share this post


Link to post
Share on other sites
eldon

A linetype definition itemises all the "pen ups" (negative distances) and "pen downs" (positive distances) to form the required pattern.

 

The standard Phantom linetype definition is :-

 

*PHANTOM,Phantom ______ __ __ ______ __ __ ______

A,1.25,-.25,.25,-.25,.25,-.25

 

and that is not yet defined in your definition.

Share this post


Link to post
Share on other sites
dal-designs

Gotcha. How would that definition work with text interspaced? Would it be something like "... A,1.25,-.25,.25,-.25,.25,-.25 PL A,1.25,-.25,.25,-.25,.25,-.25 PL" etc, or am I way off?

 

(This is the first time I've worked with custom line types, so please bear with me).

Share this post


Link to post
Share on other sites
eldon

When you want to embed text into the linetype, follow the example of the Propline defintion you posted before. The embedded text or shape is in the square brackets, and gives you factors to scale, shift in the x and y directions, and to rotate or place Upright. Remember that each font file has different dimensions for the actual letters, so getting the x and y offsets for one font, may look different for another font.

 

You can probably get a lot more information if you look up Linetype Definitions in your Help file.

Share this post


Link to post
Share on other sites
ReMark

I got it to work using the Standard font and by emulating the line length and spacing of the Phantom(.5X) linetype with a slight tweak. See for yourself....

 

PropertyLineLTYPE.jpg

 

This is what my linetype definition file looks like.

 

*PROPLINE,Property Line ___ _ _ ___ PL ___ _ _ ___ PL ___ _ _ ___ PL

A,.625,-.125,.125,-.125,.125,-.125,.625,-.2,["PL",Standard,S=.1,U=0.0,X=-0.1,Y=-.05],-.2

Share this post


Link to post
Share on other sites
ReMark

PropertyLineLTYPE_TXT.jpg

 

Same linetype with a slight difference. Although Standard is the font that is called for I simply changed the font name used by Standard from the default of Arial to Txt. Note the spacing difference on either side of the letters.

Share this post


Link to post
Share on other sites
eldon

Or even slightly overlap the letters.

PL.PNG

Share this post


Link to post
Share on other sites
dal-designs

Thanks for the help, everyone. Remark's definition is exactly what I needed- but it's good to know I was at least pretty close, and Eldon's explanation of what all that shorthand actually means helped, too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×