Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - demian824

Pages: [1] 2
1
PCS Frequently Asked Questions / Re: Please help me to renew PCS license
« on: December 06, 2024, 02:21:13 am »
Thanks to know!

2
PCS Frequently Asked Questions / Please help me to renew PCS license
« on: December 06, 2024, 01:26:40 am »
Hello everyone,

I need a help to renew the license on PCS configuration page.
I clicked the 'renew' and  And I filled up all session including 'installation ID'.
Then I only get the file 'pcsrequest.csr'.
What should I do next?

Thanks,

3
Hello I try to make the window service for run the script follow by the Community Site ( Link : https://community.sparxsystems.com/tutorials/603-75ea-as-an-unattended-windows-service-on-windows-server-2008r2-and-higher ).

However, I keep failing to start the service. it occurred the run-time error 1064. I need help to solve this issue!!!

Code on my side
------------------------------
cmdLaunchService.cs:

    public partial class cmdLaunchService : ServiceBase
    {
        static string ProjectGuid;
        public cmdLaunchService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            Process cmdTool = new Process();
            cmdTool.StartInfo.FileName = "cmd.exe";
            cmdTool.Start();
            Console.Write("Start Connecting Sparx Server...");

            EA.App a = new EA.App();
            //EA.Repository repo = new EA.Repository();
            EA.Repository repo = a.Repository;


            if (repo.OpenFile("dev-sparx --- ;Connect=Cloud=protocol:http,address:dev-sparx01.fsrao.ca,port:804;Data Source=DEV-SPARX-EA2;DSN=DEV-SPARX-EA2;"))
            {
                ProjectGuid = "Opened the Repository GUID : " + repo.ProjectGUID + ", Name : Sparx Dev";
            }

            // clean up
            GC.Collect();
            GC.WaitForPendingFinalizers();
            TextWriter tw = new StreamWriter("C:\\temp\\guids.txt");
            // write a line of text to the file, just to have a easy to access info
            tw.WriteLine("Date : " + DateTime.Now + ", Project GUID : " + ProjectGuid);

            // close the stream tw.Close();
            tw.Close();
        }

        protected override void OnStop(){}
    }
ProjectInstaller.cs
partial class ProjectInstaller
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
            this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
            //
            // serviceProcessInstaller1
            //
            this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
            //this.serviceProcessInstaller1.Password = null;
            //this.serviceProcessInstaller1.Username = null;
            //
            // serviceInstaller1
            //
            this.serviceInstaller1.ServiceName = "cmdLauncherService";
            //
            // ProjectInstaller
            //
            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
            this.serviceProcessInstaller1,
            this.serviceInstaller1});

        }

        #endregion

        private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
        private System.ServiceProcess.ServiceInstaller serviceInstaller1;
    }

4
I changed the property 'Navigable' on connectorEnd Class.
now it is worked.


5
In order to swap you have to swap source and taget objectId of the connector. All your Refresh calls are pointless.

q.

Negative. I tried that the direction is still Destination to Source.
Hence, I do not want to change source and target for my requirements

6
Hello,

I tried to change direction of bunch of connectors to "Source -> Destination" by Jscript & VB script.
However, only direction property is not changed through the script.
I tried to both re-create connectors with the direction and update their direction, directly, but all their directions will be changed to "Destination -> Source" after updating.
Could you please check my scripts if I made the mistake?
If my scripts are okay, please fix the issue.

JScript :
-Change direction
         var thePackage as EA.Package;
         thePackage = Repository.GetTreeSelectedObject();
         var elements as EA.Collection;
         elements = thePackage.Elements;
         var theEle as EA.Element;
         var direction = "Source -> Destination";

         for(var i = 0; i < elements.Count; i++){
            theEle = elements.GetAt(i);
            
            var connectors as EA.Collection;
            connectors = theEle.Connectors;
               
            
            for(var j = 0; j < connectors.Count; j++){
               var conn as EA.Connector;
               conn = connectors.GetAt(j);               
               conn.Direction = direction;
               conn.Update();
               connectors.Refresh();
            }
            theEle.Update();
            theEle.Refresh();
            Session.Output((i + 1)  +" / " + elements.Count + " is Done.");
         }

-Create new connector
function addConn(sourceId, targetId, connType){
   var connectors as EA.Collection;
   var target as EA.Element;
   target = Repository.GetElementByID(targetId);
   var source as EA.Element;
   source = Repository.GetElementByID(sourceId);
   connectors = target.Connectors;
   
   var newConn as EA.Connector;
   newConn = connectors.AddNew("", connType);
   newConn.SupplierID = target.ElementID;
   newConn.ClientID = source.ElementID;
   newConn.Direction = "Source -> Destination";
   newConn.Update();
   connectors.Refresh();
}

vb Script:
         for each theConn in connCollection
            
            theConn.Direction = "Source -> Destination"
            If theConn.Update() then
               count = count + 1
               connCollection.Refresh()
            end if
            Session.Output count
            Session.Output theConn.Direction
         next
         Session.output("Done")

Thanks,

WonChul Choi

7
General Board / Re: Toolbox is not working
« on: January 05, 2024, 07:32:52 am »
Thanks Eve, Now I can use toolbox!

8
General Board / Re: Toolbox is not working
« on: January 04, 2024, 06:38:59 am »
Toolbox dose not display / show on Windows.
I try to re-install EA but Toolbox does not show up.

9
General Board / Toolbox is not working
« on: January 04, 2024, 03:55:19 am »
Hello guys,

on my EA, 'tool box' is now working, recently.
I re-install EA, but it is not working either.
I clicked the tool box on navigation menu and input short cut (Ctrl + Shift + 3), However only toolbox is not worked.

Does anyone know how to fix it?



10
General Board / [Ask] Diagram layout by script
« on: October 07, 2023, 07:37:20 am »
Hello Team EA,

I only found the function for Digraph to set diagram layout.
How can I set diagram layout type as 'box' or 'circle' by script?
Could you give me any tips?

Thanks,

WonChul Choi


11
General Board / Re: [Ask] Ask about enum tagged value
« on: September 20, 2023, 12:12:45 am »
Hello Geert,

Thanks to know  :)

Thanks,

WonChul Choi

12
General Board / [Ask] Ask about enum tagged value
« on: September 19, 2023, 10:40:07 pm »
Hello Professors,

I have a question about tagged value. I try to create two tagged value with enum type, Category and sub-category. Is there any way to change sub-category list follow by category selection, programmatically?


Thanks,

WonChul Choi
 

13
General Board / [Ask]Use data from Power BI with Sparx
« on: July 19, 2023, 05:56:32 am »
Hello Professors,

Is there any way to use / sync data from Power BI?

Thanks,

WonChul Choi

14
General Board / Re: [Ask] Import/Export attributes of each class
« on: July 19, 2023, 05:53:31 am »
Hello all,

Thanks for giving me advices! I finished all task!

Thanks,

WonChul Choi

15
General Board / Re: [Ask] Import/Export attributes of each class
« on: July 11, 2023, 04:56:57 am »
Where can I find the dberror.txt file? I cannot find any error log file in my program directory.

Thanks,

WonChul Choi

Pages: [1] 2