How to add an image underneath an ACT custom (post) object in Mechanical?

Member, Moderator, Employee Posts: 479
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

How to add an image underneath an ACT custom (post) object in Mechanical?

enter image description here

Tagged:

Answers

  • Member, Moderator, Employee Posts: 479
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓
    1. # Retrieve your post object - `post_object`
    2. post_internal_object = post_object.InternalObject
    3. image = post_internal_object.AddImage()
    4. image.SourceType = 1
    5. image.ImagePath = image_path # Provide complete path to the image to be added.
    6.  
    7. ExtAPI.DataModel.Tree.Refresh()

Welcome!

It looks like you're new here. Sign in or register to get started.