- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem with overlaping connector-icons
Problem with overlaping connector-icons
Problem with overlaping connector-icons
Hello,
i built a model containing thermal and electrical equation parts (in Dymola so far). And inherited some connectors like the OnePort from the Modelica MSL in a first step. Modelica puts the connector (pin) icons on the left and right side of the icon of the model. Now i added a new extended TwoPort connector for the thermal part. In the icon of the model the thermal and electrical connectors (ports & pins) overlap and i can't find a way to change their positions and i can't connect my thermal components once the electrical are connected.
If i open the original connector i can change the position of the pins in the icon but in my (inherited) model i can't move them at all.
As far as i can see the position of the icon is declared in an annotation.
As i don't want to create for each new application a special connector with special pin positions i would like to know how i can change the positions of these inherited connectors? So if modelica provides inheritance to reuse models (modeling knowledge) and also includes the concept of inheritance through modification. How can i modify the position (placement) of an icon in annotation? In my case the "Modelica.Electrical.Analog.Interfaces.OnePort" includes up-to two pins, whom need to be moved to another position. I have no idea how to realize this!
For instance i would like to put both electrical connector-icons (pins) on the left and both thermal-icons on the right side of the model icon.
Here's an image to show the problem
Uploaded with ImageShack.us
I hope you can help.
Best Regards
Re: Problem with overlaping connector-icons
Well i didn't find an elegant answer/solution to my problem.
But one could add the pin's and port's separatly to the model avoid this overlaping, as it is possible to declare their position (placement) in the annotation part.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem with overlaping connector-icons