托管原理图

您正在阅读的是 22. 版本。关于最新版本,请前往 托管原理图 阅读 24 版本
Applies to Altium Designer version: 22
 

Parent page: Design Reuse

Being able to re-use design content is something that all product development companies want, and can greatly benefit from. Not only does reuse save time, being able to easily reuse a section of a previous design means that all the qualification and testing of that part of the design is done. Design reuse is much more than copy and paste, though, true reuse requires the content to be locked down so you're guaranteed that it is the same as before. No quick edits to change the color of a component or a tweak to a resistor value, working with reusable content must be like working with off-the-shelf components; place the content, wire it in, and it works just like it did last time.

Altium Designer, in conjunction with a connected Workspace, caters for the ability to create managed schematic sheets (Managed Schematic Sheet Items) in that Workspace. Such sheets can be created:

  • Through Direct Editing.
  • Through saving of the current schematic sheet to the Workspace.
  • By uploading the relevant schematic document (*.SchDoc) to a revision of a target managed schematic sheet.

Once a managed schematic sheet has been created (and data saved into a revision of it), it can be reused in future board-level design projects.

Just What is a Managed Schematic Sheet?

A managed schematic sheet is a standard Altium Designer schematic sheet containing components and wiring, that has been stored in a Workspace, so it can be reused in other designs. It is edited like any other schematic sheet. The managed schematic sheet concept is not limited to a single schematic sheet either, you can place a managed schematic sheet in your design that is the top of a tree of other managed schematic sheets.

Managed schematic sheets differ from device sheets in that they are stored in a Workspace, where device sheets are stored in a folder on a hard drive. As such, managed sheets enjoy the benefits attributed to Workspace content, including simplified storage and enforced version control, and of course secured integrity.

See information about locally managed Device Sheets.

The decision to move from device sheets to managed schematic sheets comes when there is a desire to make the transition from reusable content to Workspace reusable content – that is, when there is a desire or need to be able to control the release of that design content and provide a single source of this content for the entire team.

By making it Workspace content you can be sure that the revision of a managed schematic sheet that you use in a design can be easily identified and traced back to its source whenever needed. And because it is Workspace content it can be revised and updated when needed, and the usage relationships can all be traced – both down to the components on that sheet, and up to the designs that use that sheet. This ensures you have all the information needed to decide if that revised sheet must be pushed through to existing designs, or if a particular design must continue to use the previous revision.

Folder Type

When creating the folder in which to store managed schematic sheets, you can specify the folder's type. This has no bearing on the content of the folder – saving a schematic sheet will always result in a corresponding Managed Schematic Sheet Item. It simply provides a visual 'clue' as to what is stored in a folder and can be beneficial when browsing a Workspace for particular content. To nominate a folder's use as a container for managed schematic sheets, set its Folder Type as Managed Schematic Sheets, when defining the folder properties 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 Workspace.
Specifying the folder type – its intended use – gives a visual indication of the content of that folder when browsing the Workspace.

Content Type

When creating a target Managed Schematic Sheet Item in which to store your schematic sheet, ensure that its Content Type is set to Managed Schematic Sheet, in the Create New Item dialog. If you are creating the Item in a Managed Schematic Sheets type folder, this content type will be available from the right-click context menu when creating the Item.

Creating a managed schematic sheet within a Managed Schematic Sheets folder – the correct Content Type is available on the context menu.
Creating a managed schematic sheet within a Managed Schematic Sheets folder – the correct Content Type is available on the context menu.

Saving a Schematic Sheet

Related page: Creating and Editing Content Directly through a Workspace

So far, we've discussed the support for a managed schematic sheet in the Workspace, in terms of related folder and content types. Saving an actual defined schematic sheet into a revision of such a Managed Schematic Sheet Item can be performed in a couple of ways, as outlined in the below sections.

To assist with the smooth reuse of Managed Sheets in your designs, it is highly recommended that the schematic sheet is manually annotated (Tools » Annotation » Annotate Schematics) prior to being saved as a Managed Sheet. When a design using Managed Sheets is complete, all of the sheets and components can be renumbered across the project.

