Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Codice DXF per spessore linea da inserire nell'entità Layer

GSpro
Participant

Codice DXF per spessore linea da inserire nell'entità Layer

GSpro
Participant
Participant

Ho file DXF che devo utilizzare come base, in una applicazione VB.net. Ma non riesco a capire qual è il codice DXF che individua, nell'entità LAYER, lo spessore delle linee. Il codice che ho scritto è il seguente:

LAYER
2
PUNTI
70
0
62
1
6
SOLID
0
LAYER
2
NOMI
70
0
62
3
6
SOLID
0

Col seguente codice creo due layer "PUNTI" e "NOMI", ma vorrei impostare lo spessore delle linee, quale codice devo usare?

Grazie

Giorgio

 

0 Me gusta
Responder
577 Vistas
8 Respuestas
Respuestas (8)

Kent1Cooper
Consultant
Consultant

If you really mean thickness as AutoCAD means it, the code is 39.  See the DXF Reference for a Line.  But in AutoCAD, thickness is "up off the page" in the Z direction.  If you really mean lineweight, see 370 in the Related Reference to Common Group Codes.  If in the case of a Polyline, you really mean width, that's also different, and controlled separately for each end of each segment.

Kent Cooper, AIA
0 Me gusta

cadffm
Consultant
Consultant

Hi,

 

you are talking about Layer entity, so you mean lineweights (dxf 370).

In this case, think about that lineweight are supported since dwg/dxf format R2000 and newer.

 

Sebastian

0 Me gusta

GSpro
Participant
Participant

ho provato il codice 370, ma segnala 

Il gruppo 370 è sconosciuto per la tabella alla riga 218.
Input DXF non valido o incompleto - disegno eliminato.

allego il file DXF base

 

0 Me gusta

Kent1Cooper
Consultant
Consultant

I don't work in DXF files, but I notice one thing about that line in yours.  It is the first line with leading spaces before the actual information, in fact it's the first instance of any spaces in the file.  Could it be that DXF files do not like leading spaces?

Kent Cooper, AIA
0 Me gusta

cadffm
Consultant
Consultant

 

Hi,

 

you are talking about Layer entity, so you mean lineweights (dxf 370).

In this case, think about that lineweight are supported since dwg/dxf format R2000 and newer

 

 

Sebastian

0 Me gusta

GSpro
Participant
Participant
Apro il file con Autocad 2023, quindi non penso che il problema sia quello
0 Me gusta

GSpro
Participant
Participant
Ho eliminato gli spazi iniziali, ma non risolve il problema
0 Me gusta

cadffm
Consultant
Consultant

@GSpro  schrieb:
Apro il file con Autocad 2023, quindi non penso che il problema sia quello

Please read the error message again (try to open your .dxf and READ the message [F2] while Acad stopps the open process).

UNKNOWN means: It's unknown - not known in a file of this format.

 

Your file is not a propper 2000 (or higher) file format,

the program doesn't expect a dxf code 370.

Sebastian

0 Me gusta