【发布时间】:2021-07-20 13:22:13
【问题描述】:
在 Word 页面中最大化图像的 M2DOC Eclipse Capella 命令是什么?
我试试这个代码:
{m:for rep | lc.representationByDescriptionName('Logical Architecture Blank')}
{m:if rep.getHeight() > rep.getWidth()}
{m:rep.asImage().setHeight(600)}
{m:else}
{m:rep.asImage().setWidth(400)}
{m:endif}
但是给我这个错误:
{m:if rep.getHeight() >= rep.getWidth()} Invalid if statement: Couldn't find the 'getHeight(org.eclipse.sirius.viewpoint.DRepresentation)' serviceInvalid if statement: Couldn't find the 'getWidth(org.eclipse.sirius.viewpoint.DRepresentation)' serviceInvalid if statement: The predicate never evaluates to a boolean type ([]).
但是我已经插入了所有的 Sirius 包 uri。
非常感谢!
【问题讨论】:
标签: m2doc