Skip to content

Instantly share code, notes, and snippets.

@dalenicholls
Last active October 11, 2017 14:34
Show Gist options
  • Save dalenicholls/35c3cf3dddaada8eb281bbd6ef9e4639 to your computer and use it in GitHub Desktop.
Save dalenicholls/35c3cf3dddaada8eb281bbd6ef9e4639 to your computer and use it in GitHub Desktop.
// Generated by Tekla.Technology.Akit.ScriptBuilder
namespace Tekla.Technology.Akit.UserScript
{
public class Script
{
public static void Run(Tekla.Technology.Akit.IScript akit)
{
// ends current command
akit.CommandEnd();
// changes the dropdown to "3d"
akit.ValueChange("main_frame", "depth_position_om", "3"); // this should read "3"
// opens the create basic view dialog
akit.CommandStart("ail_create_basic_view", "", "main_frame");
// changes to dropdown to "XY"
akit.ValueChange("Modelling create view", "v1_floor", "0"); // this should read "0"
// input value of 1000
akit.ValueChange("Modelling create view", "v1_coordinate", "1000.000000000000");
// creates the view
akit.PushButton("v1_create", "Modelling create view");
// cancels the create basic view dialog
akit.PushButton("v1_create_cancel", "Modelling create view");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment