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

Creating gsm library parts with custom profile

Anonymous
Not applicable
Is anyone able to advise if you can use the CUSTOM PROFILE tool to create library objects with that do NOT have script errors when you check them.

I have spent HOURS trying to get this to work and even the examples provided in the ArchiCAD11 guides produce script errors when checking.

Any feed back would be useful.

Richard Hewitt
ArchiCAD 11 (frustrated new user)
Windows XP
28 REPLIES 28
Anonymous
Not applicable
am attaching this file as well in case the other does not open
Karl Ottenstein
Moderator
richard wrote:
AC11 updating... you are on to something here.
Have downloaded hotfixes and installed up to 1040.

Hotfix 1086 will not install - and gives me an error and advises to look
Very odd about the 1086. Hotfixes are cumulative and do not have to be installed in order, except for one hotfix for 11 that violate this otherwise constant rule. The current build of 11 is 1210, but hotfix 1200 has to be installed first (if I am remembering the issue). So, just skip 1086, and download 1200 and see if that will install. Then apply 1210. You can use Check for Updates, or just go here:
http://tr.graphisoftus.com/
(Well, only 1200 is there. Do a Check for Updates afterwards to grab 1210. And, check regularly - GS has announced that they will indeed release another hotfix for 11 even though 12 has been out for some time.)

Cheers,
Karl
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Karl Ottenstein
Moderator
First, when you do a Checkscript, rather than click 'Continue', if you click 'Stop' the code in question will be highlighted...
Checkscript message.png
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Karl Ottenstein
Moderator
The error is missing materials, which are indeed missing on my machine since these are things you must have defined:

00 | Default Fabric 1 sofa
and
DEFAULT

If you have materials with these exact names, then it is possible that the problem is the vertical bar symbol, as I've seen that cause problems on Windows machines (but not on Macs). But, if you know scripting, if you replace all three materials text strings with a reference to a material parameter, the message should go away ... and lead you to the next thing to fix...

I simply duplicated one of my materials twice, and gave it your names (the two names above) - and then CheckScript was totally happy. So, no real problems that I see...

Cheers,
Karl

PS Pretty nice looking sofa for only 1,300 polygons and using the Wall Tool.
First error.png
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Anonymous
Not applicable
Karl

yes I had created materials specifically for this item - but I also created items with standard materials and still found those errors.

Not sure what you mean by the vertical bar?

------
Further to the updates on AC11 I have now installed AC12 and done the first update to AC12 2285 USA FULL
but errors trying to update the #2 hotfix 2325 and #3 hotfix 2420. Tried creating gsm in AC12 using a custom profile and it told me there was a script error after saving it.
for the point of the discussion I will continue to use AC11 1040 USA FULL.
------
Again I must thank you for the time you have spent answering the questions - have you managed to get that object of mine to check script ok?
Karl Ottenstein
Moderator
richard wrote:
Again I must thank you for the time you have spent answering the questions - have you managed to get that object of mine to check script ok?
Yes - the end of my last message. Checkscript ran fine. No problems.

Not sure why your updates will not complete on either 11 or 12. It is really essential that you have the lastest hotfix installed - not so much for this, but if you have any problems requiring tech support. Each represents many bug fixes. You may need to contact GSNA tech support to find out why the updates are not working for you.

Cheers,
Karl
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators
Anonymous
Not applicable
I come after the battle, Karl already did the job.

For autoscripted objects, you have to make material definitions parametric. This is not automatical.
Create two parameters, mat1 & mat2 (lounge chair 38x43.gsm object)

In 3D script use the search and replace function.

"09 | Paint-08 Black" -> mat1 ! no quotes
"00 | Default Fabric 1 sofa" -> mat1
"DEFAULT" -> mat1
"09 | Paint-06 Grey" -> mat2

Still tiny corrections to do, because some tools refer to a materiel definition by index (not parametric)

In sprism_{2} statements, search and replace (at the end of lines)
ind(material, mat1) -> mat1

In revolve{2} statements, search and replace (at the end of lines)
130 -> mat1

Done, no more alerts, materials are parametric.
Anonymous
Not applicable
Karl
Would you mind attaching the file you have corrected so I can download and see what scripts you changed please?

Olivier
thanks for the script advice - I will attempt to tackle this sometime soon.

thanks again to all for the feedback
Richard
Karl Ottenstein
Moderator
richard wrote:
Would you mind attaching the file you have corrected so I can download and see what scripts you changed please?
Please re-read my message. I did not modify the scripts - so there is nothing to post. I simply defined the 'missing' materials. The script is 100% fine. You should just follow Olivier's steps to make it material-parametric.

Cheers,
Karl
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators