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 - sandeep bhat

Pages: [1] 2 3
1
I thought in 5 years they might have come up with 2 variants, 32 and 64 bit  :(. Aware of any workarounds that i can integrate a 64bit program(python) with EA?

2
Well  i need to use python due to the customer requirements. Anyway my question is, is EA a 32 bit application or 64bit? Because the 64bit python doesnt seems to work with EA

3
Hi All,
Few years back when i started developing an Addin for Enterprise Architect using python 2.7 64bit, I had an issue with the tkInter. After some research and some inputs, I found that Enterprise Architect is 32bit build. So i will have to use python 32bit. After installing python 32 bit it went well. Now i have an requirement to use python 2.7 64 bit with Enterprise Architect. I see the issue still persists. So wanted to check if anybody has developed an Addin using Python 2.7 64 bit for Enterprise Architect.

4
Thanks all! yes, what was I thinking! No way we can create all the connectors from an image file :)

5
Automation Interface, Add-Ins and Tools / Add a diagram from a jpg image
« on: January 09, 2016, 12:19:36 am »
Hi,
I want to add a diagram from my file system which I had saved previously as a jpg image. I know there is a method to add new diagram, but I am not able to find any where i can load it from a image file. any help is appreciated.
Thanks in advance.

6
General Board / Re: Storing a static string in Enterprise Architec
« on: June 03, 2014, 06:51:31 pm »
Thanks a lot :)

7
General Board / Re: Storing a static string in Enterprise Architec
« on: June 03, 2014, 02:41:55 pm »
Sorry. my bad. ok here's the situation. I have an XML with a path to an icon, path to a default directory where my program exports few files. now i want to get rid of this xml file. Hence want to store it in local paths. I have written an addin in python to enterprise architect. so in the python code i want to access these local paths. so any idea how to do that?

8
General Board / Re: Storing a static string in Enterprise Architec
« on: June 02, 2014, 11:22:39 pm »
Any idea how can i access it programatically?

9
General Board / Storing a static string in Enterprise Architect
« on: May 15, 2014, 08:24:54 pm »
Hi,
I want to store a static string(say template path) in Enterprise architect. I know there many ways to do this. but i want to know which is the best and simplest way to do it. Also does Enterprise Architect support storing user defined strings globally?

10
right on! Thanks qwerty, you are always there when I need some help :)

11
Hi,
I want to check if the sort alphabetically is checked, I want to do this programatically. Any of the Class which will have this information? I looked through the Repository and Element   classes, no luck. Would really appreciate it if somebody could help me with it.

12
What would i do without you :). Thanks again.

13
Well now i am stuck while adding the tagged values for the same activity parameter. I get no exception but it is not shown in the UI. i have Min taggedvalue in the EA. so i want to create a new tagvalue for this activity parameter. Below is the code i am trying , but there is no luck.
Code: [Select]
NewElem2=Collection.Elements.AddNew('testActivity','Activity')
NewAttr1=NewElem2.Attributes.AddNew('Att1','u32')
NewAttr2=NewElem2.Elements.AddNew('Att2','ActivityParameter')
NewAttr1.default='1U'
NewAttr2.ClassifierId=239

NewAttr1.Update()
NewAttr2.Update()

NewAttr2.TaggedValues.AddNew('min','10')

NewAttr2.Update()
for prop in NewAttr2.CustomProperties:
     if prop.Name=='direction':
                    prop.Value='out'
NewAttr2.Update()
NewElem2.Update()

15
Thanks a ton for your help qwerty. I was able to set the direction with the below code
Code: [Select]
NewElem2=Collection.Elements.AddNew('testActivity','Activity')
            NewAttr1=NewElem2.Attributes.AddNew('Att1','u32')
            NewAttr2=NewElem2.Elements.AddNew('Att2','ActivityParameter')
            NewAttr1.default='1U'
            NewAttr2.ClassifierId=239
            NewAttr1.Update()
            NewAttr2.Update()
            for prop in NewAttr2.CustomProperties:
                if prop.Name=='direction':
                    prop.Value='out'
            NewAttr2.Update()
            NewElem2.Update()

Pages: [1] 2 3