Alessandro
New member
- Joined
- Dec 9, 2016
- Messages
- 2
- Programming Experience
- Beginner
Hi everybody, I had a problem with an interface and I found some rows that help me (hopefully) but I'm really a beginner with c# and now I need a support for use them, can someone help me?
One of those rows should be a way to lock the position of an object (I suppose "akit.ValueChange("weld_dial", "gr_weld_get_menu", "fixedPlacement");") but how can I call it from a form button?
Thanks and apologize for my english.
Alessandro
C#:
public class Script
{
public static void Run(Tekla.Technology.Akit.IScript akit)
{
akit.Callback("acmdSelectAll", "", "main_frame");
akit.Callback("acmd_display_attr_dialog", "weld_dial", "main_frame");
akit.ValueChange("weld_dial", "gr_weld_get_menu", "fixedPlacement");
akit.PushButton("gr_weld_get", "weld_dial");
akit.PushButton("weld_on_off", "weld_dial");
akit.PushButton("weld_placing", "weld_dial");
// System.Threading.Thread.Sleep(500);
akit.ValueChange("weldpl_dial", "weld_freepl_margin_en", "0");
akit.ValueChange("weldpl_dial", "weld_freepl_min_en", "0");
akit.PushButton("wldpl_apply", "weldpl_dial");
akit.PushButton("wldpl_modify", "weldpl_dial");
akit.PushButton("wldpl_apply", "weldpl_dial");
akit.PushButton("wldpl_ok", "weldpl_dial");
// System.Threading.Thread.Sleep(500);
akit.PushButton("weld_ok", "weld_dial");
akit.MouseDown("View_10 window_1", "View_10 window_1", 3, 3, 1);
akit.MouseUp("View_10 window_1", "View_10 window_1", 3, 3, 0);
}
}
One of those rows should be a way to lock the position of an object (I suppose "akit.ValueChange("weld_dial", "gr_weld_get_menu", "fixedPlacement");") but how can I call it from a form button?
Thanks and apologize for my english.
Alessandro