AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Distinguished Contributor
cadman33619
Posts: 166
Registered: ‎07-21-2009
Message 1 of 21 (451 Views)
Accepted Solution

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

451 Views, 20 Replies
11-01-2012 09:53 AM

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

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.

*Expert Elite*
BrianHailey
Posts: 2,815
Registered: ‎04-27-2005
Message 2 of 21 (446 Views)

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

11-01-2012 10:11 AM 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 Hailey
CAD-1.com
My Blog
Distinguished Contributor
cadman33619
Posts: 166
Registered: ‎07-21-2009
Message 3 of 21 (441 Views)

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

11-01-2012 10:26 AM 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

*Expert Elite*
AllenJessup
Posts: 5,942
Registered: ‎05-21-2003
Message 4 of 21 (436 Views)

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

11-01-2012 10:55 AM 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.

Distinguished Contributor
cadman33619
Posts: 166
Registered: ‎07-21-2009
Message 5 of 21 (421 Views)

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

11-01-2012 11:50 AM 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)

*Expert Elite*
AllenJessup
Posts: 5,942
Registered: ‎05-21-2003
Message 6 of 21 (416 Views)

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

11-01-2012 11:55 AM 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

Distinguished Contributor
cadman33619
Posts: 166
Registered: ‎07-21-2009
Message 7 of 21 (413 Views)

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

11-01-2012 11:57 AM 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.

*Expert Elite*
AllenJessup
Posts: 5,942
Registered: ‎05-21-2003
Message 8 of 21 (403 Views)

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

11-01-2012 12:17 PM 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

Distinguished Contributor
cadman33619
Posts: 166
Registered: ‎07-21-2009
Message 9 of 21 (394 Views)

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

11-01-2012 12:27 PM 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?

*Expert Elite*
AllenJessup
Posts: 5,942
Registered: ‎05-21-2003
Message 10 of 21 (391 Views)

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

11-01-2012 12:33 PM 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

 

 

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.