-
Posts
46 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by Jaco
-
LPub3D updated (version 2.2.1)
Jaco replied to djm's topic in Digital LEGO: Tools, Techniques, and Projects
New version 2.3.8 is available. Maybe this helps? -
LPub3D updated (version 2.2.1)
Jaco replied to djm's topic in Digital LEGO: Tools, Techniques, and Projects
Hi Greg, I encountered some of the same problems you describe there too. Some are solvable by doing things a bit different, some are not. Did you report these bugs to the developer via Github? Due to backward incompatibility, I am running multiple local (portable) versions of LPub3D which work fine. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
I have a script for a few LPub commands: function addLine(ses, text) local sf=ldc.subfile() local lineOfs, lineCnt=sf:getStepLineInfo(ses:getCurStepNr()) local lineOfs=lineOfs+lineCnt local line, cnt=sf:addNewLine(lineOfs, text) ses:getSelection():add(line) end function LPubCallout() local ses=ldc.session() if ses:isLinked() then ses:getSelection():remove() addLine(ses, '0 !LPUB CALLOUT BEGIN') addLine(ses, '0 !LPUB CALLOUT END') end end function LPubPLI_Ign() local ses=ldc.session() if ses:isLinked() then ses:getSelection():remove() addLine(ses, '0 !LPUB PLI BEGIN IGN') addLine(ses, '0 !LPUB PLI END') end end function LPubPartIgn() local ses=ldc.session() if ses:isLinked() then ses:getSelection():remove() addLine(ses, '0 !LPUB PART BEGIN IGN') addLine(ses, '0 !LPUB PART END') end end function LPubPLI_PartSub() local ses=ldc.session() if ses:isLinked() then ses:getSelection():remove() addLine(ses, '0 !LPUB PLI BEGIN SUB filename.ldr 16') addLine(ses, '0 !LPUB PART BEGIN IGN') addLine(ses, '0 Line for Submodel to be replaced by filename.ldr') addLine(ses, '0 !LPUB PLI END') addLine(ses, '0 !LPUB PART END') end end function register() local macro=ldc.macro('LPub Callout') --macro:setHint('Add LPub Callout metacommands') macro:setEvent('run', 'LPubCallout') local macro=ldc.macro('LPub PLI ignore') --macro:setHint('Add LPub PLI ignore metacommands') macro:setEvent('run', 'LPubPLI_Ign') local macro=ldc.macro('LPub PART ignore') --macro:setHint('Add LPub PART ignore metacommands') macro:setEvent('run', 'LPubPartIgn') local macro=ldc.macro('LPub PLI and PART substitution') --macro:setHint('Add LPub PLI and PART substitution metacommands') macro:setEvent('run', 'LPubPLI_PartSub') end register() -
Ah, I see. The LDraw format has no secrets to me, but I thought 93888 would long be official. I didn't bother to check. Sorry ;-) I'll just replace 93888 by 3007 in the LDraw file. Thanks!
- 327 replies
-
- conversion
- ldraw
-
(and 1 more)
Tagged with:
-
Hi, First of all: thanks for all the work on keeping ldraw.xml up to date! Question: can it be that I miss a simple brick like the 2x8 with the new number? 93888 (old = 3007)
- 327 replies
-
- conversion
- ldraw
-
(and 1 more)
Tagged with:
-
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
Ah, so true. There is no direct method, interface wise, to scale say 50% so that LDCad makes the change to the code. You will have to do it manually, but in LDcad like legolijntje described. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
Hi MReizinho, Mirroring does render odd indeed, but scaling can be done. I don't know how to do this _in_ LDCad, but I know you can adjust the matrix in the LDraw file. It is just text, so you can edit it. For example with the 3001 brick 2x4 edit the 1 0 0 0 1 0 0 0 1 part in the matrix: 1 4 0 0 0 1 0 0 0 1 0 0 0 1 3001.dat to for example half size (1 > 0.5) 1 1 80 0 60 0.5 0 0 0 0.5 0 0 0 0.5 3001.dat -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
Not necessarily. Although Buffer Exchange is native to MLCad, you can add the command lines by hand in a text editor. It is not yet implemented in LDCad. See https://sites.google.com/site/binarybricks/mlcad/lessen/buffer-uitwisselen (in Dutch, but very good translateable with Google Translate) No. Ghosting is also native to MLCad and is only handy if you use buffer exchange in submodels. You ghost the floating parts to exclude them from rendering in the main model. LPub does not need ghosting. A group is handy for example when you want to rotate a whole bunch of parts. A group is needed for advanced building instructions if you want to use the Remove Group option in LPub. A submodel is handy if you use it more then once in the model. A submodel is needed if you want to make a call out in LPub or a multi step building page for building it. The LDCad documentation (http://www.melkert.net/LDCad/docs) is rather good, though sometimes somewhat technical. Still a very good place to start. The LDraw forums (forums.ldraw.org) are a good source for answers and asking new questions. And my website (binarybricks.nl and lpub.binarybricks.nl seems good too :-) Though the LDCad part is still under construction and in Dutch, but translatable. The LPub manual is in English and the documentation on version 4.0.0.11 does mostly apply to LPub3D too. No problem and welcome to the club! -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
This example uses buffer exchange and remove group. Like said: no ghosting is needed, because this is native to MLCad to not show floating parts in the main model that are in a submodel. 0 FILE main.ldr 0 Remove group test 0 Author: Jaco van der Molen [Jaco van der Molen] 0 !LICENSE Free for non-commercial use. 0 !LPUB MULTI_STEP BEGIN 0 ROTATION CENTER 0 0 0 1 "Custom" 0 ROTATION CONFIG 0 0 1 2 0 0 0 0 -1 0 1 0 0 0 0 1 32316.dat 1 0 10 0 40 1 0 0 0 0 -1 0 1 0 2780.dat 0 STEP 0 !LPUB CALLOUT PLI PER_STEP FALSE 0 !LPUB CALLOUT BEGIN 1 0 20 0 60 1 0 0 0 1 0 0 0 1 submodel-1.ldr 0 !LPUB CALLOUT POINTER BOTTOM 0.633 0.690 0.112 0 0 !LPUB CALLOUT PLACEMENT TOP CENTER ASSEM OUTSIDE 0 !LPUB CALLOUT END 0 !LPUB CALLOUT ALLOC HORIZONTAL 0 !LPUB PLI BEGIN IGN 0 MLCAD BTG A 1 1 40 0 20 -1 0 0 0 -1 0 0 0 1 6558.dat 0 GROUP 1 A 0 !LPUB PLI END 0 STEP 1 0 10 0 -40 -1 0 0 0 -1 0 0 0 1 2780.dat 0 BUFEXCHG A STORE 0 MLCAD ARROW 4 90 0 20 1 0 0 0 1 0 0 0 1 12 6 16 40 0 30 1 2 16 16 0 MLCAD SKIP_BEGIN 3 4 74 0 20 90 -6 20 90 6 20 4 4 90 -3 20 130 -3 20 130 3 20 90 3 20 0 MLCAD SKIP_END 0 STEP 0 BUFEXCHG A RETRIEVE 0 !LPUB REMOVE GROUP "A" 0 !LPUB PLI BEGIN IGN 1 1 20 0 20 -1 0 0 0 -1 0 0 0 1 6558.dat 0 !LPUB PLI END 0 STEP 0 !LPUB MULTI_STEP END 0 NOFILE 0 FILE submodel-1.ldr 0 Name: subModel-1.ldr 0 Author: Jaco van der Molen [Jaco van der Molen] 0 !LICENSE Free for non-commercial use. 0 ROTATION CENTER 0 0 0 1 "Custom" 0 ROTATION CONFIG 0 0 1 0 0 0 0 0 1 0 -1 0 0 0 0 1 32316.dat 0 BUFEXCHG A STORE 0 GHOST 1 1 80 0 -40 -1 0 0 0 -1 0 0 0 1 6558.dat 0 MLCAD ARROW 4 20 0 -40 1 0 0 0 1 0 0 0 1 10 4 12 40 0 30 1 2 16 16 0 MLCAD SKIP_BEGIN 3 4 8 0 -40 20 -5 -40 20 5 -40 4 4 20 -2 -40 60 -2 -40 60 2 -40 20 2 -40 0 MLCAD SKIP_END 0 STEP 0 BUFEXCHG A RETRIEVE 0 BUFEXCHG A STORE 0 !LPUB PLI BEGIN IGN 0 GHOST 1 1 20 0 -40 -1 0 0 0 -1 0 0 0 1 6558.dat 0 !LPUB PLI END 0 STEP 0 BUFEXCHG A RETRIEVE 0 !LPUB NOSTEP 0 NOFILE -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
Copy this code and save as MPD and open in LPub. 0 FILE main.ldr 0 Remove group test 0 Author: Jaco van der Molen [Jaco van der Molen] 0 !LICENSE Free for non-commercial use. 0 !LPUB MULTI_STEP BEGIN 0 ROTATION CENTER 0 0 0 1 "Custom" 0 ROTATION CONFIG 0 0 1 2 0 0 0 0 -1 0 1 0 0 0 0 1 32316.dat 0 STEP 0 !LPUB CALLOUT PLI PER_STEP FALSE 0 !LPUB CALLOUT BEGIN 1 0 20 0 80 1 0 0 0 1 0 0 0 1 submodel-1.ldr 0 !LPUB CALLOUT POINTER BOTTOM 0.633 0.690 0.112 0 0 !LPUB CALLOUT PLACEMENT TOP CENTER ASSEM OUTSIDE 0 !LPUB CALLOUT END 0 !LPUB CALLOUT ALLOC HORIZONTAL 0 BUFEXCHG A STORE 0 !LPUB PLI BEGIN IGN 1 1 40 0 40 -1 0 0 0 -1 0 0 0 1 6558.dat 0 !LPUB PLI END 0 MLCAD ARROW 4 90 0 40 1 0 0 0 1 0 0 0 1 12 6 16 40 0 30 1 2 16 16 0 MLCAD SKIP_BEGIN 3 4 74 0 40 90 -6 40 90 6 40 4 4 90 -3 40 130 -3 40 130 3 40 90 3 40 0 MLCAD SKIP_END 0 STEP 0 BUFEXCHG A RETRIEVE 0 !LPUB PLI BEGIN IGN 1 1 20 0 40 -1 0 0 0 -1 0 0 0 1 6558.dat 0 !LPUB PLI END 0 STEP 0 !LPUB MULTI_STEP END 0 NOFILE 0 FILE submodel-1.ldr 0 Name: subModel-1.ldr 0 Author: Jaco van der Molen [Jaco van der Molen] 0 !LICENSE Free for non-commercial use. 0 ROTATION CENTER 0 0 0 1 "Custom" 0 ROTATION CONFIG 0 0 1 0 0 0 0 0 1 0 -1 0 0 0 0 1 32316.dat 0 BUFEXCHG A STORE 1 1 80 0 -40 -1 0 0 0 -1 0 0 0 1 6558.dat 0 MLCAD ARROW 4 20 0 -40 1 0 0 0 1 0 0 0 1 10 4 12 40 0 30 1 2 16 16 0 MLCAD SKIP_BEGIN 3 4 8 0 -40 20 -5 -40 20 5 -40 4 4 20 -2 -40 60 -2 -40 60 2 -40 20 2 -40 0 MLCAD SKIP_END 0 STEP 0 BUFEXCHG A RETRIEVE 0 BUFEXCHG A STORE 0 !LPUB PLI BEGIN IGN 1 1 20 0 -40 -1 0 0 0 -1 0 0 0 1 6558.dat 0 !LPUB PLI END 0 STEP 0 BUFEXCHG A RETRIEVE 0 !LPUB NOSTEP 0 NOFILE Though I called it a Remove Group Test, no remove group needed here. Only done with Buffer exchange. If the pins are pushed in later in the model, you need to use remove group. I'll make an example of that too. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
OK, reading this I think I now know what you want to do. The axle needs to be pushed inward a few steps after the submodel that it is in. I found an example in the MINING TRUCK - 42035 http://cache.lego.com/bigdownloads/buildinginstructions/6125480.pdf On page 9 step 7 there are 2 blue long pins. These are in a submodel. These need to be pushed in in the next step (page 10 step 8). We can make this with LPub too. I'll work out an example. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
I'll look in to that Jeroen. Edit: I guess I was wrong about removing a group from a submodel in the main model. That does not work. To be sure about the commands (group name = A) Before every brick in the group 0 MLCAD BTG A After the last brick in the group 0 GROUP x A where x is the amount of bricks in the group. The bricks you add to the group do not have to be in the same step or follow the hierarchy of the lines, but must be in the same model (main or sub) where you remove the group using the command: 0 !LPUB REMOVE GROUP "A" Jeroen: removing the axle is done with buffer exchange in combination with ghosting. I'll make an example for that. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
That is is what the Remove Group metacommand is for in LPub. It can "remove" parts in a native MLCad Group. See: https://sites.google.com/site/workingwithlpub/general/advanced-techniques/metacommands/remove-group -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
LOL To comfort you a bit: it took me a while to figure that out too! :-) -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
I think the answer from legolijntje is correct. However the felxible parts do show in the "part bin". You can edit these just like any other submodel (clicking the wrench icon) and then delete it. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
Ghosting is an exclusive feature of MLCad. You Ghost a brick or more in a submodel when using buffer exchange (also MLCad exclusive) to hide it in the main model so you do not get confused by all floating elements when editing. If you use LDCad to model your design and create instructions in LPub, you don't need to ghost any part. -
[Software] LDCad - LDraw cad
Jaco replied to legolijntje's topic in Digital LEGO: Tools, Techniques, and Projects
Since LDCad does not support buffer exchange view yet, this does not apply. Ghosting is only useful while editing and only applies used in submodels (in MLCad) Lpub does not make use of it. It just sees a ghosted brick like a comment because the command has a leading zero (0 GHOST) -
Instructions are done. Look here for downloads of MPD and PDF: https://sites.google.com/site/workingwithlpub/building-instructions/marketstreetbakery10190mod LMKWYT
-
OK, thanks Murdoch! Take a look here (in Dutch, but easy to translate using Google) for some preliminary images. https://sites.google.com/site/binarybricks/projecten/marketstreetbakery10190mod
-
Hello! My name is Jaco! Some of you might know me as Sjaacko. I'm from the Netherlands and I've been mainly involved in the LDraw community since 1997. On my website (in Dutch) Binarybricks.nl is information on working with MLCad and LDraw related tools. And I have an online manual for LPub (in English) and am writing some documentation on LPub3D. See you around here!
-
Hi all, A friend asked me to create instructions for this great mod because he cannot run LDD. I converted it to LDraw format and creating building instructions for it in LPub3D. Once done, I'll post here! Jaco