Hello SolidWorks experts,
I found a tag in SolidWorks very useful. I have put textual information of parts using tags. However, I don't know how to retrieve them using the api. Anybody can help? Thank you.
Thanks for the link. However, I don't want to get DatumTags or HoleTags. Maybe my question is not clear enough. What I would like to do is to get the part tag via the API. For example, the box in the picture below is tagged as "WorkObject". I would like to get this tag out of SolidWorks using API. I have queried Custom Properties using the API successfully, but for the tags I really have no idea what command in the API can be used to do this. Any suggestion or discussion would be very appreciated. Thanks.
Would it not be this?
2016 SOLIDWORKS API Help - TagName Property (INote)
Suthida, I have not tried this myself, but perhaps you could try:
2016 SOLIDWORKS API Help - SummaryInfo Property (IModelDoc2)
and try to get the value of the "Keywords"
thank you Steven Barry and Peter Kennedy
I have tried both methods but they are not successful. After several days of the attempt, I guess SolidWorks doesn't offer the command to get the part tags which are intended to use for filtering in the feature manager. I will create my own add-in in order to fill in and retrieve tags.
You can try, email@example.com, sometimes they respond.
Retrieving data ...