Project

General

Profile

Feature #3996

Import capability for library elements

Added by Alexander Diewald 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
04/09/2020
Due date:
% Done:

0%

Estimated time:
10.00 h

Description

Intention

Placeholder for the case that libraries are fully supported again.

Details

The current import code for AF3 Projects scans for libraries in the source directory and copies them to the import location. Thereby, the code overwrites existing libraries.
Consequently, the code risks data loss! Thus, in the ticket #3993, the import of libraries will be removed.

In order to properly support importing of AF3 Projects with library elements, the following approach must be taken:
  • Check if elements from a library are referenced.
  • If so, check if a library exists in the target location.
  • If not, create one.
  • Add each referenced element from the source library to the target library.
  • If an equivalently named and scoped element exists in the target directory, error-out or offer some handling to the user.

NOTE, that this logic must be executed BEFORE the project file is copied to the target directory to maintain the references when the kernel performs the actual import.

@eder: Please

History

#1 Updated by Alexander Diewald 6 months ago

@eder assigned to you for dispatching to someone actually using this functionality if we keep the library in future.

Also available in: Atom PDF