使用内容车获取工作区数据

Applies to Altium Designer versions: 23 and 24
 

Parent page: Configuring and Administrating Your Workspace

A Workspace's Data Acquisition feature provides a streamlined utility with which to essentially copy data between two Workspaces (see compatibility information). The vehicle through which this is done – your interface to the Data Acquisition Service – is the Content Cart. This is control-central for defining what is to be acquired from the source Workspace, and transferred into the nominated target Workspace – a trusty removal van that 'carts' your nominated data between established Workspace residences.

For more information about the service and its mechanics, see the Data Acquisition Service page (Altium 365 Workspace, Enterprise Server Workspace).

Now there's no better way to illustrate the workings of a feature than by example. So to illustrate the ins and outs of the Content Cart, and its use in acquiring data, this article takes a look at acquiring some components between the following Workspaces:

  • Source Server – a Workspace named Company Workspace.
  • Target Server – a second Workspace named Secondary Company Workspace.

Accessing the Cart

Access to the Content Cart dialog is made from within the Explorer panel. While browsing the source Workspace from which you wish to obtain data, right-click on an Item Revision that you wish to acquire, and choose the Operations » Add to Content Cart command from the context menu. You can add one or more selected Item Revisions, or even a folder of Items. Initial access to the cart loads it with the Item Revision(s) that are selected in the source Workspace at the time of access:

  • A single specific revision of an Item.
  • Multiple specific revisions of the same Item.
  • The latest revisions of multiple Items.
  • The latest revisions of all Items in the selected folder (and its descendent structure). This allows you to load an entire folder onto the cart while preserving its folder structure. To acquire a folder (and its descendant structure), select it in the Server Folders region of the source Workspace (within the Explorer panel), then right-click and choose the Operations » Add to Content Cart command from the context menu.
Selecting the top-level entry for an Item will load the latest revision of that Item onto the cart. 
You can also access the Content Cart from various aspect views within the Explorer panel, including the Where-used and Children aspect views. It can also be accessed from the Search Results window.
When connected to an Altium 365 Workspace, note that some component features are not supported with the Altium Designer Standard Subscription. Specifically, lifecycle management and where-used functionality are not supported. As such, the ability to access the Content Cart from the Where-used aspect view for a component will not be available with this level of access to Altium 365.

An example of accessing the Content Cart.
An example of accessing the Content Cart.

Specifying Source & Target Workspaces

The two Workspaces involved in the acquisition are specified in the top region of the Content Cart dialog. The source Workspace is automatically determined, based on the residence of the Item Revision(s) you have specified to acquire – typically, the Workspace you are currently signed into (Company Workspace in this example). If connected to multiple Workspaces, click on the target Workspace's name, or on the control to its right, to access a drop-down listing of currently connected Workspaces. Switch Workspaces as required.

  • While you may be connected to more than one Workspace, remember that you can only ever be signed into one Workspace at any given time – this will be your Active Server.
  • The drop-down menu associated with the target Workspace also provides quick access to the Data Management – Servers page of the Preferences dialog, through the Server Administration entry. This can be useful if you haven't connected/signed-in to the intended target Workspace yet.

Specification of the source and target Workspaces, involved in the acquisition.
Specification of the source and target Workspaces, involved in the acquisition.

Note that the Workspace that will receive content data (the target Workspace) must be able to connect to the source Workspace. This means that an on-premises Altium Enterprise Server cannot act as the source of content data for an Altium 365 Workspace, since the latter cannot connect to the former – which is within a local LAN/WAN and not exposed to the internet.

Data Acquisition between Workspaces Summary:

SOURCE   TARGET SUPPORTED
Altium 365 Workspace Altium Enterprise Server Workspace
Altium Enterprise Server Workspace Altium Enterprise Server Workspace
Altium Enterprise Server Workspace Altium 365 Workspace
Altium 365 Workspace Altium 365 Workspace

Naming the Cart

Acquired data from the source Workspace will be copied into new revisions of Items in the target Workspace. By default, these Items will be located in a defined, and newly-created folder structure within that target Workspace. The top-level folder for this acquired content is named using the name of the cart itself. The default name is in the format Content Cart - <Current Date> - <Current Time>, and is determined at the moment the cart is accessed. This can be changed to a more meaningful name as required by clicking the Change control, to the right of the cart's name.

Use the subsequent Content Cart Name Selection dialog to directly enter the preferred name for the cart. Alternatively, you can choose a folder in the target Workspace, into which content on the Cart is to be delivered. This can be an existing folder, or a completely new one created on the fly. Browse to, and select an existing folder for the cart, using the Choose Folder dialog – accessed by clicking the button, at the far right of the Content Cart Name field. Or, create a new folder within the folder structure, using commands from the right-click menu.

