Start a new topic

How to Retrieve Item Descriptions Using the Client API with Python?

Running the code snippet below prints the names of all the parts in the item, but how do I get the item descriptions of all the parts?

import SystemWeaver as sw
import SystemWeaverAPI as swa

...
handle = sw.Common.SWHandleUtility.ToHandle(handle_str)
item = swa.SWConnection.Instance.Broker.GetItem(handle)
parts = item.GetAllParts()
for part in parts:
    print(part.Name) # How to get the item plain text descriptions for all parts?

 To clarify, the text that would appear in this box in the GUI:

image

Login to post a comment