Hello Michael
Thank you for contacting us.
For the moment, there is no way to automatically detect math within Raw Content, but with Raw Content you can manually select some strokes (for instance with the lasso), then you must call the SetSelectionType
method to force the recognition of these strokes as math. For more details, please refer to this topics that discuss such an integration:
Best regards,
Gwenaëlle
Michael
I've been playing with the GetStarted sample script to get a feel for my script on iPad.
I can alter the line:
var defaultpackageType: String = PackagePartType.diagram.getName() /* Options are : "Diagram", "Drawing", "Math", "Raw Content", "Text Document", "Text" */
var defaultpackageType: String = PackagePartType.math.getName() /* Options are : "Diagram", "Drawing", "Math", "Raw Content", "Text Document", "Text" */
and switch the tool to recognize math instead of triangle drawings by recompiling the source.
What I would like to do is to be able to dynamically switch between the two packageparttypes so I can at one moment draw a shape, convert it, and then switch to math to label the triangle legs/hypotenuse using square root symbols.
Is there a way to easily do that?