See the Annotating Components and Sheets section below for information.

Direct Editing

A schematic sheet can be edited and saved into the initial revision of a newly-created Managed Schematic Sheet Item, courtesy of the Workspace's support for direct editing. Direct editing frees you from the shackles of separate version-controlled source data. You can simply edit a supported content type using a temporary editor loaded with the latest source direct from the Workspace itself. And once editing is complete, the entity is saved (or re-saved) into a subsequent planned revision of its parent Item, and the temporary editor closed. There are no files on your hard drive, no questioning whether you are working with the correct or latest source, and no having to maintain separate version control software. The Workspace handles it all, with great integrity, and in a manner that greatly expedites changes to your data.

When you create a Managed Schematic Sheet Item, you have the option to edit and save a schematic sheet into the initial revision of that Item, after creation. To do so, enable the option Open for editing after creation, at the bottom of the Create New Item dialog (which is enabled by default). The Item will be created and the temporary Schematic Editor will open, presenting a .SchDoc document as the active document in the main design window. This document will be named according to the Item-Revision, in the format: <Item><Revision>.SchDoc (e.g. SCH-0007-1.SchDoc).

If your Workspace has at least one saved Schematic Template, the Select configuration item (Schematic Templates) dialog will appear. Use this to choose which template is to be applied to the schematic document.

Example of editing the initial revision of a managed schematic sheet, directly from the Workspace – the temporary Schematic Editor provides the document with which to define your schematic sheet.
Example of editing the initial revision of a managed schematic sheet, directly from the Workspace – the temporary Schematic Editor provides the document with which to define your schematic sheet.

Use the document to define the schematic sheet as required. Because managed schematic sheets are stored in a Workspace, the components on them should also be stored in the Workspace. That way, you get the full benefit of the content system that the Workspace provides, including being able to identify and locate all the components used on the managed schematic sheet (the children), and also being able to identify and locate which designs the managed schematic sheet has been used in (where-used). For more information see Component Management with a Connected Workspace.

The ability to use Workspace components to build larger design building blocks enables the design-flow to become ever-more streamlined, and at a higher level of abstraction. The designer, just like picking parts off a shelf, reuses these managed schematic sheets of design functionality as constituent components of the bigger design project. And the more managed schematic sheets of such circuitry that have been created and saved into the Workspace, the more functionality the designer has access to, which in turn boosts productivity for subsequent designs.

There are three relevant controls when direct editing, readily available from the Quick Access Bar (at the top-left of the main application window), or from the Schematic Standard toolbar:

  • Save Active Document. Use this button to locally save any changes made to the document. This allows you to save current changes, should you wish to come back at a later stage to make further changes before ultimately saving to the Workspace.
  • /Save to Workspace. Use this button to save the defined schematic sheet to the Workspace, storing it within the initial (planned) revision of the target Managed Schematic Sheet Item. The Edit Revision dialog will appear, in which you can change Name, Description, and add release notes as required. The document and editor will close after the save. The document containing the source schematic sheet (*.SchDoc) will be stored in the revision of the Item.

    A Save to Server control is also conveniently provided to the right of the schematic sheet's entry, within the Projects panel itself.
  • /Discard Local Changes. Use this button if you wish to cancel editing and discard any changes made. The document and editor will close, and nothing will be saved to the target Managed Schematic Sheet Item.

These controls are also available as commands – Save (Shortcut: Ctrl+S), Save to Server (Shortcut: Ctrl+Alt+S), and Discard Local Changes – from the main File menu and from the right-click menu of the schematic sheet's entry in the Projects panel.

The saved data stored in the Workspace consists of the source schematic sheet, defined in the Schematic Document file (<Item><Revision>.SchDoc), as well as any associated harness definition files (*.Harness). In the Explorer panel, switch to the Preview aspect view tab to see a graphical representation of the sheet, along with a listing of its constituent components (and managed schematic sheet template if applicable).

