Python: Ability to lock graph node and graph segment

246
0
08-15-2017 06:46 AM
Status: Open
deleted-user-F36TjxlqdCoV
New Contributor II

In some cases, we need to lock graph node or graph segment from being edited where editing means: attribute changes or geometrical changes

ce.setLocked( graphNodeObj, ATTRIBUTE|GEOMETRY)

ce.setLocked( list_of_graph_nodes, ATTRIBUTE|GEOMETRY)

ce.setLocked( list_of_graph_segments, ATTRIBUTE|GEOMETRY)

ce.setLocked( list_of_graph_nodes_and_graph_segments, ATTRIBUTE|GEOMETRY)

ce.setUnlocked( graphNodeObj, ATTRIBUTE|GEOMETRY)

ce.setUnlocked( list_of_graph_nodes, ATTRIBUTE|GEOMETRY)

ce.setUnlocked( list_of_graph_segments, ATTRIBUTE|GEOMETRY)

ce.setUnlocked( list_of_graph_nodes_and_graph_segments, ATTRIBUTE|GEOMETRY)‍‍‍‍‍‍‍‍‍