개정판 64fbc9f0
Dump AttributeDefinition Data
Change-Id: I2061e47ebec5b026160585446956ad484776007c
DTI_PID/OdReadExMgd/OdReadExMgd.cs | ||
---|---|---|
333 | 333 |
} |
334 | 334 |
|
335 | 335 |
/************************************************************************/ |
336 |
/* Dump AttributeDefinition Data */ |
|
337 |
/************************************************************************/ |
|
338 |
void dump(AttributeDefinition pAttDef, int indent) |
|
339 |
{ |
|
340 |
writeLine(indent, "Field Length", pAttDef.FieldLength); |
|
341 |
writeLine(indent, "Invisible", pAttDef.Invisible); |
|
342 |
writeLine(indent, "Locked in Position", pAttDef.LockPositionInBlock); |
|
343 |
|
|
344 |
using (var text = new DBText()) |
|
345 |
{ |
|
346 |
text.SetPropertiesFrom(pAttDef); |
|
347 |
text.TextStyleId = pAttDef.TextStyleId; |
|
348 |
text.Position = pAttDef.Position; |
|
349 |
text.Rotation = pAttDef.Rotation; |
|
350 |
text.WidthFactor = pAttDef.WidthFactor; |
|
351 |
text.Height = pAttDef.Height; |
|
352 |
text.Thickness = pAttDef.Thickness; |
|
353 |
text.Justify = pAttDef.Justify; |
|
354 |
text.TextString = !string.IsNullOrWhiteSpace(pAttDef.TextString.Replace("*", "")) ? pAttDef.TextString : pAttDef.Tag; |
|
355 |
if (pAttDef.Justify != AttachmentPoint.BaseLeft) |
|
356 |
text.AlignmentPoint = pAttDef.AlignmentPoint; |
|
357 |
dumpTextData(text, indent, Program.xml.DocumentElement); |
|
358 |
} |
|
359 |
} |
|
360 |
/************************************************************************/ |
|
336 | 361 |
/* Dump Block Reference Data */ |
337 | 362 |
/************************************************************************/ |
338 | 363 |
static XmlNode dumpBlockRefData(BlockReference pBlkRef, int indent, XmlNode node) |
... | ... | |
3982 | 4007 |
case "AcDbXline": |
3983 | 4008 |
dump((Xline)pEnt, indent); |
3984 | 4009 |
break; |
4010 |
case "AcDbAttributeDefinition": |
|
4011 |
dump((AttributeDefinition)pEnt, indent); |
|
4012 |
break; |
|
3985 | 4013 |
case "AcDbPdfReference": |
3986 | 4014 |
case "AcDbDwfReference": |
3987 | 4015 |
case "AcDbDgnReference": |
내보내기 Unified diff