| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 249 online users. » 4 Member(s) | 241 Guest(s) Applebot, Bing, Google, Yandex, Adiavroxos, James Simpson
|
|
|
| Underside stud group scaling |
|
Posted by: Travis Cobbs - 2011-12-09, 0:13 - Forum: Standards Board
- Replies (1)
|
 |
As Tore just pointed out, if stud groups are ever created for underside studs, then they should probably be allowed to be scaled in the Y axis so that the same stud groups can be used for both plates and bricks. I suggest that we add the text that just passed (4 YES votes as of now), then come up with a modification of the wording to allow for scaling in the Y axis for stud groups used on the underside of bricks/plates/tiles.
|
|
|
| Applescript to "center" in Bricksmith |
|
Posted by: Ramón Figueroa-Centeno - 2011-12-08, 23:59 - Forum: LDraw Editors and Viewers
- Replies (2)
|
 |
Aloha,
Below is an Applescript to "center" parts in Bricksmith. It computes the averages, denoted x, y, and z, of the coordinates of the selected parts and then shifts -x, -y and -z (and snaps to grid).
It requires UI Scripting to be on (and does not check if it is).
Enjoy!
Ramón
Code: property wait : 2 -- seconds to wait for Bricksmith to react
set the clipboard to "0"
activate application "Bricksmith"
tell application "System Events"
tell process "Bricksmith"
-- Copy
keystroke "c" using {command down}
end tell
end tell
-- Wait for the clipboard to update "wait" seconds
repeat wait * 10 times
if (the clipboard) is "0" then
delay 0.1
else
exit repeat
end if
end repeat
if (the clipboard) is not "0" then
set parts to the clipboard as text
try
set oldDelims to AppleScript's text item delimiters -- save their current state
set AppleScript's text item delimiters to {" "} -- declare new delimiters
set n to 0
set x to 0
set y to 0
set z to 0
repeat with part in paragraphs of parts
try
if text item 1 of part is "1" then
set n to n + 1
set x to x + (text item 3 of part) as real
set y to y + (text item 4 of part) as real
set z to z + (text item 5 of part) as real
end if
end try
end repeat
if n > 0 then
-- Compute averages
set x to round (x / n)
set y to round (y / n)
set z to round (z / n)
activate application "Bricksmith"
tell application "System Events"
tell process "Bricksmith"
-- Open the "Move" window
click menu item "Move…" of menu 1 of menu bar item "Edit" of menu bar 1
-- Wait for the move window to open "wait" seconds
set flag to false
repeat wait * 10 times
try
get focused of window "Move"
set flag to true
exit repeat
end try
delay 0.1
end repeat
if not flag then
return
end if
-- Type the new x coordinate
if (value of text field 3 of window "Move") is not (-x as string) then
set focused of text field 3 of window "Move" to true
repeat with c in characters of (-x as string)
keystroke c
end repeat
end if
-- Type the new y coordinate
if (value of text field 2 of window "Move") is not (-y as string) then
set focused of text field 2 of window "Move" to true
repeat with c in characters of (-y as string)
keystroke c
end repeat
end if
-- Type the new z coordinate
if (value of text field 1 of window "Move") is not (-z as string) then
set focused of text field 1 of window "Move" to true
repeat with c in characters of (-z as string)
keystroke c
end repeat
end if
-- Move
click button "Move" of window "Move"
-- Close the move window
keystroke "w" using {command down}
-- Snap to grid
keystroke "g" using {command down}
end tell
end tell
end if
set AppleScript's text item delimiters to oldDelims -- restore them
on error
beep
set AppleScript's text item delimiters to oldDelims -- restore them in case something went wrong
end try
else
beep
end if
|
|
|
| Call for votes: Stud Groups |
|
Posted by: Willy Tschager - 2011-12-08, 21:50 - Forum: Standards Board
- Replies (7)
|
 |
Please vote on the proposal below. Please modify the Subject to include your name and vote, in addition to giving your vote in the text.
Update the LDraw.org File Format Restrictions for the Official Library and Primitives Reference documents in the following way:
Quote:Stud groups
Stud groups are provided to reduce the size of part files with many regularly spaced studs. The naming convention is as following:
stugN-XxZ.dat
where:
N = type of stud (regular stud, hollow stud, underside stud, …)
X = number of studs on the x axis
Z = number of studs on the z axis
To prevent an overload of the library with all sort of combinations, the numbers on the x and z axis are limited to:
1xZ stugs
Xx1 stugs (Due to stud orientation you cannot rotate a 1xZ stud group by 90 degrees to get a Xx1 stud group)
XxZ stugs where X==Z
These primitives must not be scaled.
|
|
|
| Top 30 LDraw parts authors |
|
Posted by: Steffen - 2011-12-08, 1:36 - Forum: Website Suggestions/Requests/Discussion
- Replies (38)
|
 |
