|
POST
|
Here's some ancient code I wrote once to make a "true" overhang, unfortunately it only works properly for buildings with equal width and depth due to the trig used to calculate the y-offset. You could always eyeball it, though. Or just change it to have a floating "tent" hovering close above the structure. attr overHang = 5
attr roofAngle = 30
@StartRule
Lot -->
extrude(1)
s(20,10,20)
center(xz)
comp(f){top: Roof RoofOverhang| all: NIL.}
Roof -->
roofPyramid(roofAngle)
RoofOverhang -->
s(scope.sx+overHang*2, scope.sy+overHang*2,'1)
roofPyramid(roofAngle)
center(xz)
split(y){overHang*tan(roofAngle): Overhang | ~1: NIL}
Overhang -->
t(0,-(overHang)*tan(roofAngle),0)
comp(f){top: styleOverhang | bottom: NIL}
... View more
09-29-2017
05:13 AM
|
2
|
1
|
1825
|
|
POST
|
You could also use a conditional rule with indexes, like so: attr startIndex = 0
attr endIndex = 0
@StartRule
Lot -->
comp(f){side:IndexCase}
IndexCase -->
case comp.index >= startIndex && comp.index <= endIndex: DoThing
else: Stop
... View more
09-29-2017
02:53 AM
|
2
|
2
|
2953
|
|
POST
|
No but you can use Excel to build rules like that easily. For example, put =A1&": "&B1&" |" in cell C1, Index in A and rule name in B. Then just pull the cells down.
... View more
09-28-2017
04:38 AM
|
0
|
4
|
2953
|
|
POST
|
Ah. Then all you need is a little math. split(x){(minWidth+((minWidth*((scope.sx/minWidth)-(floor(scope.sx/minWidth))))/(floor(scope.sx/minWidth)))): X}*
... View more
09-20-2017
01:22 PM
|
1
|
0
|
1223
|
|
POST
|
After you add the new folder just drag the cej files in there, they open with no extra relinking required.
... View more
09-19-2017
02:26 PM
|
1
|
1
|
1261
|
|
POST
|
Repeat splits fix the leftover automatically. Just do hard 2m splits, that way you'll end up with 5x2m and and a 1m leftover. You can also nest repeat splits, like so: split(x){~1: X. | {2: X.}* | ~1: X.}.
... View more
09-19-2017
02:21 PM
|
0
|
2
|
1223
|
|
POST
|
When creating new folders within CE, click the "Advanced" button and pick the linked folder option.
... View more
09-19-2017
02:05 AM
|
0
|
3
|
1261
|
|
POST
|
AFAIK no, unless there was some change in the last version. It's annoying but since you're automating it anyway, it shouldn't be a big problem.
... View more
09-14-2017
02:29 PM
|
0
|
0
|
1756
|
|
POST
|
You'll have to use Python, AFAIK. Look for ce.getObjectsFrom. Here's the command reference: Help -
... View more
09-07-2017
09:46 AM
|
0
|
0
|
1660
|
|
POST
|
That does the trick, great! Additional info: when using an angle, this problem doesn't appear. I calculated it from the B-Split and then stuck the value in the A-Split.
... View more
09-06-2017
02:56 AM
|
0
|
0
|
1927
|
|
POST
|
I'm splitting a simple shape in two and generating shed roofs using byHeight and a value. This works fine on the first split, however when I turn the roof on the second split using the index, the height is cut in half. Bug? Project see attachment.
... View more
09-05-2017
02:20 AM
|
0
|
5
|
2146
|
|
POST
|
I considered FVTP but that creates an extra layer. I need this to be purely visual. Which works, but only if I edit every single style separately.. unless there's a way to globally assign basic style settings to the layer.
... View more
09-01-2017
09:31 AM
|
0
|
1
|
1131
|
|
POST
|
I have a line layer with features symbolized by ~15 unique values. I want to add markers on the vertices of the whole layer but so far I can't find any way to do so for all of the symbols. Do I have to click on each one, then add a marker layer in the properties and change its style/options? That would be roughly 150 clicks just for that layer..
... View more
08-31-2017
06:09 PM
|
0
|
3
|
1291
|
|
POST
|
Do a component split with edges and faces. Like Lot -->
extrude(20)
comp(f){all: walls}
comp(e){all: edges}
... View more
08-28-2017
02:53 PM
|
0
|
0
|
791
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-13-2018 02:05 AM | |
| 1 | 08-08-2016 06:59 AM | |
| 1 | 07-12-2018 09:08 AM | |
| 4 | 04-12-2019 08:20 AM | |
| 1 | 05-17-2016 03:25 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|