Click on the hyperlink entry for a child Component Item Revision to cross-probe to it in the Explorer panel. The Child Items area also provides a right-click context menu with commands for working with a child Component Item Revision.

Browse the saved revision of the managed schematic sheet, back in the Explorer panel. Switch to the Preview aspect view tab to see a graphical representation, and a listing of the child component revisions.
Browse the saved revision of the managed schematic sheet, back in the Explorer panel. Switch to the Preview aspect view tab to see a graphical representation, and a listing of the child component revisions.

The child components used on the sheet can also be browsed from the Children aspect view tab. Double-click an entry to cross-probe, right-click to access a set of component-related commands.

Browse the constituent components on the managed schematic sheet, through the Children aspect view.
Browse the constituent components on the managed schematic sheet, through the Children aspect view.

Saving an Existing Sheet to the Workspace

While direct editing is the preferred approach for most design content that can be stored in a Workspace, when it comes to existing schematic sheets (or device sheets for that matter), you also have the ability to save a sheet directly to the Workspace. This requires that you have a planned revision of an existing Managed Schematic Sheet Item, into which the sheet will be saved. The process is as follows:

  1. Create a new Managed Schematic Sheet Item and initial planned revision, or have a planned revision of another existing Item, as required.
  2. Open the schematic sheet, or device sheet, within Altium Designer.
  3. Choose the File » Save as Managed Sheet to Server command from the main menus.
  4. The Choose Planned Item Revision dialog will appear. Use this to choose the target revision of the required Managed Schematic Sheet Item (which must be in the Planned state), then click OK.

    If the target Managed Schematic Sheet Item doesn't exist, you can create it through the Choose Planned Item Revision dialog on-the-fly. If doing so, be sure to disable the Open for editing after creation option (in the Create New Item dialog), otherwise, you'll enter direct editing mode.
  5. The Edit Revision dialog will appear, in which you can change Name, Description, and add release notes as required.
  6. After clicking OK, the sheet will be saved and stored in the revision of the Item.

Example of sending an existing device sheet to the Workspace to which you are actively connected. The saving must be to an existing revision of a managed schematic sheet, and that revision must be in the Planned state.
Example of sending an existing device sheet to the Workspace to which you are actively connected. The saving must be to an existing revision of a managed schematic sheet, and that revision must be in the Planned state.

Uploading a Schematic Sheet

You can also upload a schematic sheet into the revision of a Managed Schematic Sheet Item. This can be performed in a couple of ways.

Upload Menu

A schematic sheet can be uploaded by right-clicking on the required Managed Schematic Sheet 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 schematic sheet. This can be performed by dragging and dropping the file 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 (*.SchDoc).

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 schematic sheet to be uploaded to the target Managed Schematic Sheet Item.
Manually specifying the schematic sheet to be uploaded to the target Managed Schematic Sheet Item.

Once the desired sheet is dropped in, or selected and the Open button clicked, an entry for it will appear back in the Sources region. Proceed with the upload by clicking the OK button. The uploaded sheet will be available on the Preview aspect view tab for the Item Revision, in the Explorer panel.

The uploaded sheet can be viewed on the Preview aspect view tab for the revision of the managed schematic sheet, along with a listing of its child Items.
The uploaded sheet can be viewed on the Preview aspect view tab for the revision of the managed schematic sheet, along with a listing of its child Items.

Drag and Drop from Windows Explorer

A schematic sheet can also be uploaded by dragging the selected file from a source folder in your Windows Explorer, and dropping it onto the required target Managed Schematic Sheet Item in the Explorer panel. The Create New Revision dialog will appear, with the dragged file listed in the Sources region. Modify Name (which will be the file name, including extension) and Description (which will be in the format Uploaded from <FileNameandPath>, Size <FileSize>, Created on <FileCreationDate>), and add any Release Notes as required, and then click the OK button.

If the existing Managed Schematic Sheet 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 away from an existing Item, a new Managed Schematic Sheet Item will be created. The Create New Item dialog will appear. The Name of the item will be the file name, including extension. The Description will be in the format Uploaded from <FileNameandPath>, Size <FileSize>, Created on <FileCreationDate>. 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.

