AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
PDMS/E3D Forum
  • AVEVA World
PDMS/E3D Forum
PDMS Quick Tips & Customizations FCONN via c# Addin?
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 4 replies
  • Subscribers 3 subscribers
  • Views 121 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

FCONN via c# Addin?

Gelson Bieber
Gelson Bieber over 4 years ago
 
  • Sign in to reply
  • Cancel
  • Gelson Bieber
    Gelson Bieber over 4 years ago
    Is there a way to do a FCONN via C# Addin not using Command.CreateCommand? :D
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • me_hungry
    me_hungry over 4 years ago
    What is wrong with CreateCommand :indecisiveness:??

    using Aveva.Core.Utilities.CommandLine;[COLOR=#000088]
    [/COLOR][COLOR=#666600]...[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#660066]Command[/COLOR][COLOR=#666600].[/COLOR][COLOR=#660066]CreateCommand[/COLOR][COLOR=#666600]([/COLOR][COLOR=#008800]"FCONN"[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#660066]Run[/COLOR][COLOR=#666600]();[/COLOR][COLOR=#000000]
    [/COLOR]

    or use PML function:
    [COLOR=#1C2837]Command.CreateCommand($"!!somefunction('{someParam}')").Run();[/COLOR]
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Gelson Bieber
    Gelson Bieber over 4 years ago
    Theres no specific issue with the CreateCommand, the problem is that every CreateCommand, the E3D must refresh its UI to type the command in the window, and for like 1000 loops, that makes the process much slower.
    I have tried a process using the Command.CreateCommand and not using it.
    Using the Command.CreateCommand it takes about 4 minutes.
    Without using it, its like 5 seconds.
    Thats why I dont want to use it.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aslam Vohra
    Aslam Vohra over 1 year ago in reply to Gelson Bieber

    Did you get solution?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel