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 - 10Pints

Pages: [1]
General Board / How to enter File format design in EA
« on: September 09, 2016, 12:49:48 am »
Must be obvious but I missed it: I am designing the format for Excel import spreadsheets into my syste. What EA diagram do I use please?

Thanks in advance


General Board / I want to reference a class in another project
« on: August 24, 2013, 08:43:07 pm »
Hi - this must be possible:
I want to factor common "toolkit" functionality and share between 2 projects  so I was thinking of having a separate eap file for the toolkit project
and then referencing it from each of the application projects  that use it.

But I am struggling to find it- must be possible

any thoughts? Thanks  -Terry

General Board / Re: Importing Python - global functions
« on: February 08, 2013, 09:07:58 pm »
Ah: found problem:
EA (8.0) does import classes from Python, but not global methods
So I thought - easy ...
I will cut and paste the contents of the file into a new one - remove all the class defs - tab everything out 1 and add a class def to the top like def class Globals:

This worked on one .py file, but not this one as it had an if __name__ == 'main' .... code block.

This apparently stopped EA importing anything.
I found it by importing only 1 method to begin with (that worked) and then 3 then 10 ... and so on.
Once I added the bit  with the  if __name__ == 'main' block -
NOTHING imported, which makes sense since i have moved it inside my Globals  class def 'holder'
But it appears that even with the original  file the import would not import anything - perhaps this has been fixed in later versions of EA?

Anybody know if I can reverse engineer Python sequence diagram in EA? Maybe not 8 - maybe later version? >:(

General Board / Re: Importing Python - global functions
« on: February 07, 2013, 03:25:21 am »
I tried a work around:
cut n paste the global functions into a new file
add a class def to the top of the file
def class Globals:

then tabbed the functions out one so that they are part of the class,
then placed the file in its own sub directory and tried importing that ...

EA created the class but did not import the functions...

However I did get it to work with another group of global methods which I placed in class called Utilities ...
The only difference I can see is that the Global methods do have functions nested in functions - may be I need to flatten them out to the class level?

General Board / Importing Python - global functions
« on: February 07, 2013, 02:03:48 am »
Anybody know how to import python global functions into EA?
I can import methods (defined in a class) fine, but alas a lot of the code I want to RE is in global functions ...

Pages: [1]