A Content Cart can be named as required. Either change the name of the cart (which will be delivered into a top-level folder with that name) or choose to deposit the content of the cart into a specific folder.
A Content Cart can be named as required. Either change the name of the cart (which will be delivered into a top-level folder with that name) or choose to deposit the content of the cart into a specific folder.

Any number of Content Cart 'folders' can be created when acquiring data into the target Workspace, giving maximum flexibility over where the acquired content is stored. Remember that no matter where in the target Workspace's folder structure the acquired data is initially stored, you are free to move Items and folders around as required.

Specifying Items to Acquire

The main area of the Content Cart dialog presents an 'acquisition grid' – listing all Item Revisions that you have chosen to acquire from the source Workspace. Any number of Data Item Revisions can be 'loaded' onto the Content Cart for acquisition from the source Workspace. Initial access to the cart loads it with the Item Revision(s) that were selected in the source Workspace at the time of access, but any number of additional Items can be loaded. To do so, click the Add More Items control at the top-right of the dialog and choose the Select entry to access the Choose Item dialog (a 'trimmed-down' version of the Explorer panel). From here you can browse the source Workspace for more Items. Remember, you can choose to add:

  • A single specific revision of an Item.
  • Multiple specific revisions of the same Item.
  • The latest revisions of multiple Items.
  • The latest revisions of all Items in the selected folder (and its descendent structure).

Alternatively, choose the Add manually entry to access the Add new items dialog. This dialog allows you to paste an external list of items that you require (one item per line), and which can then be searched for within the source Workspace, using a chosen search criteria (GUID, Item ID, Name, or MPN).

The main acquisition grid, listing all Item Revisions chosen for acquisition from the source Workspace.
The main acquisition grid, listing all Item Revisions chosen for acquisition from the source Workspace.

Any Item Revision can be removed from the list by selecting it and clicking the button.

Cart Preparation

With the source Item Revisions chosen, the Content Cart now has to be 'prepared for delivery' to the target Workspace. To do this, click the button. This prepares the target Workspace for acquisition – checking the status of the chosen Item Revisions involved (in case they have been acquired previously), the parent-child links, and proposing the action to be taken. The results of this preparation phase are presented back in the main acquisition grid.

An example Content Cart, prepared ready for delivery to the target Workspace.
An example Content Cart, prepared ready for delivery to the target Workspace.

For each Item Revision involved in the acquisition, the Source region of the grid expands to present all applicable child Item Revisions and, optionally, the folder in which they reside within the source Workspace. For each Item Revision (parent and child alike) the following information can be presented in the Target region of the grid:

  • Revision ID – the full identifier for the Item Revision in the target Workspace, based on the defined Item Naming and Revision Scheme for that Item type.
  • Folder – the destination folder in the target Workspace in which the acquired Item Revision will be created/delivered.
  • Life Cycle – the lifecycle definition defined for the parent Item.
  • Naming Scheme – the revision naming scheme defined for identifying revisions of the parent Item.
  • Note – an optional note that can be used to provide useful information about the acquisition to others, when browsing the acquired content in your Workspace.
  • Status – the current state of the Item Revision in the target Workspace. Possible states are:

    • Not found – the Item Revision has never been acquired.
    • Already Exists – the Item Revision has been acquired previously.
Note that the acquisition process also will detect an item residing in the target Workspace Trash, which is regarded as acquired and set to an Already Exists status. Empty the Trash and run the acquisition process again if you wish to re-acquire that Item.
  • Action – the action that needs to be taken in order to achieve synchronization between source and target Workspaces. Possible actions are:

    • Transfer new revision and item – for completely new acquisitions, where the Item has never been acquired before. In other words, create an Item of that type and a new planned revision to accommodate the source data.
    • Transfer new revision of existing item – when acquiring another revision of an Item, and a revision of that Item has been acquired previously.
    • Nothing to do – the chosen Item Revision has already been acquired previously.
Click on a column header to sort by the data in that column in ascending order. Click again to sort in descending order. Click-and-drag a column header to change the order of the columns themselves – valid locations are distinguished by vertical positional arrows. Right-click to access controls for toggling the display of data columns in both Source and Target regions (some of the listed above columns might be disabled by default).

Cart Structure

As part of the preparation phase, the cart uses default settings defined for each Item type that can be acquired. These settings are defined in the Content Cart Structure dialog, accessed by clicking the Change Settings control at the bottom-right of the Content Cart dialog.

