importing connector propertes with CSV file

Starting point for “ask and learn more about MagicDraw”

Moderator: Moderators

importing connector propertes with CSV file

Postby cmassa@draper.com » Tue Apr 07, 2015 1:40 pm

I see that "Connector" is a choice for the Target Element. However, it is not clear how to do the mapping. I have a CSV file that contains the Owner of the connector (a block), and the fully qualified names of the two ports that serve as the ends of the connector (see below). I am using fully qualified name because some of the ports have the same name.

I have mapped the "owner" property to the block, and two "end" properties, one for each port. When I do the import, a connector property is created, but the model does not seem to recognize the connection. When I ask it to "display paths" on the corresponding IBD, it says there is nothing to display. I've also noticed that if I draw the connector manually, the role names have a "." in front of the port names, whereas when I do the import, they do not.

Some of the connectors I need to draw are between ports on two part properties in the IBD, and some of them are between a port on the boundary of the IBD (i.e., a port that is owned by the block that corresponds to IBD) and a port on a part property within the IBD. Does that matter when doing the import? I need to do both types of connectors.

Can you tell me what I am doing wrong/how to map the connector properties correctly? Thanks.

My CSV file is setup like this:

EndAPort, EndBPort, OwningBlock
pkg::block1::port1, pkg::block2::port2, block3
cmassa@draper.com
Forum Beginner
Forum Beginner
 
Posts: 73
Posts Rating:5
Joined: Wed Jan 14, 2015 3:43 pm

Re: importing connector propertes with CSV file

Postby michael.shearin@gtri.gatech.edu » Fri Apr 28, 2017 6:40 pm

Hey cmassa,

I too am trying to import connectors based on a CSV and have gotten nowhere (mainly, I can create invalid connectors that do not have roles assigned for the ends).

I came across the following forum post in which a NoMagic moderator states that connections need to be created by hand
post9547.html?hilit=CSV%20connector#p9547

I feel this is something that should be able to be created via a CSV file. Were you able to get it to work? NoMagic, is this a feature that could be added? Specifically, the ability to create connectors between two objects (parts or ports) and have those appear on an IBD?

Mike
michael.shearin@gtri.gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 6
Posts Rating:0
Joined: Thu Apr 21, 2016 10:46 am

Re: importing connector propertes with CSV file

Postby cmassa@draper.com » Wed May 03, 2017 6:47 am

No, I don't think I ever got this to work.
cmassa@draper.com
Forum Beginner
Forum Beginner
 
Posts: 73
Posts Rating:5
Joined: Wed Jan 14, 2015 3:43 pm

Re: importing connector propertes with CSV file

Postby supatp » Thu May 04, 2017 3:12 am

Hello cmassa, Mike,

Sorry for the late on this.
Let me provide the sample of what I did to import the connector.

This is the original model and the data I prepared.
model.png

data.png


Then I do the properties mapping to the corresponding column.
map1.png

map2.png


Here's the result.
result.png


Best Regards,
Supat P.
You do not have the required permissions to view the files attached to this post.
supatp
Customer Support
Customer Support
 
Posts: 165
Posts Rating:11
Joined: Mon Feb 08, 2010 2:45 am

Re: importing connector propertes with CSV file

Postby justin.gliptis@baesystems.com » Wed May 10, 2017 2:07 pm

supatp,

A colleague and I each tried to duplicate your model/import, but in both cases the import was unsuccessful. MagicDraw returns the following errors for each row of the import:

Row 1: Invalid related element path Block A11::p1
Row 1: Invalid related element path Block A1::p1
Row 1 : cannot find a client and/or a supplier for the relation.

What are we missing? Are there any other options/settings that aren't shown (e.g. "Target Stereotype", "Identifier key for relation ends", etc.)? We are running MagicDraw 18.3 w/SysML plug-in.

Thanks.
justin.gliptis@baesystems.com
Forum Newbie
Forum Newbie
 
Posts: 8
Posts Rating:2
Joined: Wed May 10, 2017 9:24 am

Re: importing connector propertes with CSV file

Postby jeffrey.b.abbott@leidos.com » Fri Mar 12, 2021 9:47 am

The problem here is that the import is referencing the Block::port for connections between Parts. This means if you have two parts of the same Type (Block), then you can't create connections between them.

I thought perhaps a single colon could be used to refer to the type of the part Part:Block::ProxoPort, but that does not work either.

I'm scratching my head here. The Dialog is apparently necessary for cameo to identify the part based the block type, which is not necessarily unique.
Jeff
jeffrey.b.abbott@leidos.com
Forum Newbie
Forum Newbie
 
Posts: 11
Posts Rating:1
Joined: Wed Jul 17, 2019 4:11 pm


Return to New to MagicDraw

Who is online

Users browsing this forum: No registered users and 0 guests