We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-05-22 11:12 AM - last edited on 2023-07-12 08:48 PM by Doreena Deng
API_OverrideRule rule; rule.name = "Transparent surface for Windows and Doors"; // NOTE: to get the proper criterion XML, go to ARCHICAD and save the wanted override rule as XML // Criterion XML: Element Type is Window or Door rule.criterionXML = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>" "<CriterionExpression Mv=\"2\" Sv=\"1\">" "<TextMatchType>1</TextMatchType>" "<Size>1</Size>" "<ClassGuid>C6EBD1BD-7702-46FF-8ED9-9CC37648A7C7</ClassGuid>" "<CompositeCriterion Mv=\"2\" Sv=\"1\">" "<LogicalOperator>2</LogicalOperator>" "<CriteriaCount>1</CriteriaCount>" "<ClassGuid>C6EBD1BD-7702-46FF-8ED9-9CC37648A7C7</ClassGuid>" "<CompositeCriterion Mv=\"2\" Sv=\"1\">" "<LogicalOperator>1</LogicalOperator>" "<CriteriaCount>2</CriteriaCount>" "<ClassGuid>B4B7B134-EC56-4D40-8D4C-71D7C5A2493A</ClassGuid>" "<ElemTypeCriterion Mv=\"2\" Sv=\"3\">" "<VBEF::CritToolType Mv=\"1\" Sv=\"0\">" "<ElemRegistryRefId>1464421956</ElemRegistryRefId>" "<ElemCreatorToolUnID>" "<MainGuid>4ABD0A6E-634B-4931-B3AA-9BEE01F35CDF</MainGuid>" "<RevGuid>5585F21A-DE1C-164C-A64E-92CB48F79FA5</RevGuid>" "</ElemCreatorToolUnID>" "</VBEF::CritToolType>" "<LogicalOperator>1</LogicalOperator>" "</ElemTypeCriterion>" "<ClassGuid>B4B7B134-EC56-4D40-8D4C-71D7C5A2493A</ClassGuid>" "<ElemTypeCriterion Mv=\"2\" Sv=\"3\">" "<VBEF::CritToolType Mv=\"1\" Sv=\"0\">" "<ElemRegistryRefId>1146048338</ElemRegistryRefId>" "<ElemCreatorToolUnID>" "<MainGuid>11E85B84-8DD1-491B-A2FE-337454A91545</MainGuid>" "<RevGuid>91A61E93-32A8-BC46-A11A-5FB89256C651</RevGuid>" "</ElemCreatorToolUnID>" "</VBEF::CritToolType>" "<LogicalOperator>1</LogicalOperator>" "</ElemTypeCriterion>" "</CompositeCriterion>" "</CompositeCriterion>" "</CriterionExpression>";I wanted to create this kind of "filters" automatically in my add-on.
2018-03-15 06:01 PM
typedef struct { API_Guid guid; GS::UniString name; API_OverrideRuleStyle style; GS::UniString criterionXML; } API_OverrideRule;is computed.
2018-03-18 05:04 PM
2018-03-27 01:45 PM