Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MTEXT in dxf

Status
Not open for further replies.

macbain

Civil/Environmental
Feb 7, 2006
2
I hope someone can help me with the dxf specification and requirements. I'm trying to use an MTEXT entity in a "manually" created dxf file. I have no problem with other basic entites (LINE, CIRCLE, TEXT, ...) but there seems to be some undocumented requirement(s) for MTEXT. I'm not using HEADER, CLASSES, TABLES, or anything that isn't required for basic entities mentioned above. Following is an example (which works fine as TEXT entity).

Thanks for your help.

Code:
   0 
SECTION 
    2 
ENTITIES 
    0 
MTEXT 
  100 
 AcDbMText 
    8 
layerName 
   10 
 0.0 
   20 
 0.0 
   30 
 0.0 
   40 
 0.1 
   41 
 2.5 
   71 
 1 
   72 
 1 
    1 
 This is text in the MTEXT entity. 
   50 
 0.0 
    0 
 ENDSEC 
    0 
 EOF

 
Replies continue below

Recommended for you

Never tried it but could you create some mtext in a drawing and dxf it out and see what gets output? I would assume something like text style definitions would need to reside in the file also.

"Everybody is ignorant, only on different subjects." — Will Rogers
 
Yes, thanks but I already tried that. Unfortunately there is a huge amount of "extra" info that also appears (HEADER, CLASSES, TABLES, ...). I call it "extra" because it isn't required for other entities (e.g., LINE, CIRCLE, TEXT, ..) In fact, some "extra" things like $ACADVER don't really even apply when I'm not creating it using acad.

I've tried to sort out the "extra" stuff before, but even with a simple LINE entity I found that you can't delete just some of it. Apparently the "extra" stuff isn't really extra; at least some of it is required.

Perhaps if I knew exactly what the minimum requirements are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor