Python scripting for Cubit

Hi Everyone,

I’m trying to execute the below line in python:
object =

It gives me the error “group() takes 1 positional argument but 2 were given”
Could someone please tell me the parameters I need to pass to group() function ?

Thank you in advance :slight_smile:

With kind regards,

Hi, Aakash,

I use cubit.create_new_group(). This function returns the id of the group that is created.

What documentation are you looking at that gives you a group object?


Hi Karl,
It’s not there in the documentations. I generally use, for example:

surf_object = cubit.surface(1)…or
vol_object = cubit.volume(1)…and both work fine.

Therefore, I thought of trying something like…
grp_object =