In lugnet.cad, Philippe Hurbain wrote:
> I'm said to be a prolific parts author, so I wanted to verify the truth
> behind... A few find in files, some Excel work and a bit of manual cleaning
> gives the result below. This was done on the full collection of official LDraw
> parts + unofficial ones up to march 2011.
>
> Have fun!
>
> Philo
source:
http://www.lugnet.com/cad/?n=17710
PS
I took this from Google's cached version of the site, as lugnet currently seems to be down
|
|
|
| Online Users |
|
Posted by: Steffen - 2011-12-08, 0:18 - Forum: Website Suggestions/Requests/Discussion
- Replies (1)
|
 |
The forums homepage shows at its bottom the users currently online.
How's that list being generated?
I wonder why while I am writing this, there are 4 people listed different than me,
and some guests, but not me.
|
|
|
| parts authors |
|
Posted by: Steffen - 2011-12-08, 0:08 - Forum: Website Suggestions/Requests/Discussion
- Replies (35)
|
 |
I just noticed that in the forums some roles are displayed for some users, for example:
Orion Pobursky
Website Administrator
LDraw.org Steering Committee Member
James Jessiman Memorial Award Recipient
That's nice, as it gives the readers and posters more context information of the poster.
However, I am missing that all part authors do not get such an attribute:
There should be an attribute "Part Author".
While adding this, I'd like to request a little cleanup. The attributes are not coherent currently:
some have a leading "LDraw.org", some don't. So for example one attribute reads
"Website Administrator", and not "Ldraw.org Website Administrator",
and the other reads
"LDraw.org Steering Committee Member" and not "Steering Committee Member".
As everything which happens on this site automatically and impliticly is ldraw.org stuff,
it is not necessary to precede each Attribute with "Ldraw.org ...".
So I suggest removing that prefix from all attributes.
|
|
|
| How to save comprehensive parts list for multiple models? |
|
Posted by: Derek - 2011-12-07, 21:53 - Forum: Help
- Replies (31)
|
 |
I want to take multiple models in one file (6 of this, 3 of that, etc) and save a big old master parts list that doesn't break it down by model, so that I can buy them all at once. This is a bunch of miniature game pieces that someone designed, and I want to buy enough to play a game with. The problem is that when I save a parts list, it's just one of every model and none of the parts are consolidated (lots of similar parts). Also, I would have to go in and manually edit the parts list by multiplying pieces by how many I need, ad nauseam. I was doing this, until 3/4 of the way through I realized I'd marked a color improperly, and had to generate all new parts lists. Can anyone help me out?
For simplicity's sake, let's say I have 50 different models.
I need 6 of some, 3 of some, 4 of some, and 5 of some others, while only 1 of a few of them. I want a master parts list, all consolidated, that I can use for ordering parts.
|
|
|
| BBEdit LDraw Module |
|
Posted by: Ramón Figueroa-Centeno - 2011-12-07, 18:09 - Forum: LDraw Editors and Viewers
- No Replies
|
 |
