Click or drag to resize

ProductDesignServicesImportDesignFiles Method

Imports one of more CAD design files into the system against the specified assembly revision (as designated by the partId parameter). If a file in the dataFiles list is of a supported format that is automatically recognizeable as a PCB design file (ECAD), it will be automatically interpreted by the system, replacing any existing data. Otherwise, the file will be added to the list of generic design files for the assembly, replacing any existing design files with the same filename.

Namespace:  FactoryLogix.xTend.PartDefinition
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void ImportDesignFiles(
	Guid sessionId,
	Guid partId,
	FileContent[] dataFiles
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
partId
Type: SystemGuid
The unique identifier of the internal part revision that the new design data should be imported against.
dataFiles
Type: FactoryLogix.xTend.DataObjectsFileContent
One of more data files (defined by an FileContent object, containing design or CAD information.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
ArgumentExceptionThrown if the partId peroperty is an empty Guid or files that are not ECAD do not specify a name or file name.
NotFoundExceptionAn existing part with matching Id property was not found in the system.
AssemblyRevisionLockedForProductionExceptionThe assembly is released for production.
InvalidFileTypesExceptionInvalid file type(s) are being imported such as a BOM or Gerber file.
CheckedOutExceptionThe ECAD is being edited by another user.
See Also