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

pgfFmt.Start property not working

$
0
0

Hello guys:

 

I´ve tried this using FM 10 and FM 11 (unstructured), and it fails in both versions. The PgfFmt "Body" is shown as modified in FM (asterisk) but the Paragraph Designer shows the old Start property.

 

I need to update the "Start" PgfFmt property. I am using a shared code that works with the rest of PgfFmt properties.

source: (http://extendingframemaker.blogspot.com/2011/10/updating-paragraph-format.html)

 

var doc = app.ActiveDoc;

var tframe = doc.MainFlowInDoc.FirstTextFrameInFlow;

 

var pgfFmt = doc.GetNamedObject(Constants.FO_PgfFmt, "Body");

if (pgfFmt.ObjectValid) {

    pgfFmt.Start= Constants.FV_PGF_ANYWHERE;

    var formatFlags = Constants.FF_UFF_PGF | Constants.FF_UFF_REMOVE_EXCEPTIONS;

    doc.SimpleImportFormats (doc, formatFlags);

}

 

The document is already saved in my HD, so it exists. What is wrong?

 

Thanks!


Viewing all articles
Browse latest Browse all 888

Latest Images

Trending Articles



Latest Images

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