-
-
December 2, 2021 at 10:34 am
Tmo
SubscriberI can easily set up a batch connection manually by switching mesh based connection to yes, inserting a connect control to the mesh tab and choose a named selection to be considered.
My question is how to insert the connect control by script?
The usual proceder would be:
Model.Mesh.Add... but there is no AddConnect method or something to create the Connect tab.
Thanks in advance
December 15, 2021 at 6:05 pmAniket
Forum ModeratorAssuming you are using 2021R2, Please turn on recording and required APIs should be recorded.
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v212/en/act_script/mech_script_record.html
Does that record required APIs?
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
December 16, 2021 at 12:54 pmTmo
SubscriberDear Aniket,
thank you for your answer. I am using 2021R1 and tried already to record the workflow but (among others) batch connections wasn┬┤t recorded.
I enabled the batch connections via script (which was also recorded) by:
Model.Mesh.MeshBasedConnection = True
But if i create the "connect", it is not. So I thought there shoud be a method within the Mesh object to create the Connect, but also the automatic complection in the console didn┬┤t showed me something. I checked every suggestion that pops up when typing:
Model.Mesh.
Is there an update within recording when switching from 2021R1 to 2021 R2 ?
best regards Timo
Viewing 2 reply threads- The topic ‘how to create batch connections using a script’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3927
-
1414
-
1256
-
1118
-
1015
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-

Ansys Assistant

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY