
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I think I might know the answer to this, but I have been trying to figure out ways to retrieve the image type, element, ID, or any other identifying data of an image located within a schedule.
In the python code below:
cellText = schedule.GetCellText(SectionType.Header, i, j)
'cellText ' would yield the text values in the referenced cell. If it contains an image, it returns null
tableData = schedule.GetTableData() tsd = tableData.GetSectionData(SectionType.Header) cellType = tsd.GetCellType(i, j)
'cellType ' would return 'Graphic' if there is an image in within the referenced cell. And 'Text' if there is text data. This seems to be the most information I am able to get regarding images within schedules.
transaction.Start()
imgInsert= tsd.InsertImage(i, j, imgId)
transaction.Commit()
'imgInsert' could utilize the api to insert an image in a given cell. But there seems to be no equivalent way to retrieve the data of images already placed in a schedule.
Is there any related method to return data (of any sort) of an image in a schedule (or broad suggestions for workarounds)?
Thanks all.
Solved! Go to Solution.