forked from FreeCAD/FreeCAD
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support geometry element reference auto update, import and export
Because element mapping auto generation uses the object ID as Tag, and possibly document depended string hash indexes, the mapping must be able to rebuilt when importing objects, i.e. during copy&paste. The mechanism is here is, * During exporting, strip out all element maps. * Property link sub now include shadow copy of both the new and old style element referece. It will store the old style reference as before, and store the any new reference in a new XML attribute. GeoFeature will signal any element mapping change, and allows all link sub to keep an up-to-date element reference * During importing, only import old style reference. * Touch all geo feature objects, and recompute the imported objects. * Regenerate mapped references, and geo feature will signal property link sub to update their reference as before Necessary Core API changes includes, * Move utility function resolveObject() from Gui.Selection to DocumentObject as resolve(). * Add getElementName() API to GeoFeature. * Add utility function resolveElement() to GeoFeature
- Loading branch information
1 parent
c38ef04
commit 579dee2
Showing
14 changed files
with
670 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.