Traverse - read - edit

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
ognyandim
Posts: 1
Joined: 05 Jan 2012, 13:23

Traverse - read - edit

Post by ognyandim » 05 Jan 2012, 20:11

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.
Attachments
Program.zip
(796 Bytes) Downloaded 1244 times

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Traverse - read - edit

Post by support » 09 Jan 2012, 16:30

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply