Stencils and Stencil-Files
Stencils are stored in „VSSX“-Files
server_stencils_filename = "C:\Program Files (x86)\Microsoft Office\root\Office16\Visio Content\1031\SERVER_M.VSSX"
#64 means “open hidden”
server_stencils = visio.Documents.OpenEx(server_stencils_filename,64)
ftp_stencil=server_stencils.Masters("FTP-Server")
Page-Object
Add a FTP-Server to the page
ftp1 = page.Drop(ftp_stencil,3,3)
ftp1.Text = "FTP-Server#1"
Result
>>> len(shapes)
5