Jay

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 36 total)
  • Author
    Posts
  • in reply to: Tab name just can be set once #20000
    Jay
    Jay
    Moderator

    Hi,

    I assume you are referring to the ribbon tab. What’ your code like? How are you are setting the tab name?

    0
    in reply to: start the simulation from code #19999
    Jay
    Jay
    Moderator

    I guess the simulation doesn’t run because you didn’t set the runTime value. Try the following. Note the last line of code is used if you do not want to set the duration of the simulation run.

     

    0
    Jay
    Jay
    Moderator

    Use ActionItem AttachTo property in the ActionItem constructor. For example

    [Export(typeof(IPlugin))]
    [Export(typeof(IActionItem))]
    public class Class1 : ActionItem, IPlugin
    {
    public Class1() : base(“actionItemid”, “action item command”, “rCommand”, null, MenuTools.ButtonTool, false, true)
    {
    AttachTo = “[Shortcut Control + F2] = [Action Execute]; [Event Click] = [Action Execute]”;
    }

    }

     

    0
    in reply to: property.IsReadOnly = true; -> Not working #16781
    Jay
    Jay
    Moderator

    On the current 4.1.* release, I suspect that most of the flags on IProperty actually does not work. Some flags on IComponentProperty do work (i.e IsEditableWhen… flags). For example if you want to make your property read only, you should do the following.

    var prop = comp.CreateProperty(typeof(string), PropertyConstraintType.AllValuesAllowed, “my_prop”);

    var compProperty = (IComponentProperty)prop;
    compProperty.IsEditableWhenDisconnected = false;

    Hope that helps.

    1+
    Jay
    Jay
    Moderator

    Basically, what you see is what you get. If property name is all you can see, then I’m afraid that is all there is. Which info do you think is missing?

    0
    in reply to: Plug and play attach component #16401
    Jay
    Jay
    Moderator

    Remember you are using the interface in the component to make connection. I would first of all get the interfaces in both components and then connect them. For example

     

     

    0
    Jay
    Jay
    Moderator

    @benson

    @jouha

    IRobotExecutor.IsEnabled = false will not pause a robot program. It is used to define if the executor will execute its program. If the program is already executing, there is really no way to stop it within simulation.

    0
    in reply to: Origin changed event #15740
    Jay
    Jay
    Moderator

    I just did a quick test and it seems to work.

     

     

    0
    in reply to: How to get joint values #15444
    Jay
    Jay
    Moderator

    Hi,

    I tested with the following snippet and I was able to read the robot controller’ implement values as well as the imported external values.

     

    0
    in reply to: How to use the wizard menu to create compoent #15438
    Jay
    Jay
    Moderator

    These videos on our Academy site could help. I would recommend watching the entire videos.

    See item 6 from the table of content.

    http://academy.visualcomponents.com/lessons/model-a-gripper-part-1/

    http://academy.visualcomponents.com/lessons/model-a-gripper-part-2/

    See item 40 on the table of content.

    http://academy.visualcomponents.com/lessons/model-a-workpiece-positioner/

    And one last thing. Please remember to create threads under relevant topics. You created a thread under .NET Addon Programming and your question has nothing to do with .NET but component modeling.

    0
    in reply to: NumericTextEditorTool Ribbon ActionItem #15434
    Jay
    Jay
    Moderator

    Check out the example project on this thread. It might help.

    Text Editor Tool

     

    0
    in reply to: ecatalog with kukasim 3.0 #13987
    Jay
    Jay
    Moderator

    Please contact KUKA support for questions relating to KUKA products.

    0
    in reply to: Component transformation rotation #13881
    Jay
    Jay
    Moderator

    You can set the orientation of the component’ matrix in world using specified yaw, pitch and roll vector values.

    Vector3 vec = new Vector3(90, 30, 20);
    _app.World.Components.Last().TransformationInWorld.SetWPR(vec);

    and you can get the matrix orientation as follows

    vec.X = _app.World.Components.Last().TransformationInWorld.GetWPR().X;
    vec.Y = _app.World.Components.Last().TransformationInWorld.GetWPR().Y;
    vec.Z = _app.World.Components.Last().TransformationInWorld.GetWPR().Z;

    Hope that helps.

    2+
    in reply to: Delete SimComponent #12990
    Jay
    Jay
    Moderator

    There is ISimWorld.DeleteComponent(ISimComponent component) method.

    0
    Jay
    Jay
    Moderator

    Well, PartsAverageCount is a property of vcStatistics. You can add the property to display on the statistics label if you have a VC Professional license. See application help document for additional info.

    0
Viewing 15 posts - 1 through 15 (of 36 total)