RenameBasedOnDefinition() in Contact Region
I have a question regarding the use of RenameBasedOnDefinition(). I am trying to replicate the behavior shown in the link below, but my current code is quite slow when renaming each contact region. Are there any suggestions to improve the efficiency of my renaming process to match the speed demonstrated in the link?
Answers
-
@kkman said:
I have a question regarding the use of RenameBasedOnDefinition(). I am trying to replicate the behavior shown in the link below, but my current code is quite slow when renaming each contact region. Are there any suggestions to improve the efficiency of my renaming process to match the speed demonstrated in the link?0 -
@kkman said:
@kkman said:
I have a question regarding the use of RenameBasedOnDefinition(). I am trying to replicate the behavior shown in the link below, but my current code is quite slow when renaming each contact region. Are there any suggestions to improve the efficiency of my renaming process to match the speed demonstrated in the link?connection_group = connection.AddConnectionGroup()
connection_group.ToleranceType = ContactToleranceType.Value
connection_group.ToleranceValue = Quantity(.3, "mm")
connection_group.CreateAutomaticConnections()
with Transaction():
for cont_region in connection_group.Children:
cont_region.RenameBasedOnDefinition()0