Python API and visual manipulation

Forum Forums Visual Components 4.1 Layout Configuration Python API and visual manipulation

This topic contains 3 replies, has 2 voices, and was last updated by Keke Keke 1 month, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20265
    wwn_h
    wwn_h
    Participant

    How to use the Python API to implement view manipulation functions that show global or focus on selected components?

    The effect is equivalent to the first two items of the 3D world toolbar shown in the picture.

    0
    #20542
    Keke
    Keke
    Moderator

    Hi,

    FillSelected and FillWorld can be accessed in python using netCommand which calls for a .NET action item by its name and executes it. I tested it on 4.2 and FillSelected seems to work but FillWorld doesn’t for some reason. But you can work around that using selection manager. Below you see python functions that should do the trick in 4.2:

    -k

    0
    #20642
    wwn_h
    wwn_h
    Participant

    Thank you very much for solving my problem!

    Regarding the function of “fillView”, I solved it by the following methods. 🙂

     

    0
    #20834
    Keke
    Keke
    Moderator

    Oh, I didn’t know about fillView in python. Thanks for sharing it 🙂

    -k

    0
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.