| | | | | Is the name/keyword/META-command LDSwitch/!LDSWITCH free to use or is it taken?
I think it's not taken (in the LCad context), so I wish to claim it if noone
protests.
/Tore
| | | | | | | | | | | | | In lugnet.cad.dev, Tore Eriksson wrote:
> Is the name/keyword/META-command LDSwitch/!LDSWITCH free to use or is it taken?
>
> I think it's not taken (in the LCad context), so I wish to claim it if noone
> protests.
>
> /Tore
I've just registered myself and my first project at SourceForge:
http://sourceforge.net/projects/ldrawswitch/
Welcome to join or just input!
/Tore
| | | | | | | | | | | | | | | | |
| |
| Don't know if you prefer to make input here or at SourceForge, so I crosspost.
Please give feedback where you like, here or at SF.
Here's the first sample LDraw code snippet. Set the value of the variable
Rev028_Changes to Do or Undo, run the planned LDSwitch app in automatic mode,
and the app will comment out the lines in the other CASE.
In manual mode, the app will find the switches and generate menus where the user
can switch cases, later on maybe add new cases.
////////////////////// DO MODE //////////////////////
0 Town Section 2 West 1 South...
0 Name: Town-2-1.ldr
0 Author: John VanZwieten
0 Unofficial Datsville Town Sub-Model
0 Parent: Town.ldr
0 !LDSWITCH DEFINE Rev028_Changes Do
0 // ( LDraw code... )
0 !LDSWITCH SWITCH Rev028_Changes
0 !LDSWITCH CASE Do
1 2 1920 0 -3840 1 0 0 0 1 0 0 0 1 3811.dat
1 2 1920 0 -4480 1 0 0 0 1 0 0 0 1 3811.dat
0 REM Railroad Tracks instead of Crossing #2
1 7 1280 -8 -4480 0 0 -1 0 1 0 1 0 0 rjvtks2.ldr
1 7 1600 -8 -4480 0 0 -1 0 1 0 1 0 0 rjvtks2.ldr
1 0 1920 0 -5120 1 0 0 0 1 0 0 0 1 2359p01.dat
0 !LDSWITCH CASE Undo
0 0 REM Railroad Crossing #2
0 1 7 1920 0 -4480 0 0 -1 0 1 0 1 0 0 rjvtkx.ldr
0 1 0 1920 0 -3840 0 0 -1 0 1 0 1 0 0 609.dat
0 1 0 1920 0 -5120 1 0 0 0 1 0 0 0 1 607p01.dat
0 !LDSWITCH END
0 REM Railroad Crossing #1
1 0 0 0 -4480 0 0 -1 0 1 0 1 0 0 rjvtkx.ldr
0 // ( More LDraw code... )
0 // ( EOF )
////////////////////// UNDO MODE //////////////////////
0 Town Section 2 West 1 South...
0 Name: Town-2-1.ldr
0 Author: John VanZwieten
0 Unofficial Datsville Town Sub-Model
0 Parent: Town.ldr
0 !LDSWITCH DEFINE Rev028_Changes Undo
0 // ( LDraw code... )
0 !LDSWITCH SWITCH Rev028_Changes
0 !LDSWITCH CASE Do
0 1 2 1920 0 -3840 1 0 0 0 1 0 0 0 1 3811.dat
0 1 2 1920 0 -4480 1 0 0 0 1 0 0 0 1 3811.dat
0 0 REM Railroad Tracks instead of Crossing #2
0 1 7 1280 -8 -4480 0 0 -1 0 1 0 1 0 0 rjvtks2.ldr
0 1 7 1600 -8 -4480 0 0 -1 0 1 0 1 0 0 rjvtks2.ldr
0 1 0 1920 0 -5120 1 0 0 0 1 0 0 0 1 2359p01.dat
0 !LDSWITCH CASE Undo
0 REM Railroad Crossing #2
1 7 1920 0 -4480 0 0 -1 0 1 0 1 0 0 rjvtkx.ldr
1 0 1920 0 -3840 0 0 -1 0 1 0 1 0 0 609.dat
1 0 1920 0 -5120 1 0 0 0 1 0 0 0 1 607p01.dat
0 !LDSWITCH END
0 REM Railroad Crossing #1
1 0 0 0 -4480 0 0 -1 0 1 0 1 0 0 rjvtkx.ldr
0 // ( More LDraw code... )
0 // ( EOF )
| | | | | | |