ACT command to create Graphics text box using Graphics API

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
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: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    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