cogu / autosar

A set of python modules for working with AUTOSAR XML files
MIT License
388 stars 168 forks source link

multiply arxmls in one workspace #88

Closed Han40 closed 8 months ago

Han40 commented 2 years ago

i want to load create RPort in A workspace's componentType, using Port interface in another arxml. how to create one workspace with multiply arxmls. how to load multiply arxmls into one workspace.

thanks

gcbb commented 2 years ago

先用wks1加载arxml1 再用wks2加载arxml2 在wks2中直接引用wks1的portinterface就行

Han40 commented 2 years ago

先用wks1加载arxml1 再用wks2加载arxml2 在wks2中直接引用wks1的portinterface就行

目前看下来没法 做到 跨 workspace 的方法来 引用 portInterface

gcbb commented 2 years ago

我百分百肯定可以的 查找出wks1的port interface路径,然后在wks2中引用 我就是这么干的

Han40 commented 2 years ago

如何引用呢,直接路径名路径名就可以吗? 还是要备注上 wks1:PortInterfaceRef ? 我看了代码里似乎一直在找 自己workspace 内的 PortInterfaceRef 可以看下源码里compoent.py 里的 createRequirePort 方法 我不知道你这边如何实现的呢???

gcbb commented 2 years ago

报歉,我查了下我自己的,,,我是在一个wks中,,,

我只是加我了两个arxml

---Original--- From: @.> Date: Mon, Apr 4, 2022 11:26 AM To: @.>; Cc: @.**@.>; Subject: Re: [cogu/autosar] multiply arxmls in one workspace (Issue #88)

如何引用呢,直接路径名路径名就可以吗? 还是要备注上 wks1:PortInterfaceRef ? 我看了代码里似乎一直在找 自己workspace 内的 PortInterfaceRef 可以看下源码里compoent.py 里的 createRequirePort 方法 我不知道你这边如何实现的呢???

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

cogu commented 8 months ago

Already supported. Not sure what the issue really was.