Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Attribute Helper Error (deleted elements)

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
RodrigoEiras
613 Views, 2 Replies

Attribute Helper Error (deleted elements)

 

I have found the Attribute Helper from Brian Ekins very helpuf and it has in fact became a must for the work I am doing preparing automated 2D drawings for my company. I have come to a small issue I would like to point out to take into consideration in later versions.

 

When working in 2D drawings I use attributes to identify some elements in the drawings, mainly DrawingDimensions.

 

If you assign to an element an AttributeSet, but you delete that element later, the set of attributes remains appearing as linked to an element called "Nothing". When you are working in a drawing for quite a long time you can get quite a lot of those "Nothing".

 

I can delete the attribute set on this entity and the entity "Nothing" will dissapear, but when I press OK to close the AttributeHelper, I get the following message:

 

"Unexpected failure while updating the attribute information."

 

After that error the entity keeps on appearing on the list, so the "Nothing"'s keep on accumulating.

 

I attach some screen shots in attached PDF file.

 

I am very happy with the tool, and really grateful for it being shared. I just want to help to improve it! 

 

(If you also find the Attribute Helper a must, you can support the following idea in IdeaStation: integration-of-attribute-helper)

 

 I am working with:

Autodesk Inventor Professional 2015

64-Bit Edition

Build:203

Release: 2015 SP1 Update 3

 

 

 

 

 

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: RodrigoEiras

 

Hello Rodrigo.

 

I do Automated drawings and within the procedure of cleaning up the drawing prior to adding new dims which will have new attributes added i clean up the unused attributes with the attached rule.

 

This rule purges all the unused attributes, Hope it helps you out.

 

Regards

 

Paul

 

Private Sub PurgeAttributeSet()
	'Removes/Deletes all unused Attributes 
    Try
		Dim oApp = ThisApplication
        If oApp.ActiveDocument.DocumentType <> _
            DocumentTypeEnum.kDrawingDocumentObject Then
            MsgBox("Need to have an Drawing document active")
            Exit Sub
        End If

        Dim oDrawDoc As DrawingDocument
        oDrawDoc = oApp.ActiveDocument
        Dim oAttbMan = oDrawDoc.AttributeManager
        oAttbMan.PurgeAttributeSets("*")

    Catch ex As Exception
        MsgBox(ex.ToString())
    End Try

End Sub

 

Message 3 of 3
RodrigoEiras
in reply to: Anonymous

Thanks Paul. It works for me perfectly!.

 

It would be great if that could be added as a Purge button in the Attribute Helper. Smiley Wink

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report