Model.CE_MarkRemoveLinkMark#
- Model.CE_MarkRemoveLinkMark(collection, link_collection, update_layer_option)#
Removes link entities of a specific type and ID or name from the connectors on collection.
- Parameters:
collection (Collection) – The collection containing the connector entities to be modified.
link_collection (Collection) – The collection containing the specific link type entities to search in the connector.
update_layer_option (int) –
Option to update the number of layers after removing links from the connectors:
0 - Do not update
1 - Update number of layers for connectors
Example#
Remove component with ID 3 from connectors with IDs 1,2 and 4#import hm import hm.entities as ent model = hm.Model() connectors = hm.Collection(model, ent.Connector, [1, 2, 4]) component = hm.Collection(model, ent.Component, [3]) model.CE_MarkRemoveLinkMark( collection=connectors, link_collection=component, update_layer_option=1 )