import threading
from agi.stk12.stkdesktop import STKDesktop
fac = root.CurrentScenario.Children.New(AgESTKObjectType.eFacility, "fac1") # 新建一个对象
fac.Position.AssignGeocentric(31.25,121.48,0) # 更改地理位置 纬度,经度,高度
fac.HeightAboveGround = 133 # 更改高度
valueCartesian = fac.Position.QueryCartesian() # 笛卡尔坐标值
from agi.stk12.utilities.colors import Color, Colors
fac.Graphics.Color = Colors.Blue
fac.Graphics.Color = Color.FromRGB(127, 255, 212)
(r, g, b) = fac.Graphics.Color.GetRGB()