Wiki source code of 3D Printing
Version 56.1 by Josh McGee on 2025/11/19 10:53
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
22.1 | 1 | = **Slicing** = |
| |
18.1 | 2 | |
| |
19.1 | 3 | {{include page="Workflows/3D Printing/Slicing"/}} |
| |
18.1 | 4 | |
| |
19.1 | 5 | |
| |
23.1 | 6 | = **Preparing To Print** = |
| |
19.1 | 7 | |
| |
35.3 | 8 | {{include page="Workflows/3D Printing/Preparing To Print"/}} |
| |
19.1 | 9 | |
| |
24.1 | 10 | = **Preparing To Print** = |
| 11 | |||
| 12 | Follow the printing guide for your 3d printer: | ||
| 13 | |||
| |
35.1 | 14 | ??? ADD SOME KIND OF TOC SUBTREE HERE ??? |
| |
36.1 | 15 | |
| 16 | |||
| |
37.1 | 17 | {{velocity}} |
| |
55.1 | 18 | ## List all direct subpages of Areas > Upstairs > 3D Printers |
| 19 | #macro(list3DPrintersSubpages) | ||
| 20 | ## Current wiki name | ||
| 21 | #set($wikiName = $xcontext.database) | ||
| 22 | |||
| 23 | ## Build a document reference for Areas.Upstairs."3D Printers".WebHome | ||
| 24 | #set($parentRef = $services.model.createDocumentReference( | ||
| 25 | $wikiName, | ||
| |
56.1 | 26 | ['Areas', 'Upstairs', '3D Printers'] |
| |
55.1 | 27 | )) |
| 28 | |||
| |
54.1 | 29 | ## Get the parent document |
| |
55.1 | 30 | #set($parentDoc = $xwiki.getDocument($parentRef)) |
| |
51.1 | 31 | |
| |
55.1 | 32 | ## Get its direct children |
| |
54.1 | 33 | #set($children = $parentDoc.getChildren()) |
| |
51.1 | 34 | |
| |
54.1 | 35 | #if(!$children || $children.isEmpty()) |
| |
55.1 | 36 | No subpages found under [[Areas.Upstairs.3D Printers]]. |
| |
52.1 | 37 | #else |
| |
54.1 | 38 | #foreach($childRef in $children) |
| |
55.1 | 39 | ## Resolve each child reference to a document |
| |
54.1 | 40 | #set($childDoc = $xwiki.getDocument($childRef)) |
| 41 | * [[$childDoc.getDisplayTitle()>>$childDoc]] | ||
| |
37.1 | 42 | #end |
| 43 | #end | ||
| 44 | #end | ||
| 45 | |||
| 46 | ## Call the macro | ||
| |
55.1 | 47 | #list3DPrintersSubpages() |
| |
37.1 | 48 | {{/velocity}} |
| 49 | |||
| |
38.1 | 50 |