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 - hshahid

Pages: [1] 2
1
Suggestions and Requests / How to Find link b/w block & its instances?
« on: November 10, 2010, 11:48:19 pm »
Hi,

I am using EA. 8.0, its API and C#. I have created a SysML block "Car" in a diagram and then created its instance in the same diagram "BlackCar:Car".

Now what happens is when I create a new instance of a block, EA creates a new property in in the repository and name it "BlackCar", but using API, I am not able to get relation b/w the block and its instances. i.e. I am able to get "BlackCar" as a property in my XML but I am not sure which attribute of API "Element" will contain the information about showing any relationship b/w the instance "BlackCar" and its type which should be "Car".

Can any one guide me, how I can reterive this information using API. I have tried different properties, e.g, Element.MetaType, Element.Type, ClassfierID, ClassifierID, ClassifierName, ClassifierType etc etc... but was not able to guess the property which will actually tell information required.

We can see the Type of the sysml block object in E.A, so there must be a way by which E.A maintains the association when its running. Please let me know, your views about it.

Thanks & Regards,
Hamid

2
General Board / Re: Adding attributes in a profile
« on: November 17, 2010, 08:38:12 am »
Hi Simon,

Thanks for the response. Can you please provide me some example that how can I create a pattern?

Thanks & Regards,
Hamid.

3
General Board / Adding attributes in a profile
« on: November 17, 2010, 06:40:33 am »
Hi,

I am creating a some UML profiles in Enterprise Architect 8.0. I am inheriting my stereotype with MetaClass and adding attributes to my stereotype. But the problem is when I import my profile and use my profile in some diagram the attributes, which I defined while creating a profile, appears under Tagged values tab of my construct and I can add as many other attributes once I am in a diagram.

For Example; If I create a stereotype Marker, with only two attributes, "Color" and "Type". But when I create a profile and use it after importing it in EA. I am able to drag drop Marker, but the attributes are shown as tagged values, and I can add more attributes to Marker.

I want that, when I create a diagram using my own constructs (profile), it should display only those attributes, which I defined at the time of profile creation (color and type )and no new attributes can be added.

Please advise, how can I create such a profile?

Thanks & Regards,
Hamid.

4
General Board / Re: How to Find link b/w block & its instances?
« on: November 13, 2010, 01:01:43 am »
Thanks Simon, it worked :)


Following Code is to help someone who is facing same problem;

classElement = (EA.Element)m_Repository.GetElementByGuid(tempElement.get_MiscData(0));

if (classElement != null)
{
      className = classElement.Name;
      cassID = classElement.ElementID;
}

5
General Board / Re: How to Find link b/w block & its instances?
« on: November 10, 2010, 11:44:08 pm »
Hi Skiwi - Thanks.


Hi Simon,

I guess it is not the ID because, I tried myElement.get_MiscData(0), but it returns a strange kind of value ="{057293CA-F6F7-45b3-832D-F264AA990DCE}".

Please let me know, if Element ID of the type can be extracted from this value? We can see the Type of the sysml block object in E.A, so there must be a way by which E.A maintains the association when its running.

Please let me know, your views about it.

Thanks.

6
General Board / Re: How to Find link b/w block & its instances?
« on: November 10, 2010, 12:15:26 am »
Guys any ideas...

7
General Board / Re: How to Find link b/w block & its instances?
« on: November 09, 2010, 01:28:45 am »
Thanks Greet.

Any suggestions anyone...?

8
General Board / Re: How to Find link b/w block & its instances?
« on: November 09, 2010, 12:51:24 am »
Greet its "0" in everycase.

9
General Board / Re: How to Find link b/w block & its instances?
« on: November 09, 2010, 12:32:10 am »
Yes Greet,

I have tried all these properties like ClassfierID, ClassifierID, ClassifierName, ClassifierType but they are not providing the information needed.  :(


10
General Board / How to Find link b/w block & its instances?
« on: November 08, 2010, 11:52:23 pm »
Hi,

I am using EA. 8.0, its API and C#. I have created a SysML block "Car" in a diagram and then created its instance in the same diagram "BlackCar:Car".

Now what happens is when I create a new instance of a block, EA creates a new property in in the repository and name it "BlackCar", but using API, I am not able to get relation b/w the block and its instances. i.e. I am able to get "BlackCar" as a property in my XML but I am not sure which attribute of API "Element" will contain the information about showing any relationship b/w the instance "BlackCar" and its type which should be "Car".

Can any one guide me, how I can reterive this information using API. I have tried different properties, e.g, Element.MetaType, Element.Type etc etc... but was not able to guess the property which will actually tell information required.

Thanks & Regards,
Hamid

11
General Board / Custom Profiles in E.A. Toolbox
« on: November 11, 2010, 01:39:08 am »
Hi,

Can we use our own custom profiles and sterotypes in toolbox. So that we can create models by directly draging & droping our constructs created in E.A. Like we use SysML profile for instance.

Thanks & Regards,
Hamid.

12
General Board / Re: Problems with XMI Export/Import
« on: November 10, 2010, 11:45:04 pm »
Thanks guys...

13
General Board / Re: Problems with XMI Export/Import
« on: November 09, 2010, 01:28:00 am »
Thanks Greet.

Any suggestions anyone...?

14
General Board / Re: Problems with XMI Export/Import
« on: November 08, 2010, 11:57:50 pm »
Hi Greet,

Thanks for your response. Yes, Block is the term from SysML. And I want to export SysML information from EA. Whereas, I read about some examples of XMI import in Moflon from Magic Draw and Rational Rose. Therefore, I was thinking it might be something with the XMI of EA. Do you have any suggestions about XMI export with SysML.

Thanks.

15
General Board / Problems with XMI Export/Import
« on: November 08, 2010, 11:35:18 pm »
Hi,

I am using Enterprise Architect 8.0 and I trying to import XMI generated by EA in MOFLON. I am having following issues;

1. When I am import XMI 1.1 generated by EA in Moflon, it import all the Blocks but all the arrtibutes and block connection information is lost.

2. When I am importing XMI 2.1 generated by EA in Moflon, it just do nothing.

Can you one tell me, what exactly is going on?  :-/, Is there any problem with XMI generated by EA?

Thanks & Regards,
Hamid


Pages: [1] 2