Хранение файлов любого типа

Вы просматриваете версию 19. Для самой новой информации, перейдите на страницу Хранение файлов любого типа для версии 22
 

Parent page: Server Items

Altium Designer, in conjunction with your managed content server, caters for the ability to store free files in a special Item type - the Binary File Item. Such Items can be created to accommodate one or more files of any format. This allows you to effectively take advantage of the server's secure nature, and underlines the server as being the perfect place to store anything, including your source binary files together in a single Item.

And facilitating the streamlined flow of data files, bi-directional drag-and-drop functionality is provided, enabling you to quickly move files between folders in your server, and folders in your Windows Explorer.

Folder Type

When creating the folder in which to store a Binary File Item, you can specify the folder's type. This has no bearing on the content of the folder - uploading will always result in Binary File Item. It simply provides a visual 'clue' as to what is stored in a folder and can be beneficial when browsing a server for particular content. To nominate a folder's use as a container for Binary File Items, set its Folder Type as Binary Files, when defining the folder pro perties in the Edit Folder dialog.

Specifying the folder type - its intended use - gives a visual indication of the content of that folder when browsing the server.Specifying the folder type - its intended use - gives a visual indication of the content of that folder when browsing the server.

Item Type

When creating the target Binary File Item in which to store your source file(s), ensure that its Content Type is set to Binary File, in the Create New Item dialog. If you are creating the Item in a Binary Files type folder, this Item type will be available from the right-click context menu when creating the Item.

Creating a Binary File Item within a Binary Files folder - the correct Content Type is available on the context menu.Creating a Binary File Item within a Binary Files folder - the correct Content Type is available on the context menu.

Uploading Files

So far, we've discussed the support for a Binary File Item in the server, in terms of related folder and item types. Uploading one or more files into the revision of such an item can be performed in a couple of ways.

Upload Menu

File(s) can be uploaded by right-clicking on the required Binary File Item in the Explorer panel, and choosing the Upload command from the context menu. The Create New Revision dialog will appear, in which you can change Name, Description, and add release notes as required. Use the Sources region of the dialog to load the required file(s). This can be performed by dragging and dropping the file(s) from Windows Explorer, onto the region. Alternatively, click the  button - the Add Files dialog (a standard Windows open-type dialog) will appear. Use this to browse to, and open, the required file(s).

If the Item has no planned revision, upload will be to the next planned revision, created on-the-fly as part of the upload process.

Manually specifying the files to be uploaded to the target Binary File Item.Manually specifying the files to be uploaded to the target Binary File Item.

The chosen file(s) will be added, and listed, in the Sources region of the dialog. If you need to adjust the content of the list, add additional files, or select and remove files (click the  button) as required.

The Sources area supports selection of multiple files using standard multi-select techniques (Ctrl+click, Shift+click, and click-and-drag).

Once the desired file list is ready, proceed with the upload by clicking the OK button. The uploaded fileset will be available on the Details aspect view tab for the Item Revision, in the Explorer panel.

Uploaded files are listed on the Details aspect view tab for the revision of the Binary File Item.Uploaded files are listed on the Details aspect view tab for the revision of the Binary File Item.

Drag and Drop from Windows Explorer

One or more files can also be uploaded by dragging the selected file(s) from a source folder in your Windows Explorer, and dropping onto the required target Binary File Item in the Explorer panel. The Create New Revision dialog will appear, with the dragged file(s) listed in the Sources region. Modify Name (which will be the file name, including extension (for multiple files, entries will be separated by a semi-colon)) and Description (which will be in the format Uploaded from <FileNameandPath>, Size <FileSize>, Created on <FileCreationDate> (for multiple files, entries will be separated by a semi-colon)), and add any Release Notes as required. If you need to add additional files, this can be done by clicking the  button, and browsing for the file(s), or by dragging and dropping file(s) onto the Sources area. If you need to remove files, select them in the list and click the  button.

