Howdy!
I am using the python sdk to get info about shapes.
Microsoft has an enum with all the shape types: MsoShapeType enumeration (Office) | Microsoft Learn
When I request info about a shape using aspose, the shape_type attribute does not always appear in this list. For example, I might get something like “NotDefined” or “MagneticDisk”. So couple questions:
- Is there a list I could see of all the shape types aspose might return?
- Is there a way to get the numerical value of the shape type? For example, in microsoft chart shapes have the int value 3. This numerical value does not seem to get returned from aspose when calling the get_shape endpoint.
@jamieMacabacus
To address your questions regarding shape types in Aspose:
-
List of Shape Types: Unfortunately, there isn’t a comprehensive list of all shape types that Aspose might return directly available in the documentation. However, you may encounter various shape types such as “NotDefined” or specific types like “MagneticDisk”. The Aspose API does support a range of shape types, but the exact mapping to Microsoft’s shape types may not be one-to-one.
-
Numerical Value of Shape Types: The Aspose API does not return the numerical values associated with shape types as you might find in Microsoft’s documentation. When you call the get_shape
endpoint, you will receive the shape type as a string, but not its corresponding integer value. If you need to map these types to their numerical values, you may need to create a custom mapping based on the shape types you encounter.
If you have specific shape types that you are interested in, I recommend checking the API responses for those types and creating a reference table for your application.
If you have further questions or need assistance with specific shape types, feel free to ask!
Bummer. Are there any plans to include this functionality?
@jamieMacabacus,
You can find the ShapeBase
class in the API Reference to see all the shape types that may be returned: Shape, Chart, Table, PictureFrame, VideoFrame, AudioFrame, SmartArt, OleObjectFrame, GroupShape, GraphicalObject, Connector, SmartArtShape, ZoomFrame, SectionZoomFrame, SummaryZoomFrame, SummaryZoomSection.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESCLOUD-2016
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
1 Like
@jamieMacabacus,
Thank you for using Aspose.Slides Cloud.