ACT command to create Graphics text box using Graphics API

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 444
250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
✭✭✭✭
edited June 2023 in Structures

ACT command to create Graphics text box using Graphics API

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 444
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    Answer ✓

    Documenting a solution from TIG post on 15.07.20 from Rajesh Meena:

    g = ExtAPI.Graphics
    Point3D = g.CreateWorldPoint
    pt = Point3D(float(-0.0235), float(-0.00349), float(0.000593))
    annotationUser=g.Scene.Factory2D.CreateText(pt, "Test Annotation")
    annotationUser.Color = 0x000000