License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.
SOLVED!

Nurbs -

Nader Belal
Mentor
Hi everyone,

I was trying to take an adventures step to understand nurbs GDL commands, but then I found out that the GDL manual is pretty confusing ... so here goes my questions:

1- Nurbssurface
degree_u: degree of surface in the u parameter direction
degree_v: degree of surface in the v parameter direction
nu, nv: number of control points in u and v directions, greater than degree (not less than order) of then surface in given direction
a- I understand the concept of U,V & W, but how many Knot points in UV must I use to define correctly a nurbs surface ?
b- Suppose that the surface is a rectangular shape with a slight curve, does this mean I have to take 4 points :
(0,0), (0,1), (1,1), (1,0)?
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Nader Belal
Mentor
Thank you all

I have got the answer from another source

The U & V value that were mentioned in the manual are that of the surface as whole and not at a specific loction.
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

View solution in original post

11 REPLIES 11
poco2013
Mentor
Lacking help from more knowledgeable users which I am not:

A general definition of nurbs is:

#knots in knot vector = control points + order
assuming rectangle (points at corners) and quadratic order = 5 knots/vector as in:
(0,0,1,2,2)
minimum control points would be at corners unless you wanted more control - than add point in centers.
(0,0,0), (1,0,0), (0,1,0), (1,1,0) i believe that Archicad also requires a weight.
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
There is someone who figured it out ... there is one single object on Archiradar that claims using it - unfortunately it is locked.

The only way I think it is possible to figure it out now is to make some nurbs object in Rhino and import it as an object to AC (I am planning to do it but the lack of time prevents form it ;P)

Piotr
Nader Belal
Mentor
Already tried that, the model changes to a mesh object
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Moonlight wrote:
Already tried that, the model changes to a mesh object
Since ver 20 it creates the series of nurbs related comands in 3d script - however the input from Rhino has to be a nurbs object.

Piotr
Nader Belal
Mentor
by Piotr Dobrowolski
Moonlight wrote:
Already tried that, the model changes to a mesh object

Since ver 20 it creates the series of nurbs related comands in 3d script - however the input from Rhino has to be a nurbs object.
No it doesn't, I have just tried that again after seeing your comment. It changes the body to a mesh using VERT, Edge & Pgon{2}
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Solution
Nader Belal
Mentor
Thank you all

I have got the answer from another source

The U & V value that were mentioned in the manual are that of the surface as whole and not at a specific loction.
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
poco2013
Mentor
FYI:
For any interested: attached is a nurbs file for a simple cube of degree 1 (linear).
It was quickly made in Rhino and imported very well in to Archicad.
As you would see adding more degrees to make a true nurb would really complicate even a simple object.

size = X: 9.438, Y: 10.686, Z:9.197
The zip file contains the Rhino , GDL, Object, pln files plus the text of the 3Dcode which would probably be of primary interest.

I see that the conversion to GDL code was fairly direct and illustrates the usage of the Archicad GDL Code.

Critical to the code is the direction of the various faces, surfaces etc. I found that just too confusing -- Don't have the patience, And there's no explanation in Archicad other than it has to be done.

I found it much easier to just configure in Rhino and than import -- You may want to do it directly in Archicad -- Good Luck,
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
Nader Belal
Mentor
Ok,

How did you manage to save this object as nurbs in ArchiCAD ?
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
poco2013
Mentor
Export Rino object as Rino 3D Model - 3DM. - Using MAC Rhino release 5.
IN Archicad in a new project -- use File- open -- select Rhino 3D model

use fit window as the object may be in left field.

Then select and open Library & Object -- save selection as -- object

Can't help with Rhino as I'm not familar with it -- I prefer FormZ.

FYI: I talked with tech support and no one in USA TS is familar with the nurb GDL commands -- said It was added just to import Rhino files. But its pretty straight forward except I can't figure out the direction of the cutting curves. Edges and Faces -- OK. if you figure that out let me know. I might make a video later but this is so tedious to do, i doubt it's not worth just doing in Rhino -- Wish they supported FormZ?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27