hexagon logo

Does someone have python-Adams examples

Hey guys,
 
I am looking into using python scripts in Adams instead of the command language.
So far I have found 2 examples scripts in the 'adamspy' folder and the help function also provides some examples and classes definitions. However, i feel like i am missing examples to problem solve things i encounter. Does anyone know where i could find more examples?
 
As an problem example; i got this simple script that creates 2 markers, and should parametrize one marker to the other marker. However, the location of the marker isn't updated. Do i need to call an mod.update() or something?
 
python script
marker not updated
Thanks in Advance!
Parents
  • @Kent West​@Maziar Rostamian​ 
    In my Adams version '2020 FP1', the marker does not move, because when i press apply the marker is actually moving to the correct position. So this is most likely a view refresh bug as you guys mentioned. Thanks for the quick workaround!
     
    Just noticed that when i toggle icon visibility the marker actually shows up on the correct position but the name doesn't, hope this helps in solving the bug.
    image
Reply
  • @Kent West​@Maziar Rostamian​ 
    In my Adams version '2020 FP1', the marker does not move, because when i press apply the marker is actually moving to the correct position. So this is most likely a view refresh bug as you guys mentioned. Thanks for the quick workaround!
     
    Just noticed that when i toggle icon visibility the marker actually shows up on the correct position but the name doesn't, hope this helps in solving the bug.
    image
Children
No Data