How can I create the figures renamed based on the parent object name

Member Posts: 6
First Anniversary Name Dropper First Comment
**
edited June 2023 in Structures

Hello,

I have code as below but it comes named Figure. How can I create it based on Object?

Geometry,Materials, Static Structural etc.

  1. a = ExtAPI.DataModel.Project.Model.Children
  2. for b in a:
  3. b.AddFigure()

Best Answer

  • Member, Moderator, Employee Posts: 873
    100 Answers 500 Comments 250 Likes Second Anniversary
    ✭✭✭✭
    Answer ✓

    Hi @aalperakis , you need to reference the created figure:

    figure = b.AddFigure()

    and then simply rename it:

    figure.Name = b.Name

Welcome!

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