Skip to main content
Participant
February 14, 2024
Answered

createMetaDataStr for Graphs?

  • February 14, 2024
  • 1 reply
  • 100 views

I need to add metadata to graphs via python. Currently I can find and manipulate the metadata if the user has created it manually, but I'd like to do this programatically if possible. 

 

createMetaDataStr(aName, aValue) only seems to work on packages. Is there a method for graphs?

This topic has been closed for replies.
Correct answer Andy29737023ede8

Ah nevermind I was doing it wrong.  I needed to use SDValueString.

metadata_dict.setPropertyValueFromId("tags",  sd.api.SDValueString.sNew(new_tags)

1 reply

Andy29737023ede8AuthorCorrect answer
Participant
February 15, 2024

Ah nevermind I was doing it wrong.  I needed to use SDValueString.

metadata_dict.setPropertyValueFromId("tags",  sd.api.SDValueString.sNew(new_tags)