Hi,
I need to programatically create an equation element in FM. The procedure I use is the same I use for other elements, that is:
When elemDefId is id of an equation element, the procedure above crashes FM. For other types of elements it works just fine.
Any ideas or suggestions?
I need to programatically create an equation element in FM. The procedure I use is the same I use for other elements, that is:
Code:
F_TextRangeT tr = F_ApiGetTextRange (docId, parentElemId, FP_TextRange);
F_ElementLocT el = F_ApiTextLocToElementLoc (docId, &tr.end);
F_ObjHandleT elemId = F_ApiNewElementInHierarchy (docId, elemDefId, &el);
Any ideas or suggestions?