Tendon Group
A nested class within Group used to create and manage tendon groups.
Constructor
Group.Tendon(name)
Creates a tendon group with specified name.
Parameters
name
: Name of the tendon group
Class Attributes
Group.Tendon.Groups -> List of all tendon groups.
Object Attributes
NAME
(str): The name of the tendon group.ID
(int): The ID of the tendon group.
Methods
json
Returns JSON representation of all tendon groups.
tg1 = Group.Tendon("PT Group 1")
print(Group.Tendon.json())
# Output:
# {'Assign': {1: {'NAME': 'PT Group 1'}}}
create
Sends tendon groups to Civil NX.
Group.Tendon.create()
get
Fetches tendon groups from Civil NX.
print(Group.Tendon.get())
sync
Synchronizes tendon groups from Civil NX.
Group.Tendon.sync()
delete
Deletes all tendon groups from both Python and Civil NX.
Group.Tendon.delete()
Examples
# Create tendon groups
tg1 = Group.Tendon("PT Group 1")
tg2 = Group.Tendon("PT Group 2")
for tg in Group.Tendon.Groups:
print(f'Tendon Group ID: {tg.ID} | Name: {tg.NAME}')
# Output:
# Tendon Group ID: 1 | Name: PT Group 1
# Tendon Group ID: 2 | Name: PT Group 2