jellsworth wrote
OpenSCAD doesn't need to build in it's own version control system. What I
liked was the idea of providing a scad file
/
access
/
to the version info so that it could be expressed within the 3d model.
In general, that also is done by the version control system by keyword
expansion, hooks or filters :
git :
http://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion
svn :
http://stackoverflow.com/questions/18447089/svn-user-defined-property-keyword-expansion-substitution
--
View this message in context: http://forum.openscad.org/new-Special-Variable-tp12579p12603.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
That is all well & good for use with a VCS, but the OP wants access to the
filename for a GUI generated model.
Basically the filename, the date and time when F5/6 is performed, and the
already available version() would be sufficient to do basic version
stamping, so the model is marked with the version.
You could go one step further and append a predefined variable to the "solid
OpenSCAD_Model" line in the exported STL (and presumably equivalent spots in
other formats). i.e
$Version = str($fname,","$datetime,":",version()); // $version value if
defined gets appended.
That would be very handy to make sure you have the version you are looking
for.
These are not the versions you are looking for...
Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/new-Special-Variable-tp12579p12604.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Ivo wrote
jellsworth wrote
OpenSCAD doesn't need to build in it's own version control system. What I
liked was the idea of providing a scad file
/
access
/
to the version info so that it could be expressed within the 3d model.
In general, that also is done by the version control system by keyword
expansion, hooks or filters :
git :
http://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion
svn :
http://stackoverflow.com/questions/18447089/svn-user-defined-property-keyword-expansion-substitution
Good point and links. Thanks.
--
View this message in context: http://forum.openscad.org/new-Special-Variable-tp12579p12613.html
Sent from the OpenSCAD mailing list archive at Nabble.com.