API Reference
Cmdlet
Import-OfficeVisioStencil
Registers a stencil catalog with the active Visio DSL scope.
Remarks
Registers a stencil catalog with the active Visio DSL scope.
Examples
Register a catalog for DSL use.
PS>
New-OfficeVisio -Path .\Flow.vsdx -UseMastersByDefault {
Import-OfficeVisioStencil -BuiltIn Flowchart -Name Flow -Default
VisioStencil -Stencil process -Key step -Text 'Step' -X 2 -Y 4
}
Registers the flowchart catalog and makes it the default for later VisioStencil calls.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Import-OfficeVisioStencil -Catalog <VisioStencilCatalog> [-Default] [-Name <String>] [<CommonParameters>]#Parameter set:
CatalogParameters
- Catalog VisioStencilCatalog
- Catalog object to register.
- Default SwitchParameter
- Make this catalog the default for later VisioStencil calls.
- Name String
- Name used by VisioStencil -Catalog in the DSL.
Outputs
OfficeIMO.Visio.Stencils.VisioStencilCatalog
Import-OfficeVisioStencil -BuiltIn <All> [-Default] [-Name <String>] [<CommonParameters>]#Parameter set:
BuiltInParameters
- BuiltIn OfficeVisioBuiltInStencilCatalog
- Built-in OfficeIMO stencil catalog to register.
- Possible values:
All,BasicShapes,Flowchart,BlockDiagram,Architecture,Network,Infrastructure,Cloud,SecurityIdentity,ContainersKubernetes,DataPlatform,CollaborationBusiness,Swimlane,OrgChart,Timeline,Sequence - Default SwitchParameter
- Make this catalog the default for later VisioStencil calls.
- Name String
- Name used by VisioStencil -Catalog in the DSL.
Outputs
OfficeIMO.Visio.Stencils.VisioStencilCatalog
Import-OfficeVisioStencil [-Category <String>] [-Default] [-DefaultHeight <Double>] [-DefaultWidth <Double>] [-IdPrefix <String>] [-IncludeUnsupportedMasters] [-LoadCatalogName <String>] [-MasterName <String[]>] [-Name <String>] [-NoConnectionPointMetadata] [-NoLearnMasterDimensions] [-NoPreviewImageMetadata] -Path <String[]> [-Recurse] [<CommonParameters>]#Parameter set:
PathParameters
- Category String
- Category assigned to package-backed stencil shapes.
- Default SwitchParameter
- Make this catalog the default for later VisioStencil calls.
- DefaultHeight Double
- Default height for package-backed stencils when dimensions cannot be learned.
- DefaultWidth Double
- Default width for package-backed stencils when dimensions cannot be learned.
- IdPrefix String
- Stable id prefix for package-backed stencil shapes.
- IncludeUnsupportedMasters SwitchParameter
- Include unsupported package masters as generic generated masters.
- LoadCatalogName String
- Catalog display name when loading package metadata.
- MasterName String[]
- Optional master filters for package-backed catalogs.
- Name String
- Name used by VisioStencil -Catalog in the DSL.
- NoConnectionPointMetadata SwitchParameter
- Skip reading source connection point metadata from package master parts.
- NoLearnMasterDimensions SwitchParameter
- Skip reading master dimensions from package master parts.
- NoPreviewImageMetadata SwitchParameter
- Skip reading preview image relationship metadata from package master parts.
- Path String[]
- Visio package, package directory, or OfficeIMO native stencil manifest path to load and register.
- Recurse SwitchParameter
- Search directories recursively.
Outputs
OfficeIMO.Visio.Stencils.VisioStencilCatalog
Import-OfficeVisioStencil [-Category <String>] [-Default] [-DefaultHeight <Double>] [-DefaultWidth <Double>] [-IdPrefix <String>] [-IncludeUnsupportedMasters] -Installed [-LoadCatalogName <String>] [-MasterName <String[]>] [-Name <String>] [-NoConnectionPointMetadata] [-NoLearnMasterDimensions] [-NoPreviewImageMetadata] [<CommonParameters>]#Parameter set:
InstalledParameters
- Category String
- Category assigned to package-backed stencil shapes.
- Default SwitchParameter
- Make this catalog the default for later VisioStencil calls.
- DefaultHeight Double
- Default height for package-backed stencils when dimensions cannot be learned.
- DefaultWidth Double
- Default width for package-backed stencils when dimensions cannot be learned.
- IdPrefix String
- Stable id prefix for package-backed stencil shapes.
- IncludeUnsupportedMasters SwitchParameter
- Include unsupported package masters as generic generated masters.
- Installed SwitchParameter
- Discover installed Microsoft Visio stencils and templates, then register the combined catalog.
- LoadCatalogName String
- Catalog display name when loading package metadata.
- MasterName String[]
- Optional master filters for package-backed catalogs.
- Name String
- Name used by VisioStencil -Catalog in the DSL.
- NoConnectionPointMetadata SwitchParameter
- Skip reading source connection point metadata from package master parts.
- NoLearnMasterDimensions SwitchParameter
- Skip reading master dimensions from package master parts.
- NoPreviewImageMetadata SwitchParameter
- Skip reading preview image relationship metadata from package master parts.
Outputs
OfficeIMO.Visio.Stencils.VisioStencilCatalog