Attribute Utility

Working with attributes can sometimes be a bit frustrating because the only access you have to attributes is through the API.  You can’t quickly create, edit, or view an attribute without writing a program to do it.  Because of this I became a bit frustrated when working on my first program that made extensive use of attributes.  For the program to function correctly the attributes it was using all had to be correct and it was difficult to debug problems to determine if the problem was my program or the attributes it was trying to access.

For my own sanity I wrote a little utility that would let me view all of the attributes in a document.  That helped a lot but I never felt it was finished because it only allowed me to view existing attributes and I still couldn’t easily create or edit an existing attribute without writing code.  As part of the series of blog posts I’ve I’m writing about attributes, I’ve completely re-written the utility so that it provides full creation, edit, and viewing of attributes.  This new version of the utility is an add-in.  To use it just download and install the add-in and look at the readme that’s installed for instructions on how to use it.  When installing you have the option of also installing the source code, if you’re interested in the internals of how it works.  It was written using the Visual Basic language in Visual Studio 2008.

Let me know if you have suggestions or find any problems.


Update (Aug. 10, 2015) – I've updated this utility.  The update can be found here.


Comments

2 responses to “Attribute Utility”

  1. Hi Brian,
    some time ago, we tried to use occurrence attributes as occurence properties. But how can we take them over to exchange formats like dwf, 3d-pdf, adsk,…?
    We found no way to do this.
    Thanks for any hints
    René

  2. Rodrigo Avatar
    Rodrigo

    Hi Brian!
    thanks a lot for your attribute utility, it’s very usefull.
    but i want to ask you, if it’s possible to the utility to show,color or highlight all the sufaces with attributes?
    What part of the code do i have to change?
    best regards,Rodrigo.

Leave a Reply to RodrigoCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading