at.lattice.lattice_parameterise#

Functions

is_parameterised(self[, refpts, attrname, index])

Checks if any of the selected elements is parameterised.

parameterise(self, refpts, attrname[, ...])

Convert an attribute of the selected elements into a parameter.

set_parameter(self, refpts, attrname, value)

Set a parameter as an attribute of the selected elements.

unparameterise(self[, refpts, attrname, index])

Freeze the value of attributes of the selected elements.

is_parameterised(self, refpts=RefptsCode.All, attrname=None, index=None)[source]#

Checks if any of the selected elements is parameterised.

This method evaluates whether any of the elements within the specified reference points are parameterised based on the provided attribute name and index. It iterates over the selected elements and checks their parameterisation status. The function returns True if at least one element is parameterised; otherwise, it returns False.

Parameters:
Returns:
  • bool – True if any of the selected elements is parameterised, False

  • otherwise.

parameterise(self, refpts, attrname, index=None, name='')[source]#

Convert an attribute of the selected elements into a parameter.

A single parameter is created and assigned to all the selected elements. Its initial value is the mean of the original values.

Parameters:
Returns:

param – The created parameter

set_parameter(self, refpts, attrname, value, index=None)[source]#

Set a parameter as an attribute of the selected elements.

Parameters:
unparameterise(self, refpts=RefptsCode.All, attrname=None, index=None)[source]#

Freeze the value of attributes of the selected elements.

Parameters: