comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Connect STK and IDL ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Connect STK and IDL ? [message #92690] Mon, 08 February 2016 10:32 Go to next message
salsathomson is currently offline  salsathomson
Messages: 2
Registered: February 2016
Junior Member
Hi All

I am unsuccesfully attempting to connect STK (Systems Toolkit) and IDL using COM objects. I would like to be able to create a new scenario and objects within STK from IDL and then retrieve data from STK into IDL. It seems like this should be possible. Has anyone done this before ? Could you offer a few lines of IDL code that would demonstrate this ?

Thanks for any help.

Alan
Re: Connect STK and IDL ? [message #92726 is a reply to message #92690] Wed, 17 February 2016 08:14 Go to previous message
salsathomson is currently offline  salsathomson
Messages: 2
Registered: February 2016
Junior Member
I made some progress on this with help from support@harris.com. Since there were a number of views I thought I should post what I was able to accomplish.

If you have the STK Integration license then you should be able to create a new STK scenario from within IDL using the following three lines of IDL code:

ObjRef = OBJ_NEW('IDLcomIDispatch$PROGID$STK10_application') ; STK object
ObjRef->GetProperty, Personality2 = root ; attach to STK
root.NewScenario, 'Demo' ; create new scenario

The next challenge will be figuring out the syntax to manipulate objects in STK and retrieve data

Alan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDE internal error
Next Topic: fancy 3D linestyle in plot?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:11:57 PDT 2025

Total time taken to generate the page: 0.00523 seconds