Skip to main content

Component Plug-In SDK 2026 R1

Method PaczWriterFromFiles

Last update: 19.06.2026

Namespace: Phoenix.BuilderUIClient
Assembly: Phoenix.BuilderUIClient.dll

PaczWriterFromFiles(IEnumerable, string, Guid, IPaczClient)

Create a new IPaczWriter by importing a list of files.

public static Task<IPaczWriter> PaczWriterFromFiles(IEnumerable<string> fileRelativePaths, string baseDir, Guid plugInId, IPaczClient paczClient)

Parameters

fileRelativePaths IEnumerable<string>

The paths of the files to copy. These should be actual files relative to baseDir. No paths in this should attempt to traverse up a directory.

baseDir string

The base directory for fileRelativePaths

plugInId Guid

The plug-in ID to set in the new component configuration.

paczClient IPaczClient

The Pacz client to use when creating the new Pacz.

Returns

Task<IPaczWriter>

A new IPaczWriter with the specified files listed as instance files. The IPaczWriter will not have a source location (will not actually be saved).

Exceptions

InvalidOperationException

If any of the files in fileRelativePaths attempt to traverse up a directory.

Connect with Ansys