Default acquisition settings are defined in the Content Cart Structure dialog.
Default acquisition settings are defined in the Content Cart Structure dialog.

These settings are used to determine the properties of newly-created Item Revisions in the target Workspace – created ready, and in the planned state, to receive data from the original Item Revisions in the source Workspace. They include a default folder in the target Workspace, as well as default Lifecycle Definition, Item and Revision Naming Schemes, and a starting index. A default note is also defined, in the format Acquired from <SourceWorkspaceName>.

In terms of destination folders in the target Workspace, each Item type will be acquired into a distinct folder under:

Modify these default acquisition settings in-line with schemes employed (and preferred!) for those Item types in your target Workspace. Click on a cell to access edit controls.

  • Note that Part Choices associated with a component are automatically propagated to the target Workspace. The Part Choice List entry in the Content Cart structure dialog applies only to the legacy Altium Vault and earlier versions of Altium Designer.
  • Restore structure settings back to their defaults by clicking the button.

The acquisition settings in the Content Cart Structure dialog are coarse-level defaults. For Items that have never been acquired before – so the parent Item and initial revision are being newly-created (Action is Transfer new revision and item) – properties at the individual Item-level can be defined if needed, giving finer-level control. To do so, select an Item Revision in the main acquisition grid, and click the button. This will give you access to the Edit Item dialog, from where you can modify Item properties as required – overriding default settings.

For greater control, you can define properties at the individual Item level.
For greater control, you can define properties at the individual Item level.

Any changes to the cart's name, its default structure settings, or individual Items themselves, require preparation to be performed again – to update the acquisition grid with those changes.

Cart Delivery

Once preparation is complete, click on the button to proceed with the acquisition. A confirmation dialog will appear, notifying you that the Content Cart is about to be transferred from source to target Workspaces – click Yes to proceed. A second confirmation dialog will confirm the result of the acquisition, with the acquired Items available to browse in the target Workspace through the Explorer panel.

If, before closing the Content Cart dialog, you run the preparation again – clicking – the Status and Action fields will update to reflect the result – displaying Already Exists and Nothing to do, respectively.
Acquired data points back to its original source. This ancestral link information can be seen by switching to the Origin aspect view tab for the target Item Revision. To quickly jump to the original source Item Revision, click the button.

Acquiring Data in IntLib Format

You also have the ability to acquire components from your Workspace, into an Integrated Library (*.IntLib). And when placing components from such an Integrated Library, the actual links are back to the components in the Workspace. This gives you the ability to effectively use your company's Workspace components in an offline fashion, while ensuring the design still maintains a true connection to those components in the source Workspace.

Acquisition to an IntLib

From the Content Cart dialog, the process to acquire into an IntLib is as follows:

  1. Click on the Select target server link and choose IntLib file from the menu.

    Set the target of the Content Cart to be an IntLib file.
    Set the target of the Content Cart to be an IntLib file.

  2. Specify the name, and location, for the generated IntLib file. By default, the file will be named in the format Integrated_Library - <Date> - <Time>.IntLib, and generated in the location \Users\Public\Documents\Altium\AD<Version>\Library\ExportCmpLib. Modify this as required through the Save As dialog – accessed by clicking the Change link.

    Accept the default target folder and filename, or change as required.
    Accept the default target folder and filename, or change as required.

  3. If you need to acquire additional components into the same IntLib, click the Add More Items link, and choose the Select entry to access the Choose Item dialog (a 'trimmed-down' version of the Explorer panel). From here you can browse the source Workspace for more Items. Alternatively, choose the Add manually entry to access the Add new items dialog. This dialog allows you to paste an external list of items that you require (one item per line), and which can then be searched for within the source Workspace, using a chosen search criteria (GUID, Item ID, Name, or MPN).
  4. Once ready, click the button to proceed with generation of the IntLib. A temporary Integrated Library Package (*.LibPkg) will be created, with source SchLib (with symbols, parameters, and model links) and PcbLib (with footprint models) files generated and added. This is then compiled to produce the IntLib file, which is generated in the specified folder. An information dialog will confirm the successful generation of the file.

    Deliver the cart to the target folder, which will contain the required Integrated Library file.
    Deliver the cart to the target folder, which will contain the required Integrated Library file.

Use of the IntLib

After generation, the IntLib can be added as part of the available non-Workspace libraries for the software (through the Installed tab of the Available File-based Libraries dialog). It will then be available for use from the Components panel. Place components from the IntLib into your design as required. While effectively working with the components 'offline', the links back to the original Workspace components ensure continuity when you come back to working 'online' directly from your Workspace.

Content
Content