Jump to content

line definition in AutoCAD using shapes and lin file


Recommended Posts

Posted

I'm working in AutoCAD 2005 and last time I have got a question/ask create very strange line (for me it is strange but maybe not for you).

The type of line is straight line and above of straight line (depend on length) there should be only one symbol (from shp library) e.g square - like belowe:

 

 

 

 

(start point) -----------------I(only 1 shp)I------------------(end point)

 

As I wrote above. The line should shown straight line (depend of drawing length) and only one symbol (the best from shp library).

The best is also if shape seat not exactly on the line but is offseted little bit up.

 

Is it possible to create it using only shapes and line definition?

How is it possible to make it by auto lisp?

 

Thank you very much for help

Posted

Try this add to acad.lin or save as a custom linetype.

 

*EXISTING_GAS_MAIN2,Existing Gas main2 - - -G- - -G- - -G- - -G- - -

A,2.5,-2.5,2.5,-2.5,["G",STANDARD,S=1.8,R=0.0,X=-1.8,Y=-.9],-3

Posted

Here is the linetype definition for a guide rail using a shape named CIRC1 that is defined in the shape file named utility.shx. The shape was created using Express Tools' Mkshape command.

*GUIDE_RAIL,___0____0____0____0_____0_____0__
A,0.20,[CIRC1,utility.shx,x=-.1,y=.02,s=.020],0.20

Posted

To answer your queston - no, there is not a way for a linetype to include just one shape at the midpoint of the line, no matter its length. Shapes must be at a uniform spacing. You'll need some other way to annotate the line, such as with a block. A lisp routine could facilitate the labeling, placing the mark at line midpoint and desired rotation.

Posted
To answer your queston - no, there is not a way for a linetype to include just one shape at the midpoint of the line, no matter its length. Shapes must be at a uniform spacing. You'll need some other way to annotate the line, such as with a block. A lisp routine could facilitate the labeling, placing the mark at line midpoint and desired rotation.

 

Thank you very much. I see that there is impossible. I have try many diffrent way (but always using only the tools for line creating).

I am saaaad.:cry:

Posted

There are not constraints. The one thing is to obtain only one symbol (like shp shape) on the line depend on the length of section.

Posted
constraints?

 

 

There are not constraints. The one thing is to obtain only one symbol (like shp shape) on the line depend on the length of section. - Maryan

Posted
Here is the linetype definition for a guide rail using a shape named CIRC1 that is defined in the shape file named utility.shx. The shape was created using Express Tools' Mkshape command.

*GUIDE_RAIL,___0____0____0____0_____0_____0__
A,0.20,[CIRC1,utility.shx,x=-.1,y=.02,s=.020],0.20

 

 

Thank you very much but it is not what I need.

Posted
Try this add to acad.lin or save as a custom linetype.

 

*EXISTING_GAS_MAIN2,Existing Gas main2 - - -G- - -G- - -G- - -G- - -

A,2.5,-2.5,2.5,-2.5,["G",STANDARD,S=1.8,R=0.0,X=-1.8,Y=-.9],-3

 

 

Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...