Anuncios

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

GSpro
578 Vistas, 8 Respuestas

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

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

 

Kent1Cooper
en respuesta a: GSpro

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
cadffm
en respuesta a: GSpro

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

GSpro
en respuesta a: Kent1Cooper

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

 

Kent1Cooper
en respuesta a: GSpro

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
cadffm
en respuesta a: GSpro

 

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

GSpro
en respuesta a: cadffm

Apro il file con Autocad 2023, quindi non penso che il problema sia quello
GSpro
en respuesta a: Kent1Cooper

Ho eliminato gli spazi iniziali, ma non risolve il problema
cadffm
en respuesta a: GSpro


@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