Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why does my linetype change if i rotate passed 180 degrees?

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
cadman33619
1214 Views, 20 Replies

Why does my linetype change if i rotate passed 180 degrees?

i have a simple fence line type with "x"s....if i draw the line straight up or to the right it looks perfect. but if i draw it anywhere to the left then the Xs are off centered. How can i correct this?

 

thanks

20 REPLIES 20
Message 2 of 21
BrianHailey
in reply to: cadman33619

Look in your linetype definition and see if it has a "u=0.0" value in it. THIS post explains what I'm talking about.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 3 of 21
cadman33619
in reply to: BrianHailey

i know what you mean...i do have U=0.0 but thats not really the issue i'm having. here is an example...

 

the top one i drew from left to right.

the next one i drew from right to left,

the next from top to bottom

the next from bottom to top.

 

if i rotate that last one so that its pointing north east then it will look perfect.

 

here is my .lin file:

 

*FENCELINE,X
A,.5,-.2,["X",STANDARD,S=.05,U=0.0,X=-0.13,Y=-0.025],.05

Message 4 of 21
AllenJessup
in reply to: cadman33619

I, personally, don't like using text X's for fence lines. I long ago created a shape to use instead.

 

*FENCEX,Fence with Xs
A,1.0,-0.09848,[FENCEX,FenceX,s=.05],-0.09848,1.0

 

Allen

 

Rename FenceX.txt to FenceX.shp if you want the shape file.



Allen Jessup
Engineering Specialist / CAD Manager

Message 5 of 21
cadman33619
in reply to: AllenJessup

thanks....can you tell me how to add that new line type to acad? it doesnt seem to work the same as adding a .lin file.

(acad 2011)

Message 6 of 21
AllenJessup
in reply to: cadman33619

Not sure what trouble you're having. You can either add that definition to your .lin file or put it in it's own FenceX.lin file and load it from there. The FenceX.shp file has to be somewhere in your search path. I tested it in 2012 and it worked there.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 7 of 21
cadman33619
in reply to: AllenJessup

ok i understand now. i added it to the support folder and i was able to load it. but i'm still not sure how to use it.

Message 8 of 21
AllenJessup
in reply to: cadman33619

OK.

 

*FENCEX,Fence with Xs
A,1.0,-0.09848,[FENCEX,FenceX,s=.05],-0.09848,1.0

 

Should be in either your Acad.lin, AeccLand.lin, your company standard .LIN file or a .LIN file by itself. The FenceX.txt file should be renamed FenceX.shx and put in your search path.

 

You should use the Linetype command and select Load from the upper right hand corner of the Linetype Manger dialog box. In the Load or Reload Linetypes dialog box select File in the upper left just to the right of the current .LIN file name. Unless that current name is where the new definition is. After the correct file has been selected, scroll through the selections in the lower pane of the Load or Reload Linetypes dialog box and select FENCEX, Then OK out of that dialog box. Now scroll through the selections in the lower pane of the Linetype Manger dialog box. FENCEX should show as a currently loaded linetype.

 

Now just use that as you would any other defined linetype.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 9 of 21
cadman33619
in reply to: AllenJessup

what i'm confused about is the .lin and the FenceX.txt.....

i open text editor and paste:

 

*FENCEX,Fence with Xs
A,1.0,-0.09848,[FENCEX,FenceX,s=.05],-0.09848,1.0

 

and save it as fencex.lin, correct? so where does the FenceX.txt come from?

Message 10 of 21
AllenJessup
in reply to: cadman33619

Attached to my original post is a file FencX.txt. The discussion group wont let me post a .SHX file so I renamed it to .TXT so I could post it.

 

Allen

 

 



Allen Jessup
Engineering Specialist / CAD Manager

Message 11 of 21
neilyj666
in reply to: cadman33619

I can't get this to work at all...Smiley Frustrated

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 12 of 21
AllenJessup
in reply to: neilyj666

If either of you want to email me a jessupa at co.rockland.ny.us I'll send both files to you.

 

Attached is a file created in 2012 and saved to 2007 with the linetype shown in it.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 13 of 21
cadman33619
in reply to: AllenJessup

i see..

 

ok im getting bad definition on line 2. i copied yours exactly.

Message 14 of 21
AllenJessup
in reply to: cadman33619

I've reviewed the creation of custom linetypes from the 2012 help files. The only difference I see is that they now specify the the .SHX extension. Like this:

 

*FENCEX,Fence with Xs
A,1.0,-0.09848,[FENCEX,FenceX.shp,s=.05],-0.09848,1.0

 

I also see that in the original post I said to rename the the file to a .SHP file. It should be a .SHX file.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 15 of 21
neilyj666
in reply to: neilyj666

Still no luck - I'll try again tomorrow with fresh eyes...

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 16 of 21

you need to compile the shp file first.

 

In autocad type "Compile" (without the quotes) on the commandline

Locate and select the fencex.shp file and click open.

 

The command line should show this

 

"Compiling shape/font description file
Compilation successful.  Output file D:\My Documents\Cad\AWP Cad Setup\Line Types\FenceX.shx contains 100 bytes."

 

Using windows explorer, copy the resulting FenceX.shx file into a folder in your support path.

 

Back in autocad, load the linetype from the FenceX.lin file.

 

 

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 17 of 21

Thanks Andrew that seems to have done the trickSmiley Happy

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 18 of 21
cadman33619
in reply to: neilyj666

no working for me at all. guess i'll have to give up.

 

but i appreciate all your help guys.

Message 19 of 21

Have you tried the linetypes that ship with Civil 3D? There are two barbed wire fences in the AeccLand.lin linetype file that contain an "X" that stay centered in the line as the line is rotated.

 

Regards,

 

Peter Funk

Autodesk, Inc.



Peter Funk
Autodesk, Inc.

Message 20 of 21

wow...the barbed wire line types in AeccLand.lin are perfect. had no idea they were there.

 

thanks so much.

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

Post to forums  

Rail Community


Autodesk Design & Make Report