Capture image with user orientation requirement ( node information based )

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello All,

     i'm trying to capture image (node id>attached attached elements > for loop to take care of adjacent elements).

Issue : capture image should be in isometric view with center reference as node (current script orientation issue).

Please help me thanks in advance.

script:

 set node(id) '
169122
275259
'              
    foreach nodeID $node(id) {
      *displaycollectorwithfilter components 'none' '' 1 0
      *createmark nodes 1 $nodeID
      *nodemarkaddtempmark 1
      *createmark nodes 1 $nodeID
      *findmark nodes 1 257 1 elements 0 2
      for { set a 1}  {$a < 60} {incr a} {
      *retainmarkselections 1
      *createmark elements 1 'displayed'
      *findmark elements 1 1 0 elements 0 2
 }
   *window 0 0 0 0 0
  *jpegfile 
  *nodecleartempmark 
                } 

       

Answers

  • tinh
    tinh Altair Community Member
    edited November 2018

    Using command *view iso1

    Before *window 0 0 0 0 0

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2018

    Hi, 

        It gives me iso view is there any way to capture by keeping input node as centric?

    (node corresponding region is focus of images, accordingly view) 

    Thanks.

  • tinh
    tinh Altair Community Member
    edited November 2018

    Display only elems attached to the node,

    use *window 0 0 0 0 0 

    Then capture it!

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2018

    Hi,

     

          Rotation may help (each rotation {till 180 deg} measure node position,  distance with respect to global X,Y,Z  and  nearest distance to global) working on it.

    Regards,

    Anil.