Select specific shape (W/P)

Modified on Mon, 5 Oct at 1:54 PM

This feature can be used to select a specific shape in Word and PowerPoint, thus preparing it for insertion. After selection, you can insert a picture from Image Library in Templafy. This can be used, for instance, for Frontpage insertion.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\33_WP_selectSpecificShape.xml

CMD

<Cmd case="BaseExtensions:select-named-shape" name="xxx"/>

Description: Selects a specific shape in the document by its name. This can also be used in conjunction with the built in insert/paste image functionality from BaseExtensions.

Parameter:

name

Type the name. For instance:

name="FrontPagePicturePlaceholder"

If there are several shapes to be selected by their names, type the names like this in the parameter:

name="test1, test2, test3"

In PowerPoint, it is not possible to select shape on other slide than the active one, thus all shapes (if there are several shapes with identical names in the presentation) will only be selected on active slide.

selectInMaster

This parameter can only be used in PowerPoint. If the parameter is set to be true, the feature will select the named shapes in the slide master, and not just the normal slides.

useContains

This optional parameter can change the behavior of the command to select all the shapes that contains the string in the name parameter. This can be set to true but defaults to false.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article