Aloha,
I have added to Jim DeVona's ldraw.plist, found in TextWrangler LDraw Kit (see below). So that it would do syntax highlighting in BBEdit.
Save it in text file, named ldraw.plist in
~/Library/Application Support/BBEdit/Language Modules/ldraw.plist
I would like to know how to get it to do code folding on the steps of an LDraw file.
Mahalo,
Ramón
Code: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>LDraw</string>
<key>BBLMLanguageCode</key>
<string>LDrw</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMScansFunctions</key>
<true/>
<key>BBLMIsCaseSensitive</key>
<false/>
<key>BBLMCanSpellCheckCodeRuns</key>
<true/>
<key>BBLMKeywordList</key>
<array>
<string>!CATEGORY</string>
<string>!CMDLINE</string>
<string>!COLOUR</string>
<string>!HELP</string>
<string>!HISTORY</string>
<string>!KEYWORDS</string>
<string>!LDRAW_ORG</string>
<string>!LICENSE</string>
<string>!LPUB</string>
<string>BFC</string>
<string>CLEAR</string>
<string>LDRAW_ORG</string>
<string>PAUSE</string>
<string>PRINT</string>
<string>SAVE</string>
<string>STEP</string>
<string>WRITE</string>
<string>Official</string>
<string>Unofficial</string>
<string>Un-official</string>
<string>Part</string>
<string>Subpart</string>
<string>Primitive</string>
<string>48_Primitive</string>
<string>Shortcut</string>
<string>File</string>
<string>Model</string>
<string>Submodel</string>
<string>Element</string>
<string>Sub-part</string>
<string>Hi-Res Primitive</string>
<string>Alias</string>
<string>Cross-reference</string>
<string>ABS</string>
<string>ADD</string>
<string>AREA</string>
<string>ASSEM</string>
<string>Author</string>
<string>AXLE</string>
<string>BACKGROUND</string>
<string>BASE</string>
<string>BEGIN</string>
<string>BGT</string>
<string>BI</string>
<string>BOM</string>
<string>BORDER</string>
<string>BORDERLESS</string>
<string>BUFEXCHG</string>
<string>CALLOUT</string>
<string>CENTER</string>
<string>CHAIN</string>
<string>CMDLINE</string>
<string>COLOR</string>
<string>COLORNAME</string>
<string>COLOUR</string>
<string>COLOURNAME</string>
<string>COLS</string>
<string>CONFIG</string>
<string>CONSTRAIN</string>
<string>CROSS</string>
<string>DIVIDER</string>
<string>ELECTRIC_CABLE</string>
<string>ELSEPOV</string>
<string>END</string>
<string>ENDPOV</string>
<string>FIBER_OPTIC_CABLE</string>
<string>FLEX_CABLE</string>
<string>FLEXHOSE</string>
<string>FLEXIBLE_AXLE</string>
<string>FLEXIBLE_TUBE</string>
<string>GHOST</string>
<string>GRAYED</string>
<string>GROUP</string>
<string>HEIGHT</string>
<string>HIDE</string>
<string>HORIZONTAL</string>
<string>ID</string>
<string>IFNOTPOV</string>
<string>IFPOV</string>
<string>IGN</string>
<string>INSIDE</string>
<string>INSTANCE_COUNT</string>
<string>LDRAW</string>
<string>LPUB</string>
<string>MARGINS</string>
<string>MATRIX</string>
<string>MLCAD</string>
<string>MULTI_STEP</string>
<string>Name</string>
<string>NUMBER</string>
<string>OFFSET</string>
<string>OUTSIDE</string>
<string>PACK</string>
<string>PAGE</string>
<string>PART</string>
<string>PLACEMENT</string>
<string>PLASTIC_TREAD</string>
<string>PLI</string>
<string>PLIST</string>
<string>PNEUMATIC_TUBE</string>
<string>POINT</string>
<string>POINTER</string>
<string>REL</string>
<string>REMOVE</string>
<string>RETRIEVE</string>
<string>RIBBED_TUBE</string>
<string>RIGID_TUBE</string>
<string>ROTATE</string>
<string>ROTATION</string>
<string>ROTSTEP</string>
<string>ROUND</string>
<string>RUBBER_BAND</string>
<string>RUBBER_BELT</string>
<string>RUBBER_TREAD</string>
<string>SCALE</string>
<string>SEPARATOR</string>
<string>SHOW</string>
<string>SIZE</string>
<string>SKIP_BEGIN</string>
<string>SKIP_END</string>
<string>SORT</string>
<string>SPRING</string>
<string>SQUARE</string>
<string>STEP_NUMBER</string>
<string>STORE</string>
<string>STRETCH</string>
<string>SUB</string>
<string>SUBS</string>
<string>SYNTH</string>
<string>SYNTHESIZED</string>
<string>TRANS</string>
<string>TRANSFORM</string>
<string>TRANSLATE</string>
<string>VERTICAL</string>
<string>WIDTH</string>
<string>YESNO</string>
</array>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.mpd</string>
</dict>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.ldr</string>
</dict>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.dat</string>
</dict>
</array>
<key>Language Features</key>
<dict>
<key>Function Pattern</key>
<string>^\s*0\s+FILE\s+(?P<function_name>\S+)\s*$</string>
<key>Identifier and Keyword Character Class</key>
<string>0-9A-Z_a-z!</string>
<key>Comment Pattern</key>
<string>^\s*0\s+(?!!|STEP|ROTSTEP|Name|Author|FILE|Official|Unofficial|Un-official).*</string>
<key>Skip Pattern</key>
<string></string>
<key>String Pattern</key>
<string></string>
</dict>
</dict>
</plist>
|
|
|
|