Uploading a schematic sheet using the drag and drop method.
Uploading a schematic sheet using the drag and drop method.

Reusing a Managed Schematic Sheet

Related pages: Management of Projects, Controlling Access to Workspace Content

Once a schematic sheet has been saved to a Workspace, and its lifecycle state set to a level that the organization views as ready for use at the design level, that sheet can be reused in future board-level design projects. And keeping to the use of the Workspace as the source of all content in and for a design, it is good practice to reuse your managed schematic sheet content in Workspace Projects – which themselves are under the Workspace's wing.

Using controlled access to Workspace content, in conjunction with suitable lifecycle schema, authorized personnel (librarians, senior design management) can ratify, and make available, only those managed sheets that are to be used in designs. This allows the designer to design away, reassured that they are using only those sheets of reusable design circuitry authorized to be used.

It is the way you include a managed schematic sheet in the current design that lets Altium Designer know it is not a regular schematic sheet. You add a regular schematic to your project via the File menu, whereas you add a managed schematic sheet to your project by placing it from the Workspace. Placement is performed from Altium Designer's Explorer panel.

Prior to Placement...

Placing a managed schematic sheet truly is simplicity itself. But before you do anything, there are a couple of points to note:

  • A managed schematic sheet's sheet symbol cannot be placed onto a free schematic, the target sheet must be part of a project.
  • Ensure that the schematic sheet that is to receive the associated sheet symbol is open in Altium Designer and is the active document. If documents are open across multiple windows, ensure also that the window containing that active schematic document has focus.
When working with Altium Designer across multiple windows, if the Explorer panel is docked in any mode to a window without the target schematic in it, the Place command will remain grayed-out. This is because clicking within a docked panel focuses the window to which that panel is attached. With the panel floating, however, the required Altium Designer window can be focused (the one with the active target schematic), and that window will keep focus when working inside the panel.

Placement

To place from the Explorer panel:

  1. Browse or search for the managed schematic sheet you wish to place.
  2. Right-click on the specific revision of the managed schematic sheet required (typically the latest, in which case just right-click directly on the top-level Item entry).
  3. Choose the Place command.

A sheet symbol that references the sheet will float attached to the cursor – just pick a ball-park spot on the active schematic sheet and click to effect placement. You can fine-tune and nudge it into its final location at a later stage.

As you place the sheet symbol, Altium Designer copies the managed sheet that the symbol represents, from the Workspace into the project folder, within a sub-folder called \Managed\Sheets. A copy of each managed sheet is stored here, each within its own sub-folder identified by a system-generated unique identifier (GUID).

The GUID-named sub-folder in which the instance of the managed schematic sheet is downloaded and stored must not be edited/renamed in any way.

Placement of a managed schematic sheet. Right-click on the desired Item Revision and choose the Place command – a sheet symbol representing the managed schematic sheet is available on the cursor for placement into the design.
Placement of a managed schematic sheet. Right-click on the desired Item Revision and choose the Place command – a sheet symbol representing the managed schematic sheet is available on the cursor for placement into the design.

Drag and Drop from the Explorer Panel

For more express placement of your managed schematic sheets from the Explorer panel, Altium Designer provides the ability to drag & drop revisions of managed schematic sheets directly onto the active schematic document.

Browse your Workspace for the required managed schematic sheet to be placed. Placement involves a specific revision of its Item, so be sure to expand the main Item entry to list all of its available revisions. Then click on the required revision and drag an instance of it onto the schematic sheet.

You may need to disable the Show only latest option for the Explorer panel's Items view. Click the control (at the top-right of the panel) to access this option.
Drag and drop the top-level entry for a managed schematic sheet itself, to place an instance of the latest revision of that sheet.

Re-Saving a Managed Schematic Sheet

At any stage, you can come back to any revision of a managed schematic sheet in the Workspace, and edit it directly. Right-click on the revision and choose the Edit command from the context menu. Once again, the temporary editor will open, with the schematic sheet contained in the revision opened for editing. Make changes as required, then save the document into the next revision of the managed schematic sheet.

