We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

PRISM_ STATUS CODES: EDGE NOT SHOWING ON CYLINDER-LIKE PRISM

Anonymous
Not applicable
Hello,

I am creating a simple spout object and I have set the status code to make the bottom edge visible and side surface present. This works great in 3D, however in 2D the outlines of the Prism_ are not showing. I have had a look at Barry Kelly's code for his simple spout and I can't quite work out how he has managed to show the side outer edges in 2D & 3D.

Cheers in advance!

my code is as follows:

PRISM_ 2, spoutLength-(elbowLength+wallPlateLength),
0, 0, 909,
spoutDiameter/2, 360, 4011
2 REPLIES 2
Barry Kelly
Moderator
Instead of making the prism with one centre point and a 360° arc, start with a side node, then the centre, then a 180° arc.
This will give half the cylinder.
Complete with the other half (same but negative distance).
I always like to finish back at the starting point - so 7 instructions in all.

By staring on an edge you will have better control with the masking codes.
15 will show all edges including the vertical edges - this is important for the +64 mask.
-4 will hide the top edge.
+64 will give a view dependent edge on the curved (they are not really curves but a series of flat segments) so it will always appear if there is and edge as you rotate the prism.

There will be other ways to do this as well.

PRISM_ 7, spoutLength-(elbowLength+wallPlateLength),
spoutDiameter/2, 0, 15-4+64,
0, 0, 900,
0, 180, 4000,
-spoutDiameter/2, 0, 15-4+64,
0, 0, 900,
0, 180, 4000,
spoutDiameter/2, 0, -1

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
I understand now, thanks for breaking that down for me Barry. This will be a very useful trick when creating future objects.

Cheers,

Jarrod