Cmdlet
Import-OfficeVisioStencil
Registers a stencil catalog with the active Visio DSL scope.
Syntax
Import-OfficeVisioStencil -Catalog <VisioStencilCatalog> [-Default] [-Name <String>] [<CommonParameters>]#Parameter set:
CatalogImport-OfficeVisioStencil -BuiltIn <OfficeVisioBuiltInStencilCatalog> [-Default] [-Name <String>] [<CommonParameters>]#Parameter set:
BuiltInImport-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:
PathImport-OfficeVisioStencil [-Category <String>] [-Default] [-DefaultHeight <Double>] [-DefaultWidth <Double>] [-IdPrefix <String>] [-IncludeUnsupportedMasters] -Installed [-LoadCatalogName <String>] [-MasterName <String[]>] [-Name <String>] [-NoConnectionPointMetadata] [-NoLearnMasterDimensions] [-NoPreviewImageMetadata] [<CommonParameters>]#Parameter set:
InstalledExamples
Register a catalog for DSL use.
OfficeVisio -Path .\Flow.vsdx -UseMastersByDefault {
VisioStencilImport -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.
Parameters
- -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.
- -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 - -Category String
- Category assigned to package-backed stencil shapes.
- -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.
- -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.
- -Installed SwitchParameter
- Discover installed Microsoft Visio stencils and templates, then register the combined catalog.
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.