If the existing Binary File Item has no planned revision, upload will be to the next planned revision, created on-the-fly as part of the upload process. If you drop the dragged file(s) away from an existing Item, a new Binary File Item will be created. The Create New Item dialog will appear. The Name of the item will be the file name, including extension (for multiple files, entries will be separated by a semi-colon). The Description will be in the format Uploaded from <FileNameandPath>, Size <FileSize>, Created on <FileCreationDate> (for multiple files, entries will be separated by a semi-colon). Change these as required. The Item ID will be in accordance with the Item Naming scheme defined at the folder level. If the folder has no naming scheme defined, naming will follow the $CONTENT_TYPE_CODE-001-{0000} scheme.

Once the desired file list is ready, proceed with the upload by clicking the OK button. The uploaded fileset will be available on the Details aspect view tab for the Item Revision, in the Explorer panel.

Uploading files using the drag and drop method.Uploading files using the drag and drop method.

Reuse with New Document Defaults

As part of your Altium Designer Preferences, you are able to define New Document Defaults - the default template documents used when creating a new project or document of a particular type. This is performed from the System - New Document Defaults page of the Preferences dialog. A default template document can be file-based, or from a connected managed content server.

To add a document default from the active server, click on the New documents default cell for the required document kind, click the  button at the far right, then choose the From Server entry on the context menu. The Choose item revision for template dialog will appear, from which to browse for, and choose, the required Item Revision. However, if you try to browse to your usual template Items, you will find the folder seemingly empty - even though you know they exist.

Example of trying to choose a revision of a Schematic Template Item for use as a new document default - the folder of templates is empty!Example of trying to choose a revision of a Schematic Template Item for use as a new document default - the folder of templates is empty!

What you need to do instead is upload the required template document into the revision of a Binary File Item, and then use that for the new document default. The quickest way to do this is to download the revision of the real Item, by right-clicking on the required Item Revision and choosing the Operations » Download command from the context menu:

Download the required revision (typically the latest) of the real Item - here, a Schematic Template Item.Download the required revision (typically the latest) of the real Item - here, a Schematic Template Item.

Then upload it to a new Binary Item (that you create manually to accommodate it):

Then upload that document to the initial revision of a new Binary File Item.Then upload that document to the initial revision of a new Binary File Item.

Now when you try to define a new document default from the active server, you can browse for the Binary File Item, and the preferences entry will populate accordingly.

Successful use of a Schematic Template Item as a new document default, through the Binary File Item that contains it.Successful use of a Schematic Template Item as a new document default, through the Binary File Item that contains it.

A new document default based on a server Item will be used when connected to that server (active or not).
If reuse of a managed Item type is automatic, such as Schematic Templates, then to use the nominated default (server-based) template document you must be connected to the server, but not actively signed into it. Once signed in to that server, and where such template Items exist, they will automatically be presented to you when creating a new document of that type, overriding whatever is set on the System - New Document Defaults page.

Updating a Binary File Item

If you need to change the file(s) stored in a Binary File Item, upload the required new file(s) to that Item - the new file(s) will be stored in the next revision of that Item.

Downloading Files

Downloading the file(s) stored in a Binary File Item can be performed from the Explorer panel in the following ways:

  • By right-clicking on the required Item Revision and choosing the Operations » Download command from the context menu. All files stored in that revision will be downloaded into a sub-folder under the chosen directory, named using the Item Revision ID. The files can be found in the Released folder therein.
Access the Download command from the top-level entry for a Binary File Item itself, to download the files stored in the latest revision of that Item.
Click the Explore button in the Download from Server dialog, to quickly explore to the download folder.
  • By selecting the required file(s) for the Item Revision, on its Details aspect view tab, right-clicking, and choosing the Download command from the context menu. Nominate the target folder to receive the file(s), in the subsequent Browse For Folder dialog.

Opening a File

To open a file that is stored in a revision of a Binary File Item, select that file - on the Details aspect view tab for the revision - then right-click and choose the Open command from the context menu. The relevant application (or Altium Designer itself) will be used to present the file, where applicable to do so.

 

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Примечание

Набор доступных функций зависит от вашего уровня доступа к продуктам Altium. Ознакомьтесь с функциями, включенными в различные уровни Подписки на ПО Altium, и функциональными возможностями приложений, предоставляемых платформой Altium 365.

Если вы не видите в своем ПО функцию, описанную здесь, свяжитесь с отделом продаж Altium, чтобы узнать больше.

Content