gbroques / fcxref Goto Github PK
View Code? Open in Web Editor NEWManages FreeCAD external references.
License: GNU Lesser General Public License v2.1
Manages FreeCAD external references.
License: GNU Lesser General Public License v2.1
It's common for spreadsheets referencing a property in another document to duplicate that as a label in a nearby cell or alias in it's internal spreadsheet.
We could possibly implement this as a simple "text search" and have separate find and replace functions for "text references".
Pattern would be r'\bText\b'
.
Changing an internal alias is somewhat complicated as you need to also change all references to that alias.
FreeCAD implements this by default, so maybe it's not worth addressing.
This search could be performed after a rename operation, on only the documents that were renamed.
Some directories are missing from the PyPI installation (at least fcxref/{find,remove,rename}
).
pip3 show fcxref --files
gives:
Name: fcxref
Version: 0.3.0
Summary: Manages FreeCAD external references.
Home-page: https://github.com/gbroques/fcxref
Author: G Roques
Author-email: None
License: UNKNOWN
Location: /home/gael/.local/lib/python3.8/site-packages
Requires:
Required-by:
Files:
../../../bin/fcxref
fcxref-0.3.0.dist-info/INSTALLER
fcxref-0.3.0.dist-info/METADATA
fcxref-0.3.0.dist-info/RECORD
fcxref-0.3.0.dist-info/WHEEL
fcxref-0.3.0.dist-info/entry_points.txt
fcxref-0.3.0.dist-info/top_level.txt
fcxref/__init__.py
fcxref/__pycache__/__init__.cpython-38.pyc
fcxref/__pycache__/_version.cpython-38.pyc
fcxref/__pycache__/cli.cpython-38.pyc
fcxref/__pycache__/group_references_by_document_path.cpython-38.pyc
fcxref/__pycache__/root_by_document_path.cpython-38.pyc
fcxref/_version.py
fcxref/cli.py
fcxref/group_references_by_document_path.py
fcxref/root_by_document_path.py
Anyway, thanks for offering this tool to the community!
Gaël
There are references to document and object names in XLinks
that should be renamed when renaming a reference.
Need to be careful to not to rename an XLink
if another reference to that file or object still exists.
In this case we would add an XLink
and increment the count
and docs
attribute.
<XLinks count="1" docs="1">
<DocMap name="Master" label="Master" index="0"/>
<XLink file="Master.FCStd" stamp="2021-07-25T18:40:15Z" name="Spreadsheet"/>
</XLinks>
<XLinks count="2" docs="2">
<DocMap name="Master" label="Master" index="1"/>
<DocMap name="Cube" label="Cube" index="0"/>
<XLink file="Cube.FCStd" stamp="2021-07-25T20:03:03Z" name="Box"/>
<XLink file="Master.FCStd" stamp="2021-07-25T18:40:15Z" name="Spreadsheet"/>
</XLinks>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.