[LDPE] 1.8.60 Released (!LPE CONST expressions) - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: Parts Author Tools (https://forums.ldraw.org/forum-24.html) +--- Thread: [LDPE] 1.8.60 Released (!LPE CONST expressions) (/thread-26551.html) |
1.8.60 Released (!LPE CONST expressions) - Nils Schmidt - 2022-07-10 Hey, this release introduces a complex and powerful feature: The !LPE CONST meta command. It allows you to use constants in almost any line type and replace them with a real value when needed. However, the constants will be removed from a line when the line is modified from another source that is not the constant itself. When you change a value of a constant afterwards, you need to click manually on the "Update/compile linked subfile data" button. icon32_subcompile.png (Size: 1.72 KB / Downloads: 71) You can see the calculated value in the warnings section of the text editor. Syntax: Code: 0 !LPE CONST variable = expression With that you can do things like: Code: 0 !LPE CONST red = 4 When you quick fix the warnings for the variable declarations, it will become: Code: 1 4 3 0 0 1 0 0 0 1 0 0 0 1 box.dat Code: 0 !LPE CONST angle = 20 It is possible to use the constants directly in subfiles. But you can not automatically replace them with a quick fix from the parent file. Code: 0 !LPE CONST subX = 8 subfile.dat Code: 2 24 0 0 0 subX subY subZ You can also combine it with the CSG or INLINE meta commands. Code: 0 !LPE CSG_QUALITY 16 As always, you can download LDPE from this page: http://nilsschmidt1337.github.io/ldparteditor/ Changelog: (4 new features) With this release you will be able to...
The program was tested intensively with "real world" files. However, something can go wrong in about 140.000 lines of code. Installation on Windows:
I listen carefully to your requests and possible complaints. Please leave me a message, with your thoughts and wishes to further improve the software. LDPE is a 3D CAD application: The overall system requirements are higher. While I recommend to use a powerful 64-bit multicore system, it could be possible, to run LDPE on older machines as well. System Requirements: Minimum System Requirements:
RE: 1.8.60 Released (!LPE CONST expressions) - Magnus Forsberg - 2022-07-10 Just out of curiosity. What happened between version 0.8.53 and 1.8.54? I think I understand already, but why keep the old version numbering. A note on version numbering. - Nils Schmidt - 2022-07-10 (2022-07-10, 11:50)Magnus Forsberg Wrote: Just out of curiosity. What happened between version 0.8.53 and 1.8.54? It was a technical reason required by Mac OS X to increase the first number from zero to one. I had to change 0.x.x to 1.x.x because of that. Otherwise, I would have taken just 0.8.54. RE: 1.8.60 Released (!LPE CONST expressions) - Max Murtazin - 2022-07-10 Very cool to see this feature implemented Going to try it out later today RE: 1.8.60 Released (!LPE CONST expressions) - Cam's Bricks - 2022-07-10 Wow this is really cool! I really like the quick fix concept because at the end of the day I can make a template file, change the constants, then save as the new iteration. It would be cool to see this meta be added to other editors but that is awesome. I am not quite following the explanation of the subfile explanation. I think it is saying that the constants cannot be changed from the working file into a subfile? For example: Code: Sub-file A Cannot be changed in a working file this this: Code: Working File Is my understanding correct? !LPE CONST and subfiles - Nils Schmidt - 2022-07-10 (2022-07-10, 16:55)Cam's Bricks Wrote: Wow this is really cool! I really like the quick fix concept because at the end of the day I can make a template file, change the constants, then save as the new iteration. You can do something like: Code: Working File Code: Sub-file A Code: Sub-file A Another elegant possibility is this: Code: Sub-file A Thanks! You described here one of the main benefits: "I really like the quick fix concept because at the end of the day I can make a template file, change the constants, then save as the new iteration. " RE: 1.8.60 Released (!LPE CONST expressions) - N. W. Perry - 2022-07-23 Hmm, I can no longer seem to open the program without getting the "This app is damaged…" message. Calling the executable directly no longer seems to work around this. This is on the new M1 Mac under OS 12.5 Monterey. Not specific to this version of LDPE. I'll keep trying, but has anyone else gotten the app running on a silicon Mac? RE: 1.8.60 Released (!LPE CONST expressions) - Vincent Messenet - 2022-07-25 (2022-07-23, 16:02)N. W. Perry Wrote: I'll keep trying, but has anyone else gotten the app running on a silicon Mac? Yes I am! I also encountered this error and found out a way to make it work. Open a Terminal and enter the following commands one by one: sudo spctl --master-disable sudo chmod -R 777 /Applications/LDPartEditor.app xattr -d com.apple.quarantine /Applications/LDPartEditor.app xattr -cr /Applications/LDPartEditor.app The first command allows applications from unidentified developers The second might be optional but will repair the application's permissions if required The third and fourth lines will add the application to the whitelist of Gatekeeper, Apple's protection system RE: 1.8.60 Released (!LPE CONST expressions) - N. W. Perry - 2022-07-25 (2022-07-25, 19:03)Vincent Messenet Wrote: Yes I am! I also encountered this error and found out a way to make it work. Open a Terminal and enter the following commands one by one: Hmm. OK, I'll look more into it. I had been getting an error message with the xattr commands, saying there's no such attribute as "com.apple.quarantine". But I notice you're acting on the .app package itself, rather than the executable inside it, which might be the reason. RE: 1.8.60 Released (!LPE CONST expressions) - N. W. Perry - 2022-07-26 (2022-07-25, 21:21)N. W. Perry Wrote: Hmm. OK, I'll look more into it. I had been getting an error message with the xattr commands, saying there's no such attribute as "com.apple.quarantine". Well, I got farther than before, now the error is: "The program cannot be used, because you have no rights to write to the application folder." The chmod should have fixed that, no? RE: 1.8.60 Released (!LPE CONST expressions) - Vincent Messenet - 2022-07-26 (2022-07-26, 5:54)N. W. Perry Wrote: Well, I got farther than before, now the error is:Yes, it should. Can you elaborate on how you launched it? On my side I launch a script ldparteditor.sh located in my user folder which contains the following command line: /Applications/LDPartEditor.app/Contents/MacOS/LDPartEditor Also if you do command+I on LDPartEditor.app do you confirm read&write permissions are granted for everyone? RE: 1.8.60 Released (!LPE CONST expressions) - N. W. Perry - 2022-07-26 (2022-07-26, 6:15)Vincent Messenet Wrote: Yes, it should. Can you elaborate on how you launched it? You know what, that was it. I had forgotten you still have to launch the executable directly. And I was thrown off because when I opened the package, I still got as far as the setup dialog and launch progress bar before the error message was thrown. Of course, now that it's open I have a different bug, but I'll put that in another post! RE: 1.8.60 Released (!LPE CONST expressions) - N. W. Perry - 2022-07-26 Here's the bug I'm getting (M1 MacBook Pro, OS 12.5 Monterey): See how in the 3D editor window (and in the primitives pane), the windows themselves are the right size but their graphics are too small by half. Mouse input works across the full window, however—so if I wanted the drop-down menu in the 3D editor, I'd have to mouse over the upper-left corner of the blank white area. RE: 1.8.60 Released (!LPE CONST expressions) - Travis Cobbs - 2022-07-26 (2022-07-26, 21:37)N. W. Perry Wrote: Here's the bug I'm getting (M1 MacBook Pro, OS 12.5 Monterey): That's a known problem (with a workaround): https://github.com/nilsschmidt1337/ldparteditor/issues/755 RE: 1.8.60 Released (!LPE CONST expressions) - N. W. Perry - 2022-07-27 (2022-07-26, 23:05)Travis Cobbs Wrote: That's a known problem (with a workaround): https://github.com/nilsschmidt1337/ldparteditor/issues/755 Ah, yes. I knew it seemed vaguely familiar! |