Create linetype curtain

Create linetype curtain

jimschips
Observer Observer
7,025 Views
10 Replies
Message 1 of 11

Create linetype curtain

jimschips
Observer
Observer

Hi,

I'm trying to creat a linetype for curtain ("rideau" in french) with autocad 2021.

I created a shape, introduced the shape in the .lin but it says "Wrong definition of CURTAIN at line 2".

What's wrong in my shape ?

0 Likes
7,026 Views
10 Replies
Replies (10)
Message 2 of 11

Ed__Jobe
Mentor
Mentor

I don't know what you did wrong, but I redefined the shape and the linetype.

Ed


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.
How to post your code.

EESignature

0 Likes
Message 3 of 11

Kent1Cooper
Consultant
Consultant

Is it just missing a comma at the end of the first line of shape-definition code?

Kent Cooper, AIA
0 Likes
Message 4 of 11

jimschips
Observer
Observer

Thanks. 

Is it working for you ? For me it still says that the definition of the shape is wrong

0 Likes
Message 5 of 11

jimschips
Observer
Observer

Maybe, I can't open shape file

0 Likes
Message 6 of 11

Kent1Cooper
Consultant
Consultant

@jimschips wrote:

Maybe, I can't open shape file


You need to fix it in the .shp file, then COMPILE that into the .shx file [replacing the former one].

Kent Cooper, AIA
0 Likes
Message 7 of 11

jimschips
Observer
Observer

Yes but I can't open shp and neither can I import shp in autocad

0 Likes
Message 8 of 11

Kent1Cooper
Consultant
Consultant

@jimschips wrote:

Yes but I can't open shp and neither can I import shp in autocad


A plain-text editor such as Notepad won't open it?  But no, AutoCAD can't use it in .shp format, but needs the .shx compiled version.

EDIT:  If "can't open" means that you double-clicked on the file in a file explorer and it didn't know what program to open it with, i.e. you don't have a program assigned for opening .shp files, then either:

A)  right-click on the file and choose "Open with...", or

B)  assign Notepad to be that program for that file type, or

C)  just start Notepad first, and in its Open function, go to the file.

Notepad can work on .shp files [in fact, you must use it or another plain-text editor, never something like a word-processing program].

Kent Cooper, AIA
0 Likes
Message 9 of 11

Pointdump
Consultant
Consultant

Hi Jimmy,
Welcome to the Autodesk Forums.
Not sure what the problem is. I had no problem opening your drawing and using Rideau.lin. I only had to "load" the Rideau linetype and change the Linetype Scale to 0.01.
Dave

 

Rideau_1.png

 

Rideau_2.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 10 of 11

Kent1Cooper
Consultant
Consultant

Your shape also worked for me.  I simplified the linetype definition:

A,0,-14,[RIDEAU,Rideau.shx],-14,0,-14,[RIDEAU,Rideau.shx],-14,0

to eliminate the overlap shown in @Pointdump s image in Message 9, and so that [it seems to me] it "sits" better in relation to overall object lengths:

Kent1Cooper_0-1691427001940.png

But note the curved usage, and the misalignment of ends of the shape [the dashed grey is the "path" if it were not a shape-including linetype]:

Kent1Cooper_1-1691427096439.png

That's because a shape can be used only in its entirety in one piece.  If you use the linetype on curves, such as for hospital-room cubicle dividers, I would recommend defining the shape as half of the "S", and using it in the way that AutoCAD's ZIGZAG linetype does, with every other one flipped.  You will get this kind of better look, closer to meeting at the ends of the shapes, on curved paths that way:

Kent1Cooper_2-1691427255179.png

 

Kent Cooper, AIA
Message 11 of 11

Ed__Jobe
Mentor
Mentor

@jimschips You are probably using the same old linetype that was loaded previously. Open the new dwg in my zip file. It has my linetype loaded.  To properly use the new linetype, open a new dwg, run the LINETYPE command and load the new linetype. Then set it as the current linetype and draw a line.

Ed


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.
How to post your code.

EESignature

0 Likes