CRA_Assembly.add_block

CRA_Assembly.add_block(block, node=None, attr_dict=None, **kwattr)[source]

Add a block to the assembly.

Parameters
  • block (compas_assembly.datastructures.Block) – The block to add.

  • node (hashable, optional) – The identifier of the corresponding node in the connectivity graph. If no value is provided, the identifier will be generated automatically by the graph.

  • attr_dict (dict, optional) – A dictionary of block attributes.

  • **kwatr (dict, optional) – Additional attributes in the form of named function parameters.

Returns

hashable – The identifier of the node in the graph corresponding to the block.