[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libredwg] Dabbling in some coding.

From: Dave Coventry
Subject: [libredwg] Dabbling in some coding.
Date: Fri, 11 Jun 2021 01:14:35 +0200

Hi Reini,

I'm quite keen to generate SVG files from my DWG drawings and I've had
a look at some of the code you've written in the dwg2SVG module.

In particular, I'm looking at generating  MTEXT elements as these are
used to describe dimensions in the BLOCKS table.

Looking in the dwg.h header file, I see 'typedef struct
_dwg_entity_MTEXT' which includes the line 'BITCODE_T text;
/*!< DXF 1 */'.

If I use this:

  Dwg_Entity_MTEXT *text = obj->tio.entity->tio.MTEXT;
  fprintf(stderr, "mtext is:%s\n", text->text);

the output is

mtext is:\

ie, a single backslash.

If I look at the dxf output from the same file, it tells me that the
DXF_CODE 1 has the entry:

This describes the figure 1700 with centre alignment (the \A1;' part).

How do I access the full content of the MTEXT entity? I don't see any
way to access the DXF_CODE 3. Is this because it hasn't been
implemented yet?

Kind regards,


PS. Thanks for the fantastic work you've done on this.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]