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

Pages: [1]
1
General Board / Re: Generate parts by associations through scripting
« on: October 04, 2024, 11:58:39 pm »
I found a way to do what I want partly by scripting and partly manually.
I script all the connectors, and then manually create IBD-diagrams for my blocks and then syncronize the elements.
Thanks for your tips.

2
General Board / Re: Generate parts by associations through scripting
« on: October 04, 2024, 09:27:21 pm »
Hi again,
VB scripting and EA does not seem to be my thing.
How do I get the embedded element to be a part. If a add my block to a diagram it shows up under "Properties" not "Parts". This differense is also visible if I look at the properties of the embedded element it contains "slot" not "part".
If I add the part to I diagram. The correct would be Find->"Locate Property Type in Project Browser" but i get Find->"Locate Classifier in Project Browser"
What am I doing wrong?
How do I get the connector to be associated with the part? If I later delete the part from the project browser i want the connector to be deleted.

3
General Board / Re: Generate parts by associations through scripting
« on: October 04, 2024, 06:35:31 pm »
So what I must do is: create my two blocks (A,B ), create my composition to whole relation between them and also create a new element and add it to the block where I want it to be "embedded" (A) and then set the new element to the correct classifier ID  (B) and also set the correct ParentID (A). What type should my new element be so that it shows up under "Parts" and not "Properties"?

This seems very complicated as when I do i manually i just draw one relationship connector between my two blocks.

4
General Board / Generate parts by associations through scripting
« on: October 04, 2024, 08:27:09 am »
Hi,
I am trying to generate parts by associations through scripting in VB.
I am using Sysml 1.5.
I have managed to create blocks and a composite aggregation connector between my blocks. But when i look in a diagram or the project prowser there is no part, just the relation. What am I doing wrong. If I do it manually it looks like the attached link, "Generate from Part Association"

https://sparxsystems.com/enterprise_architect_user_guide/17.0/modeling_languages/parts_from_association.html

Regards Hannah

5
General Board / Re: Set direction of FlowProperty in SysML 1.5
« on: September 23, 2024, 11:31:44 pm »
Thanks.
Managed to do it using the Tagged Values.
Regards Hannah

6
General Board / Set direction of FlowProperty in SysML 1.5
« on: September 23, 2024, 10:40:49 pm »
Hi,
After giving up on the office mdg I am trying to create Ports, Parts and FlowProperties through VB scripting from scratch. I am using syml 1.5.
I have managed to create and set everyting but the Direction of my FlowProperty.
The FlowProperty is added straight to an <<interFaceBlock>>.
When I do it manually I can set the attribute "Direction" by selecting the FlowProperty in the Browser, opening the Flow Property dialog -> General and then going to the SysML 1.5 tab.

How do I do this by scripting?

Regards Hannah

Pages: [1]