Right-clicking on the top-level entry for a managed schematic sheet itself will edit the latest revision of that sheet.

Accessing the command to launch direct editing of an existing revision of a managed schematic sheet.
Accessing the command to launch direct editing of an existing revision of a managed schematic sheet.

Updating a Managed Schematic Sheet

If you need to change the schematic sheet stored in a Managed Schematic Sheet Item, and you have the updated sheet, you can upload that sheet to that Item – the new sheet will be stored in the next revision of that Item.

Downloading Saved Data

Download the data stored in a revision of a managed schematic sheet by right-clicking on that revision and choosing the Operations » Download command from the context menu. The applicable file(s) will be downloaded into a sub-folder under the chosen directory, named using the Item Revision ID. The file can be found in the Released folder therein.

Access the Download command from the top-level entry for a managed schematic sheet itself, to download the applicable file(s) stored in the latest revision of that sheet.
Click the Explore button in the Download from Server dialog, to quickly explore to the download folder.

Annotating the Components and Sheets

To guarantee the integrity of the circuitry used in a Managed Sheet, that sheet cannot be edited during normal design use. That means the sheet number and designator assignments cannot be modified on the sheet. So just how do you number all the sheets in the project and annotate all of the components?

These tasks are managed by two commands: sheets are numbered using the Tools » Annotation » Annotate Compiled Sheets command and components are annotated using the Tools » Annotation » Board Level Annotate command. Sheet number and designator assignments are stored in a separate file, <ProjectName>*.annotation

The component annotation tools need to know the order that the schematic sheets are to be processed. For this reason, it is better to number the sheets before numbering the components.

The Annotating Components and Sheets principles are the same as when using local Device Sheets. For more information on annotating designs that include Managed Sheets, see the following sections on the Device Sheets page:

Soft Deletion

When connected to a Workspace, flexible functionality is available for removing a managed schematic sheet directly from within Altium Designer, from the Explorer panel. Right-click on the sheet's entry in the panel and choose the Delete Item command from the context menu. The Delete Items dialog will appear, in which to confirm the deletion. The action is actually a 'soft delete', whereby the managed schematic sheet will be moved into the Trash area of the Workspace. The Trash is essentially a recycle bin into which any content within your Workspace can be moved (through a soft delete action). It is isolated from the rest of the Workspace.

With the soft-delete facility, you are able to delete a managed schematic sheet that is currently being used.
Multiple managed schematic sheets can be deleted in a single action. Select all required sheets using standard multi-select controls (Shift+Click, Ctrl+Click), then right-click and choose the Delete Items command from the context menu.

Soft deletion of a managed schematic sheet. The sheet will be moved to the Workspace's Trash area.
Soft deletion of a managed schematic sheet. The sheet will be moved to the Workspace's Trash area.

To proceed with the deletion, click the button. The managed schematic sheet will be removed and a Deletion Summary dialog will confirm successful deletion. If there was an issue with deletion, this will be flagged to you.

All content deleted in this manner can be found on the Trash page of the Workspace's browser interface. Note that you can only view the content that you have personally soft deleted. Administrators will be able to see the full content of the Trash page – so all content that has been soft deleted.

Things to consider in relation to a soft deleted managed schematic sheet:

  • The managed schematic sheet will not be available from your design software, or from within the Web interface.
  • Anywhere the managed schematic sheet was being used will reflect that the managed schematic sheet has been deleted.
  • A managed schematic sheet can be restored, or permanently deleted from the Trash page, provided you have editing rights. Permanent deletion is only possible provided it is not being used by a parent Item.
Note that if you have soft deleted a managed schematic sheet – moving it to the Trash – you can create a new managed schematic sheet with that same name again. If you were to subsequently restore the original managed schematic sheet, and the original name is taken, an integer suffix will be used, to keep its name unique within the Workspace.

可用的功能取决于您的 Altium Designer 软件订阅级别

Content