I need help making a special linetype.

mezobot93
Explorer
Explorer

I need help making a special linetype.

mezobot93
Explorer
Explorer

Hey!

Im supposed to make a special linetype, but i cant get it right, and im not sure im doing it with the right method, im not that good with CAD, only with the basics.

Im supposed to make a linetype that looks like the pic i posted.

It supposed to represent a sewer pipe, and its global widht supposed to be the circumference of the pipe.

I made this linetype using a shape (MKSHAPE), and then made a linetype outof it (MKLTYPE).

The porblems:

-the insert and starting point is sopposed to be the yellow dot. When i made the linetype i clicked there, but it stills ad a little line at the beggining, and only starts the linetype after that. How can i make it start always with the rectangle?

-when i change the global widht its only chnages the widht of that small line (you can see on the pic). I want the global widht to be the distance between the top and the bottom of the rectangle (the red line). How can i set that up?

 

Is there any way to make a linetype, or any other way (maybe block) to make this happen?

0 Likes
Reply
381 Views
3 Replies
Replies (3)

mezobot93
Explorer
Explorer

Basically i need a linetype that acts like this one.

0 Likes

norman.yuan
Mentor
Mentor

I do not think you can reach your goal by creating your own line type file: you might be able to show the little rectangle with a shape, by changing the width/length of the rectangle (shape) according to lineweight is not possible, I think.

 

One alternative way is to do it programmatically, by using DrawableOverrule (i.e. to write code to let AutoCAD draw particular entity (in your code, it is likely 3Dpolyline or LWPolyline) as you wanted (a series of rectangle). Of course, this special line type presentation would only be presented when your code is loaded and in effect.

 

However, I'd avoid the temptation of using odd line type, which required extra linetype file to be loaded, or odd line type presentation (using DrawableOeverrule by programming), which requires extra code to be loaded (but if the odd line type presentation is only needed temporarily during certain CAD operation, it would be perfectly OK).

Norman Yuan

Drive CAD With Code

EESignature

0 Likes

C.J.Elliott
Participant
Participant

I have made several custom linetypes following the directions laid out in this link:

http://www.thecadmasters.com/2013/01/10/creating-custom-autocad-linetypes/

As mentioned the disadvantage is the additional linetypes must be loaded and the .shx file that is associated must me in the correct directory location.

0 Likes