4 Replies Latest reply on Jul 1, 2014 6:11 AM by Andrea Bitta

    Attribute on texts

    Andrea Bitta

      I'm developing a translator for SolidWorks and I need to attach a sort of attribute (a string) to every entity which can contain texts in a drawing .It would be better if it's hidden. I tried to use IAttributeDef (http://help.solidworks.com/2014/English/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IAttributeDef.html) but it seems it doesn't work with notes. Now I'm using Note.setName(), but I haven't any idea about tables (every single cell needs this attribute) and other entities (datum target, gtol, balloons...). I can't use hidden rows and columns because if the user add or delete a row or a column I will lose every reference. Any advice?

      Of course the attributes are just an idea, if you know something else please tell me.

       

      I'm using C#, but this isn't compulsory.

      Thanks in advance