Proper renaming of sub-directory

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Proper renaming of sub-directory

Post by sgrogan »

Based on the discussion here:viewtopic.php?f=22&t=11723
I would like to rename /src/Mod/Idf/lib to /src/Mod/Idf/idflibs

Code: Select all

git mv /src/Mod/Idf/lib /src/Mod/Idf/idflibs
Would this lose the history for the folder and it's contents? Is this acceptable or is there a better way?

Edited to fix typos
Last edited by sgrogan on Thu Dec 10, 2015 12:30 pm, edited 1 time in total.
"fight the good fight"
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Proper renaming of sub-directory

Post by yorik »

Would you mean idf?
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Proper renaming of sub-directory

Post by sgrogan »

yorik wrote:Would you mean idf?
Yes I would. :oops:
"fight the good fight"
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Proper renaming of sub-directory

Post by sgrogan »

I put a branch here:https://github.com/sgrogan/Freecad/tree/Idf-fix
But for instance a file with history, gets killed.https://github.com/sgrogan/FreeCAD/comm ... models.csv
What if the changes to this file are important. There must be a better way.
EDIT:

Code: Select all

git log --follow ./path/to/file
"fight the good fight"
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Proper renaming of sub-directory

Post by easyw-fc »

[EDIT]
Hi I created a new topic here
viewtopic.php?f=10&t=13603
feel free to add your impressions
thank you :D
Maurice

Hi,
I played a bit with the IDF importer and I'm improving the compatibility with IDF 3.0 standard...
https://www.simplifiedsolutionsinc.com/ ... 0_spec.pdf
I added the following features:
1. displaying Flat Mode models instead of wireframe as default view
(viewtopic.php?t=5848)
2. fixing version 3.0 for Geometry and Part Number
3. supporting Z position of emp models
4. skipping PROP in emp file to avoid aborting
5. adding color to shapes with internal code option IDF_colorize
I also removed the part of step search associations (through the file footprints_models.csv) which I think it is based on too old models, and moreover I don't think that it was even known by normal users; then idflib it is no more necessary
I think for IDF emp association to STEP models, eagle2pcb or kicad StepUp are more feasible...

Please have a look at the new IDFImporter (which is a WB) and test it with some emn, emp files
(I added some test IDF files that I got from freecad forum (LEDs.7z), 'IDFV3sample' that I got from the IDF 3.0 specification pdf file, and the 'IDF Example PCB w Holes' that I got from National Instruments http://www.ni.com/tutorial/7635/en/#toc1)
I also added a picture of the 'IDFV3sample' rendered in Design Spark Mechanical and in FreeCAD with the new version (with the old version it is not imported because of PROP and removing those, Z position of some models are not respected)

Do you think that features could be merged to the actual IDF importer?
PS (these improvements can also live with idflibs if required)
thank you
Maurice
Attachments
IdfImporter-V2_0.7z
(9.99 KiB) Downloaded 40 times
IDFtest.7z
(235.71 KiB) Downloaded 42 times
Post Reply