Traverse - read - edit
Moderators: SDS, support, admin
Traverse - read - edit
I am trying to edit some block attributes but when I change their values and open again - there is no change.
Can you point out my mistake?
Look at the attached code, please.
Can you point out my mistake?
Look at the attached code, please.
- Attachments
-
- Program.zip
- (796 Bytes) Downloaded 1244 times
Re: Traverse - read - edit
Hello Ognyan.
CAD Import .NET imports a drawing to CADImage or its descendant object. Further drawing manipulations affect imported drawing only but not source file. So if attributes changed and file reloaded then won't be any changes. CAD Import .NET allows export modified drawing to DXF files, DWG export doesn't provided.
Attributes can be modified similarly to your code - just add calling Converter.Loads method for each modified attribute and for the insert. Also please note, changing an attribute's tag isn't correct until drawing contains attdef object with such tag. Otherwise you'll need to modify correspond attdef and all connected attribs.
Alexander.
CAD Import .NET imports a drawing to CADImage or its descendant object. Further drawing manipulations affect imported drawing only but not source file. So if attributes changed and file reloaded then won't be any changes. CAD Import .NET allows export modified drawing to DXF files, DWG export doesn't provided.
Attributes can be modified similarly to your code - just add calling Converter.Loads method for each modified attribute and for the insert. Also please note, changing an attribute's tag isn't correct until drawing contains attdef object with such tag. Otherwise you'll need to modify correspond attdef and all connected attribs.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support