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

3D Object - Error in Expression

Anonymous
Not applicable
Hi,

I just tried to create a 3D object but when I insert it, it first tries to stretch it to a different size and then it crashes when I go to the 3D window and say error in line 841.

I made the 3d object and saved it as a gsm. But re-inserting it doesn't work.

Don't know what is wrong.

It just says Error in Expression at line 801.

Thanks,
Michael
5 REPLIES 5
Barry Kelly
Moderator
Hard to say without seeing the object.
Can you open the script and go to line 801 or 841 of the 3D script.
Just press CTRL+L and type in the line number.
What does this line of the script say?
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
Here is a print of the 3D script.

I am not sure if this is line 841 (didn't count all the lines).

How would I tell if this is line 841?

Regards,
Michael
Barry Kelly
Moderator
Michaelcitizen wrote:
How would I tell if this is line 841?
Put your cursor in the line and press CTRL+L and the line number will be shown.
You can type the line number into the dialogue that appears also to move to that line.

It doesn't look like this line will do anything but I would have thought there should be a name in the brackets.
Try commenting out the line by putting an exclamaition mark in front of it.
then save the object and see what happens.

i.e.
!killgroup()

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
Erich
Booster
Barry wrote:
...Just press CTRL+L and type in the line number.
What does this line of the script say?
Barry.
Barry already told you how to find a particular line.

In the portion of the script you show, there is a KILLGROUP command that does not appear to be complete - the parenthesis should have quotes inside them and the name of a prior group inside the quotes. However, without the full script I cannot tell you which group should be ended or what to put in as the argument to the KILLGROUP command.

Also, it would be a good idea to go back in this thread and delete some (all) of the duplicate posts. Just sayn'
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
Thanks about how to find the line number.

I put a ! in front then found I had a similar killgroup line problem at another point. I did the same to that one, then had numerous "Material not found" at a number of lines.

I think I will have to give up on trying to use that block and start from scratch again somehow. Though I am not sure what to do that will be any different.
Any ideas?

Oh I am also not sure how to delete the repeated posts in this thread.

Michael