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

MODEL SOLID/SURFACE error

rocorona
Booster
MATERIAL 1
MODEL WIRE
	BLOCK 1.00, 3.40, 3.00

ROTy 90
ADDz 0.75
::CUTPLANE
DEL 2

MATERIAL 41

MODEL SOLID
	ADD 0.50, 0.50, 0.00
	CYLIND 1.00, 0.50
	ADDz 1.00
	CONE 1.00, 0.50, 0.00, 90, 90
	ADDz 1.50
	SPHERE  0.50
	DEL 3

MODEL SURFACE
ADDy 1.20
	ADD 0.50, 0.50, 0.00
	CYLIND 1.00, 0.50
	ADDz 1.00
	CONE 1.00, 0.50, 0.00, 90, 90
	ADDz 1.50
	SPHERE  0.50
	DEL 3
DEL 1

MODEL SOLID
ADDy 2.40
	ADD 0.50, 0.50, 0.00
	CYLIND 1.00, 0.50
	ADDz 1.00
	CONE 1.00, 0.50, 0.00, 90, 90
	ADDz 1.50
	SPHERE  0.50
	DEL 3
DEL 1

::CUTEND
this works correctly in previous versions of ArchiCAD, but
in AC 8.1 (as you can see in the bottom image) one of the shapes defined as SOLID appears hollow.
I haven't done a full test, but it appears that the MODEL SURFACE affect the bodies after the directive, PLUS ONE before it... !
Eg. putting another MODEL SURFACE between the last DEL 1 and the CUTEND, the last sphere becames empty.
This does not happen if the MODEL SURFACE is AFTER the CUTEND.

Is this a known bug? Or I'm doing something wrong?

MODELSOLID test.gif
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
5 REPLIES 5
Anonymous
Not applicable
It looks like a bug as far as I can tell.

BTW: What are the two colons before the CUTPLANE & CUTEND statements? I have never seen this before. Does it influence the function of the statements?
rocorona
Booster
Matthew wrote:
BTW: What are the two colons before the CUTPLANE & CUTEND statements? I have never seen this before. Does it influence the function of the statements?

No, they do absolutely nothing!
I use them sometime (one or two colons) to mark pairs of statements, like ADD & DEL 1, CUTPLANE & CUTEND or FOR & NEXT.
Usually the visual matching is achieved using the indentation, but sometime, where there are many levels, the indentation can be reduced this way...

--Roberto--

_________________________________________________
http://www.archiradar.com
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
Fabrizio Diodati
Graphisoft Alumni
Graphisoft Alumni
The use of the two colons before/after A GDL commands comes from the ancient "GDL style".
Two colons has the same meaning of a new line (something like a carriage return), for example, the following statements:

! = = = = =
ADDz 0.75
::CUTPLANE
DEL 2
! = = = = =

Are interpreted by the GDL Engine as the following ones:

! = = = = =
ADDz 0.75


CUTPLANE
DEL 2
! = = = = =

As Roberto wrote, is a comfortable way to “mark/highlight” your statement…
Fabrizio Diodati
Graphisoft Italy Srl | Via Rossignago 2/A Spinea Venezia 30038 Italy
rocorona
Booster
Fabrizio wrote:
The use of the two colons before/after A GDL commands comes from the ancient "GDL style".
Two colons has the same meaning of a new line
...
Ciao Fabrizio
I know you know... but for clarity, each colon (even a single one) works like a "New line" character.

So the line:

BLOCK 1,1,1: ADDX 1.2: BLOCK 1,1,1

is read by the GDL interpreter as:

BLOCK 1,1,1
ADDX 1.2
BLOCK 1,1,1


--Roberto--


______________________________
http://www.archiradar.com
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
Fabrizio Diodati
Graphisoft Alumni
Graphisoft Alumni
Damn!

This is the result of fast copy&past procedure (without checking it!).
Unfortunately I copy and past the Matthew's phrase:

I wrote:

"Two colons has the same meaning of a new line ..."

But I intended:

"colon has the same meaning of a new line..."

Sorry...
Fabrizio Diodati
Graphisoft Italy Srl | Via Rossignago 2/A Spinea Venezia 30038 Italy