I cannot figure out how to refresh Tag from .NET like the ASSIGNTAG command does
I am able to set the properties that the Tag is build from with DataLinksManager->Setproperties
I can see the properties change on the component. But the tag is not refreshed.
Is there some kind of .NET command that will rebuild the Tag?
Solved! Go to Solution.
Solved by jabowabo. Go to Solution.
Setting the Tag value to an empty string will cause a recalculation of the tag. More info here: https://adndevblog.typepad.com/autocad/2012/10/autocad-pidplant-3d-is-there-any-api-to-recalculate-t...
Sample code (Test thoroughly before using on a live project):
StringCollection strNames = new StringCollection() { "Tag" };
StringCollection strNewValues = new StringCollection() { "" };
foreach (int rowId in rowIdsList)
{
dlm.SetProperties(rowId, strNames, strNewValues);
}
dlm.AcceptChanges();
Can't find what you're looking for? Ask the community or share your knowledge.