-
-
July 3, 2024 at 8:50 amhallinenjesseSubscriber
I have been trying to add annotations with python scripting in Mechanical version 2020 but it seems I'm missing something or maybe in 2020 version it can't be done. I have searched other similar topics and it seems in newer versions there is LabelManager class but in v2020 I have to use functions in Graphics.InternalObject or call javascript functions directly.
The problem seems to be that the annotation won't get inserted into 3d view, even though annotation values are visible in Graphics Annotations table when editing them but after editing the table rows usually also disappear. Only if user have inserted the annotation manually then I can edit the values in Graphics Annotations table using python without rows disappearing. I also noticed that if I run correct python or javascript functions straight after Mechanical restart then the first annotation gets inserted into 3d view, so it kind of seems that my python code is missing the part what happens when user clicks the 3d view to place the annotation. Any idea how to do this?
-
July 8, 2024 at 3:18 pmAshish KhemkaForum Moderator
Hi,
I think Matthew did answer your query in another post.
Â
Regards,
Ashish Khemka
-
July 13, 2024 at 10:23 amhallinenjesseSubscriber
Yeah, he did, sorry for reposting, I thought my posts didn't get submitted because last week My Posts view was always empty.
-
-
July 15, 2024 at 5:34 amAshish KhemkaForum Moderator
No problem, thanks for the update. I will close this thread.
Regards,
Ashish Khemka
-
- The topic ‘How add annotations or probes using python script in Mechanical 2020?’ is closed to new replies.
- Problem with access to session files
- Ayuda con Error: “Unable to access the source: EngineeringData”
- Reaction forces and moments during random vibration at local coordinate systems
- At least one body has been found to have only 1 element in at least 2 directions
- Using APDL to extract stresses on a beam element.
- How to select the interface delamination surface of a laminate?
- Geometric stiffness matrix for solid elements
- Timestep range set for animation export
- Non-linear convergence issue
- Computation Accleration
-
1141
-
471
-
468
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.