LEGO 2 LDraw 2 BL


RE: LEGO 2 LDraw 2 BL
#17
The PowerShell script in the zip file has been updated. It is a bit "gentler" when querying Rebrickable and the shortage of parts being retrieved has been resolved.

Comments:
2. I suggest you alter the PowerShell script part_mapping_generate.ps1 on line 48 69 and update it with the path to your installation of saxon. You can pass this value in as a command line parameter if you so wish but I suggest this will quickly become tiresome.
Do something similar for the curl executable location on line 68.
3. While the output format appears to be okay, I need to do some checks on whether all the parts have been output. According to Rebrickable's website, they have 32 000+ parts in their database. The generated XML file currently contains 5 000+ parts. I'll to a bit of digging into this.
This has been resolved. I believe all parts are now being retrieved.

Usage:
  1. The command is invoked from the Powershell command line thusly;
    .\part_mapping_generate.ps1 your-api-key xml-output-file-name json-output-file-name
  2. The parameter values influence its behaviour
  • .\part_mapping_generate.ps1 your-api-key
    Queries rebrickable and output XML to standard output
  • .\part_mapping_generate.ps1 your-api-key abc.xml -output_progress 1
    Queries rebrickable and output XML to the file abc.xml and displays progress when querying Rebrickable.
  • .\part_mapping_generate.ps1 your-api-key abc.xml abc.jsn -output_progress 1
    Queries rebrickable, output XML to the file abc.xml and JSON interim output to abc.jsn and displays progress when querying Rebrickable.
  • .\part_mapping_generate.ps1 "" abc.xml abc.jsn
    Takes its JSON input from abc.jsn rather than querying rebrickable and output XML to the file abc.xml
  • .\part_mapping_generate.ps1 "" "" abc.jsn
    Takes its JSON input from abc.jsn rather than querying rebrickable and output XML to standard output
Regards,

David
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LEGO 2 LDraw 2 BL - by Willy Tschager - 2019-04-07, 12:05
RE: LEGO 2 LDraw 2 BL - by Roland Melkert - 2019-04-07, 18:40
RE: LEGO 2 LDraw 2 BL - by Lutz Gehlen - 2019-04-08, 8:19
RE: LEGO 2 LDraw 2 BL - by David Manley - 2019-04-08, 8:41
RE: LEGO 2 LDraw 2 BL - by Milan Vančura - 2019-04-08, 10:22
RE: LEGO 2 LDraw 2 BL - by Magnus Forsberg - 2019-04-08, 22:24
RE: LEGO 2 LDraw 2 BL - by Philippe Hurbain - 2019-04-09, 5:58
RE: LEGO 2 LDraw 2 BL - by Willy Tschager - 2019-04-09, 9:38
RE: LEGO 2 LDraw 2 BL - by Johann Eisner - 2019-04-09, 19:15
RE: LEGO 2 LDraw 2 BL - by Jaco van der Molen - 2019-04-09, 20:50
RE: LEGO 2 LDraw 2 BL - by Orion Pobursky - 2019-04-09, 21:53
RE: LEGO 2 LDraw 2 BL - by Willy Tschager - 2019-04-11, 7:17
RE: LEGO 2 LDraw 2 BL - by David Manley - 2019-04-12, 12:34
RE: LEGO 2 LDraw 2 BL - by Orion Pobursky - 2019-04-12, 15:29
RE: LEGO 2 LDraw 2 BL - by David Manley - 2019-04-16, 5:50
RE: LEGO 2 LDraw 2 BL - by Willy Tschager - 2019-04-16, 6:40
RE: LEGO 2 LDraw 2 BL - by Orion Pobursky - 2019-04-16, 15:27
RE: LEGO 2 LDraw 2 BL - by David Manley - 2019-04-18, 23:57
RE: LEGO 2 LDraw 2 BL - by Orion Pobursky - 2019-04-19, 0:24
RE: LEGO 2 LDraw 2 BL - by Willy Tschager - 2019-05-06, 14:31
RE: LEGO 2 LDraw 2 BL - by Orion Pobursky - 2019-05-06, 14:37
RE: LEGO 2 LDraw 2 BL - by David Manley - 2019-04-13, 8:05
RE: LEGO 2 LDraw 2 BL - by David Manley - 2019-04-14, 10:47
RE: LEGO 2 LDraw 2 BL - by Jaco van der Molen - 2019-04-12, 15:36

Forum Jump:


Users browsing this thread: 6 Guest(s)