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

Revolving a curved surface

derekjackson
Expert
Hi folks,
I'm trying to use the Revolve command to sweep a profile around a corner. It seems to work fine apart from a curved part of the profile - it seems to be reduced to a straight line.

Surely it's possible?

My code is:
	REVOLVE 11,     90, 63,
		0, 0.00,                0, 
		0.125, 0.0005,        0, 
		0.1213926683545, 0.02164398987305,       0, 
		0.1115287291162, 0.02,     900, 
		80.53767779197, 0,    4001, 
		0.1115287291162, 0.03,       0, 
		0.01347127088383, 0.03,       0, 
		0.01347127088383, 0.02,     900, 
		80.53767779197, 0.001,    4001, 
		0.003607331645509, 0.02164398987305,       0, 
		0, 0.00,                 -1
Screengrab attached showing where the revolve fails.

Is it just a masking code issue, either for the Revolve or one of the points within it?

Thanks in advance.

Revolve corner.jpg
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
6 REPLIES 6
Anonymous
Not applicable
It seems like there are too many nodes in the Revolve statement for the element pictured. It looks like it should only need six nodes to define that shape.

The coordinate values are also a bit baffling. I would suggest coding the Revolve with variable parameters for the node coordinates so you can more easily tweak the outcome.
derekjackson
Expert
They were generated by ArchiCAD from a fill, so I didn't question them! And the item won't change in size - it's just on or off, so I have bothered with variables for the various points.

There are 6 points, plus two curved edges. So 6 nodes for the points, another two lines per curve (so 10), plus a return to the starting point - I would've though 11 was correct?

If I wanted an angular profile then 6 points would do the job fine - my issue is trying to get the curved edge to revolve as a curved surface. It works fine on the straight prism (on the right of the screengrab). Any ideas where the error is? I'm sure it's something obvious I'm missing!
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
Anonymous
Not applicable
It's hard to read the form from the coordinates, but perhaps the center points (mask 900) are messed up somehow. A mask of 1001 or 2001 (tangential to point or by angle) would fix it. In this case you can delete the center point.

I still don't see why you aren't using a profiled wall for this.
Anonymous
Not applicable
Syntax for status code 4000 is
0, ang, 4000 + s
It seems you have inverted ang and 0.
Anonymous
Not applicable
Olivier wrote:
Syntax for status code 4000 is
0, ang, 4000 + s
It seems you have inverted ang and 0.
Of course! Silly of me not to notice. Thanks Olivier.
derekjackson
Expert
Excellent, that's done the job fine - thanks!

The original profile was generated in 2D so I had to invert the X and Y values to get it in 3D - guess I accidentally inverted all the lines.
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb