Skip to main content
frameexpert
Community Expert
Community Expert
February 8, 2017
Answered

How to Apply No AttrCondFmts

  • February 8, 2017
  • 1 reply
  • 508 views

I am trying to Show All Attribute Expressions (Special > Filter by Attribute) using ExtendScript. I can do this:

#target framemaker

var doc = app.ActiveDoc;

var attrCondExpr = doc.FirstAttrCondExprInDoc;

while (attrCondExpr.ObjectValid () === 1) {

    attrCondExpr.AttrCondExprIsActive = 0;

    attrCondExpr = attrCondExpr.NextAttrCondExprInDoc;

}

And it does switch the "Manage Attribute Expressions" Show All radio button to on. The problem is that it does "Apply" the change to the document. There is an ApplyAttributeExpression() method on the AttrCondExpr object, but there is nothing on the document. I don't want to apply a particular filter; I want to apply no filter to show everything. Any help would be appreciated. -Rick

This topic has been closed for replies.
Correct answer 4everJang

Doesn't oDoc.ShowAll = true do that?

1 reply

4everJang
4everJangCorrect answer
Legend
February 8, 2017

Doesn't oDoc.ShowAll = true do that?

frameexpert
Community Expert
Community Expert
February 8, 2017

Thank you Jang! Simple, but it looks like it works.

www.frameexpert.com
frameexpert
Community Expert
Community Expert
February 8, 2017

One more thing about these Attribute Condition Expressions: there is no Name property that matches the name in the interface. At least not that I can see....

www.frameexpert.com