Skip to content

Commit 4ac51a8

Browse files
Merge branch 'AnalyticalGraphicsInc:master' into master
2 parents be1dd5b + a249ea2 commit 4ac51a8

File tree

919 files changed

+9245
-1678983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

919 files changed

+9245
-1678983
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 ANSYS, Inc. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

License.pdf

-480 KB
Binary file not shown.

README.md

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,37 @@
1-
![STK Logo Dark](https://user-images.githubusercontent.com/3358750/162804833-47c09f8a-b0df-4bb6-b197-3ef35f61778f.svg#gh-light-mode-only)
2-
![STK Logo Light](https://user-images.githubusercontent.com/3358750/162804844-2b0b8e34-ba3d-4a5b-9164-cf2ca89a1064.svg#gh-dark-mode-only)
1+
![STK Logo Dark](icons/STK-on-white.svg#gh-light-mode-only)
2+
![STK Logo Light](icons/STK-on-black.svg#gh-dark-mode-only)
33

4-
[![Documentation](https://img.shields.io/badge/docs-online-FFB71B?style=for-the-badge)](https://help.agi.com/stkdevkit/index.htm)
5-
[![Support](https://img.shields.io/badge/support-email-898A8D?style=for-the-badge)](mailto:support@agi.com)
6-
[![Download](https://img.shields.io/badge/download-12.7.1-007DB7?style=for-the-badge)](https://support.agi.com/downloads/6/)
4+
[![Documentation](https://img.shields.io/badge/documentation-D9D8D6?style=for-the-badge&labelColor=373A36)](https://help.agi.com/stkdevkit/index.htm)
5+
[![Support](https://img.shields.io/badge/email%20support-898A8D?style=for-the-badge&labelColor=373A36)](mailto:support@agi.com)
6+
[![Download](https://img.shields.io/badge/download%2012.8.0-FFB71B?style=for-the-badge&labelColor=373A36)](https://support.agi.com/downloads/7/)
77

8-
Welcome to the STKCodeExamples repository, where we share code examples from our favorite utilities and demos for Systems Tool Kit (STK), a commercial software application from AGI, an Ansys company.
8+
Welcome to the STKCodeExamples repository, where we share code examples from our favorite utilities and demos for Systems Tool Kit (STK), a commercial software application from ANSYS, Inc.
99

10-
The repository offers fully functional tools and libraries of example code that you can refactor to fit your needs. It does not contain the STK application; you must obtain STK from [AGI's website](https://support.agi.com/downloads/3/ "AGI's Downloads")
10+
The repository offers fully functional tools and libraries of example code that you can refactor to fit your needs. These code samples require a legally licensed local copy of the STK application; you must obtain STK from [AGI's website](https://support.agi.com/downloads/6/ "AGI's Downloads").
1111

1212
----
1313

1414
## Featured Examples Areas
1515

16-
* [STK Desktop Automation](./StkAutomation) contains scripts and applications for automating STK desktop application in a variety of different languages
16+
* [STK Desktop Automation](./StkAutomation) contains scripts and applications for automating the STK desktop application in a variety of different languages
1717
* [STK Engine Applications](./StkEngineApplications) contains scripts and applications utilizing STK Engine
1818
* [STK Engine Containerization](./StkEngineContainerization) contains examples that demonstrate containerization of STK Engine applications
1919
* [STK UI Plugins](./StkUiPlugins) contains UI Plugin applications for the STK desktop application
20-
* [STK Extension Plugins](./StkExtensionPlugins) contains engine plugins and plugin scripts for STK desktop application and STK Engine applications
20+
* [STK Extension Plugins](./StkExtensionPlugins) contains engine plugins and plugin scripts for the STK desktop application and STK Engine applications
2121

2222
These applications contain notional data and are dual use.
2323

2424
----
2525

2626
## License
2727

28-
The code examples in this repository are licensed under the AGI Code Examples License Agreement, which is included in this repository as [License.pdf](License.pdf).
29-
30-
----
31-
32-
## Redistribution
33-
34-
If You redistribute the code examples, in whole or in part, You must provide a copy of this License Agreement to any other recipient of the code examples, and include the following copyright notice:
35-
36-
© 2022 Analytical Graphics, Inc.
28+
`STKCodeExamples` is licensed under [the MIT license](LICENSE).
3729

3830
----
3931

4032
## What if I have questions about STK
4133

42-
Contact [AGI support](mail:support@agi.com "Email AGI Support") with questions regarding STK, STK Engine or any other AGI products.
34+
Contact [AGI support](mail:support@agi.com "Email AGI Support") with questions regarding STK, STK Engine, or any other AGI products.
4335

4436
AGI's software helps engineers, operators, and analysts deliver digital engineering value at any stage of a program life cycle: from planning and design to training and operations. Our modeling, analysis and visualization tools, coupled with legendary customer support, help those in aerospace and defense organizations make critical decisions faster and more accurately in an operational context.
4537

@@ -50,9 +42,9 @@ For more information, please visit the [AGI website](https://www.agi.com "AGI's
5042

5143
## Social Media
5244

53-
[![Twitter URL](https://img.shields.io/badge/twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://twitter.com/agitweets)
54-
[![Youtube URL](https://img.shields.io/badge/youtube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://www.youtube.com/user/AnalyticalGraphics)
55-
[![Linkedin URL](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/agi?trk=company_logo)
45+
[![Twitter URL](https://img.shields.io/badge/twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://twitter.com/ANSYS)
46+
[![Youtube URL](https://img.shields.io/badge/youtube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://www.youtube.com/ansysinc)
47+
[![Linkedin URL](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/ansys-inc)
5648

57-
![AGI Logo Dark](https://user-images.githubusercontent.com/3358750/162795809-4fc8326e-fd6a-4022-b731-cee62fcc58db.png#gh-dark-mode-only)
58-
![AGI Logo Light](https://user-images.githubusercontent.com/3358750/162795908-bf530bb9-bbab-45b0-82d7-cabd67186699.png#gh-light-mode-only)
49+
![AGI Logo Dark](icons/AGI-Logo_2C-W.svg#gh-dark-mode-only)
50+
![AGI Logo Light](icons/AGI-Logo_2C-K.svg#gh-light-mode-only)

StkAutomation/CSharp/General_Utilities/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This utility will allow you to connect to an open instance of STK, choose a spec
66

77
### Dependencies
88

9-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
9+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
1010
* Other Scripts: N/A
1111
* Scenario: N/A
1212

@@ -18,7 +18,7 @@ This example utility shows how to stream AER data between a satellite and facili
1818

1919
### Dependencies
2020

21-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
21+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
2222
* Other Scripts: N/A
2323
* Scenario: N/A
2424

@@ -42,31 +42,31 @@ Recent updates have been added to now include GPX files imported as waypoints on
4242

4343
### Dependencies
4444

45-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
45+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
4646
* Other Scripts: N/A
4747
* Scenario: N/A
4848

4949
---
5050

5151
## [GetObjectsByType.cs](GetObjectsByType.cs)
5252

53-
Function to grab all instances of <object type> STK objects. Returns a list containing the handles to all <object type> objects.
53+
Function to grab all instances of `<object type>` STK objects. Returns a list containing the handles to all `<object type>` objects.
5454

5555
### Dependencies
5656

57-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
57+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
5858
* Other Scripts: N/A
5959
* Scenario: N/A
6060

6161
---
6262

6363
## [GetSegmentsByType.cs](GetSegmentsByType.cs)
6464

65-
Function to grab all instances of <segment type> Astrogator segments. Returns a list containing the handles to all <segment type> segments.
65+
Function to grab all instances of `<segment type>` Astrogator segments. Returns a list containing the handles to all `<segment type>` segments.
6666

6767
### Dependencies
6868

69-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration), [Astrogator](https://www.agi.com/products/stk-specialized-modules/stk-astrogator)
69+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf), [STK Premium Space](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-premium-space-brochure.pdf)
7070
* Other Scripts: N/A
7171
* Scenario: A scenario with at least one propagated Astrogator satellite
7272

StkAutomation/CSharp/Problem_Specific/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This utility will allow you to Analyze CDM (Conjuction Data Messages).
88

99
### Dependencies
1010

11-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration), [Analysis Workbench](https://www.agi.com/products/stk-systems-bundle/stk-analysis-workbench)
11+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
1212
* Other Scripts: N/A
1313
* Scenario: N/A
1414

@@ -22,7 +22,7 @@ This utility will allow you to create many different flower consetllations. Sim
2222

2323
### Dependencies
2424

25-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
25+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
2626
* Other Scripts: N/A
2727
* Scenario: N/A
2828

@@ -36,7 +36,7 @@ This utility provides a simple Gui to fly an aircraft in STK with the ability to
3636

3737
### Dependencies
3838

39-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
39+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
4040
* Other Scripts: N/A
4141
* Scenario: N/A
4242

@@ -50,19 +50,19 @@ This utility will allow you to compute the reentry point and duration of satelli
5050

5151
### Dependencies
5252

53-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration), [Astrogator](https://www.agi.com/products/stk-specialized-modules/stk-astrogator)
53+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf), [STK Premium Space](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-premium-space-brochure.pdf)
5454
* Other Scripts: N/A
5555
* Scenario: N/A
5656

5757
---
5858

5959
## [XPlaneUDPToSTK12](XPlaneUDPToSTK12)
6060

61-
This utility connects to X-Plane and reads the position (latitude, longitude, altitude) and attitude (yaw, pitch, roll) data through a UDP connection, then sends it to an aircraft in STK using the Real Time propagator.
61+
This utility connects to X-Plane and reads the position (latitude, longitude, altitude) and attitude (yaw, pitch, roll) data through a UDP connection, then sends it to an aircraft in STK using the Real Time propagator.
6262

6363
### Dependencies
6464

65-
* Capabilities: Free, [Integration](https://www.agi.com/products/stk-systems-bundle/stk-integration)
65+
* Licenses: [STK Pro](https://www.ansys.com/content/dam/amp/2022/june/webpage-requests/stk-product-page/brochures/stk-pro-brochure.pdf)
6666
* Other Scripts: N/A
6767
* Scenario: N/A
6868

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.1062
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReentryCalculator", "ReentryCalculator\ReentryCalculator.csproj", "{2FE7887C-5BA0-4515-9ED0-0D44BA00514A}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{2FE7887C-5BA0-4515-9ED0-0D44BA00514A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{2FE7887C-5BA0-4515-9ED0-0D44BA00514A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{2FE7887C-5BA0-4515-9ED0-0D44BA00514A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{2FE7887C-5BA0-4515-9ED0-0D44BA00514A}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {425D157B-63DB-40AC-A9D9-F2ED659E730F}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5+
</startup>
6+
</configuration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using System.Windows.Forms;
6+
7+
namespace ReentryCalculator
8+
{
9+
static class Program
10+
{
11+
/// <summary>
12+
/// The main entry point for the application.
13+
/// </summary>
14+
[STAThread]
15+
static void Main()
16+
{
17+
Application.EnableVisualStyles();
18+
Application.SetCompatibleTextRenderingDefault(false);
19+
Application.Run(new frmMain());
20+
}
21+
}
22+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("InsertTLEFromUDL")]
8+
[assembly: AssemblyTitle("ReentryCalculator")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("InsertTLEFromUDL")]
11+
[assembly: AssemblyCompany("Analytical Graphics, Inc.")]
12+
[assembly: AssemblyProduct("ReentryCalculator")]
1313
[assembly: AssemblyCopyright("Copyright © 2020")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
@@ -20,7 +20,7 @@
2020
[assembly: ComVisible(false)]
2121

2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("5ab99d92-055f-44c1-8bb9-fadac10d2bbe")]
23+
[assembly: Guid("2fe7887c-5ba0-4515-9ed0-0d44ba00514a")]
2424

2525
// Version information for an assembly consists of the following four values:
2626
//

0 commit comments

Comments
 (0)