Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
I am somewhat experienced with .NET but have never used it much with the AutoCAD API until now.
I have a known titeblock name which I need to use in order to read, and more importantly change its attribute values. I am having a real heck of a time muddling throught the objects in the AutoCAD API in order to achieve this with VB.NET. After I tie the proper objects into my titleblock I have a set of named attributes (tags) I must search and change.
I am having a real problem finding any examples on the 'net that don't refer to LISP or VB6. There are some examples in the AutoCAD 2002 developer's manual but they all involve adding new blocks to a drawing and very simplistic forms of editing.
I've attached some code (c#, sorry) that finds a particular block in the drawing, and then finds the next 5 blank attributes within the bloc and writes values to it. Hopefully, this will get you started...
Thank you very much for the code, much appreciated. Although I know nothing about C# I do have access to developers who can convert it for me if necessary. Thanks again.