DxfXRecord how to?
Earthbound
4/26/2008 1:13 AM
|
---|
Wout could you complete/correct the following psuedocode for me?
C# Code: private void ConvertTxtInDXF( |
Wout
4/27/2008 12:29 PM
|
---|
Hi Johan,
Objects are part of the object dictionary tree, as opposed to entities that go into the DxfModel.Entities collection. The dictionary tree is rooted in DxfModel.DictionaryRoot. So you can add the XRECORD directly to the root dictionary, or organize it in your own child dictionary.
Let me know if that gets you going.
Wout
PS 1: Those ToString() calls you do are not necessary.
PS 2: You can also do (bit more efficient):
  DxfText textEntity = entity as DxfText;
  if (textEntity != null) {
    xrecord.Values.Add(new DxfXRecordValue(5, textEntity.Text));
  }
|