Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

How to get Conditional tag name for F_TextItemT

$
0
0

Hi,

 

I am trying to get Condition tag name if present for TextItem inside paragraph

 

F_TextRangeT trSel, trFound;
F_IntsT condIds;
F_PropValsT findParams;


trSel.beg.objId = trSel.end.objId = hPgfId;
trSel.beg.offset = trSel.end.offset = 0;


findParams = F_ApiAllocatePropVals(1);
findParams.val[0].propIdent.num = FS_FindText;
findParams.val[0].propVal.valType = FT_String;


//For demo "c" is the first character in the string of every F_TextItemT
findParams.val[0].propVal.u.sval = F_StrCopyString((ConStringT)"c");


trFound = F_ApiFind(docId, &trSel.beg, &findParams);


//Setting insertion point
F_ApiSetTextRange(FV_SessionId, m_doc.getDocId(), FP_TextSelection, &trFound);


//Get condition ids at insertion point
condIds = F_ApiGetInts(FV_SessionId, docId, FP_InCond);

 

I am able to get the name by making every textitem a insertion point and fetching its condition values.

 

Is there any way to fetch conditional tag name without adding insertion point for a textItem?

 

Thanks,
Abhijeet

 

[Moved to Scripting Forum by moderator: more chance of programming expertise here.]


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>