Giter VIP home page Giter VIP logo

aasx-package-explorer's People

Contributors

admin-shell avatar aorzelskigh avatar michaelhoffmeisterfesto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aasx-package-explorer's Issues

Save as AAS XML does not work

User: Jörg

Steps to reproduce:load sample, select export as aas xml

Expected results:

Actual Results:

Message: Error When saving AASX, an error occurred: Not able to handle C:\Users\IBM_ADMIN\Documents\1_IBM\2019\I40\VWSID\190214_AasxPackageExplorer\screencasts_communication\sample-admin-shell.xml. at \AssetAdministrationShellSDK.cs:Zeile 2467..

Please consider attaching the AASX package (you might rename this to .zip), you were working on, as well as an screen shot.

Please mail your report to: [email protected]
or you can directly add it at github: https://github.com/admin-shell/aasx-package-explorer/issues

Crash on opening AASX package without error message

Describe the bug
Explorer crashes when trying to load an AASX with File...Open...
Same behavior when using Open Auxiliary AAS...
Dragging and dropping AASX file into Explorer is ignored, no messages.

To Reproduce

  1. Download and unzip package explorer build (tested with 190930)
  2. Launch .exe directly (no shortcut with additional settings required to reproduce)
  3. Try to open this file from the admin-shell.io repository:
    Festo_8042539_VUVG-LK10-M52-AT-M5-1H2L-S_solenoid_valve.aasx

Expected behavior
Display the AAS, or an informative error message.

OS: Windows 10
Package explorer build: 190930

Additional context
Unfortunately this is happening with one of my .AASX files which I have been working on. The explorer crashed while editing the file, and since then I am not able to load my AASX anymore. I assume the file is corrupted in some way?

Following up on the above question: If I try renaming the Festo VUVG-LK10 file from above to a .ZIP and extracting, I get an error as shown below. With my AASX file it is the same error, except with the [...].aas file.

error_extracting

Edit: clarification

Submodel copy has wrong property valueTypes

When copying a submodel from an auxiliary AAS, the resulting properties get the wrong valueType. valueType is actually filled with the same content as value.

To Reproduce

  1. Create new package
  2. Open sample AAS as auxiliary AAS
  3. Create new AAS and asset in empty package
  4. Copy the documentation submodel over from the sample AAS
  5. Inspect any property in the submodel, e.g. DocFilename

Expected behavior
The property should have the same valueType as the original.

Screenshots
image

First usage of AAS

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
No problem but usage question

Describe the solution you'd like
A clear and concise description of what you want to happen.
How and where to post question on usage.
Especially how to define enumerated lists.
Usage: multiple measurements on material and need to define a list with measurement types with description, units, ..

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Looked about all the screencasts and read documentation

Additional context
Add any other context or screenshots about the feature request here.

Open source and GitHub functionality

The AASX Package Explorer is called an "open source software" or "open source implementation" in the following publications and articles:

However, the source code of the application seems to be unavailable, so the term "open-source" is misleading. Please note, that the software is published under the terms of the Eclipse Public License Version 2.0, which states:

3.1 If a Contributor Distributes the Program in any form, then:
a) the Program must also be made available as Source Code, [...]

This repository abuses the way how Git (the technology) and GitHub (the platform) work, because both are not suited for hosting big binary files. Instead a feature called GitHub Releases should be used for the distribution of compiled files keeping the repository either empty (when changing to a closed-source approach) or filled with the actual sources of the tool.

include schema names

Is your feature request related to a problem? Please describe.
The xml file does not contain any schema references - so it can't be validated completely.

Describe the solution you'd like
Include the schema references

Describe alternatives you've considered
no alternate solutions

cheers
J.

Asset type/instance distinction

In the current build, the Kind of an Asset can only be "template" or "instance".
According to the metamodel this should be "type" and "instance".
This error was reproduced in Version 1.9.8.1 and 1.9.8.3.
image

Thanks & best regards,
Bernd

IEC 61360 STRING data type missing

When selecting a data type in an IEC 61360 data specification, the type STRING is missing from the drop down.

According to the eClass wiki there should be such a type.
In the drop down, however, the regular STRING (not STRING_TRANSLATABLE) is missing:
image

Set entire admin-shell profile to private

Is your feature request related to a problem? Please describe.
I have heard from multiple people in my organisation that they were confused as to where admin-shell related repos are maintained. The disclaimer only appears in the readme of the package-explorer repo and there is no reason to keep this outdated version public.

Describe the solution you'd like
Set the entire admin-shell github profile to private, including all repositories.

Describe alternatives you've considered

Additional context
Add any other context or screenshots about the feature request here.

Do not load <Net46AasxServerPlugin.dll>

##############################################################
PlugIn do not work with build development 05. March 2020

PlugIn works with build191121
##############################################################
cmd:

cd .\AasxPackageExplorer
AasxPackageExplorer.exe -read -json options -portable .json -maximized -dll ..\AasxPlugInS\Net46AasxServerPlugin\Net46AasxServerPlugin.dll

Net46AasxServerPlugin

##############################################################

0:Trying load .dll at ..\AasxPlugInS\Net46AasxServerPlugin\Net46AasxServerPlugin.dll
2:Error Trying activate plugin index 0: Die Methode "CheckForLogMessage" im Typ "AasxIntegrationBase.AasxPlugin" der Assembly "Net46AasxServerPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" hat keine Implementierung. at \Plugins.cs:Zeile 136..
Stacktrace: bei System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
bei System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
bei AasxPackageExplorer.Plugins.TryActivatePlugins(List`1 pluginDll) in C:\Users\miho\Desktop\AasxPackageExplorer\AasxPackageExplorer\AasxWpfControlLibrary\Plugins.cs:Zeile 136.
0:Application started ..

Properties related to file names and file URIs get mangled

I used the sample AAS as a template to create my own. However, I have trouble getting my embedded files to display in the browser. Apparently, the URI in the File element gets somehow mangled. The same happens to the value of the DocFilename properties.

To Reproduce

  1. Open the attached AASX in the Aasx Package Explorer
  2. Go to AAS/documentation/*/DocFilename or AAS/documentation/*/File

Expected behavior

  • The Filename should have an underscore after 'CP-AM-CAM'. Its there in the XML source
  • The file URI should have three underscores after the 'http'. They're there in the XML source.
  • I should be able to display the file in the browser.

Screenshots
image
image

reference between different asset administration shells

is there a possibility within existing AASX Explorer to reference between different asset Administration shells in order to implement for example nestability of Shells or to make it possible one asset is able to have different asset Administration Shells across its lifecycle?

Bug in XML serialization of qualifiers

Please see the example below, taken directly from an AASX package created by the AASX Package Explorer (Build 190930).
In the XML serialization of the AAS, shouldn't the element which contains the qualifiers be <aas:qualifiers>? Unless I am misunderstanding the specification from VWSiD?

I propose to change line 2373 in AssetAdministrationShellSDK.cs from
[XmlArray("qualifier")]
to:
[XmlArray("qualifiers")]

This change would probably break existing AASX packages. These would need to be either upgraded manually, or automatically by the AASX Package Explorer?

I'd be happy to submit a pull request to this repository for this and other issues...

Example AAS Snippet

<aas:submodel>
      <aas:idShort>AxisUtilization</aas:idShort>
      <aas:description>
        <aas:langString lang="EN">Submodel which contains runtime data</aas:langString>
      </aas:description>
      <aas:identification idType="URI">wbk.kit.edu/submodels/1/1/740EDD761C3F0114</aas:identification>
      <aas:semanticId>
        <aas:keys />
      </aas:semanticId>
      <aas:kind>Instance</aas:kind>
      <aas:qualifier>
        <aas:qualifier>
          <aas:qualifierType>OPCURL</aas:qualifierType>
          <aas:qualifierValue>opc.tcp://192.168.0.199:4840</aas:qualifierValue>
        </aas:qualifier>
        <aas:qualifier>
          <aas:qualifierType>OPCNamespace</aas:qualifierType>
          <aas:qualifierValue>2</aas:qualifierValue>
        </aas:qualifier>
        ...more qualifiers...
      </aas:qualifier>
      <aas:submodelElements>
        ...rest of submodel...
</aas:submodel>

Explorer closed unexpected

Describe the bug
Created Project using the Explorer. Failed to reload. No error description or exception. I started the application using console but no output there.

Project is attached and only renamed to zip
blacky.zip

To Reproduce
Steps to reproduce the behavior:

  1. load attached project

Desktop (please complete the following information):

  • OS: Windows 10 - x64

Additional context
Add any other context about the problem here.

Unable to save the aasx file as an xml file / json file

Hello team,

I am facing an issue while converting the .aasx file to an xml file or a json file directly from the save as option in the file menu in the AASX package explorer tool.
The issue is attached below :

File contains corrupted data. File contains corrupted data. at at MS.Internal.IO.Zip.ZipIOEndOfCentralDirectoryBlock.FindPosition(Stream archiveStream)
at MS.Internal.IO.Zip.ZipIOEndOfCentralDirectoryBlock.SeekableLoad(ZipIOBlockManager blockManager)
at MS.Internal.IO.Zip.ZipArchive..ctor(Stream archiveStream, FileMode mode, FileAccess access, Boolean streaming, Boolean ownStream)
at MS.Internal.IO.Zip.ZipArchive.OpenOnFile(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
at System.IO.Packaging.ZipPackage..ctor(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
at System.IO.Packaging.Package.Open(String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare, Boolean streaming)
at AdminShellNS.AdminShellPackageEnv.TemporarilySaveCloseAndReOpenPackage(Action lambda) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxCsharpLibrary\AdminShellPackageEnv.cs:line 896
at AasxWpfControlLibrary.PackageCentral.PackageContainerBuffered.BackupInDir(String backupDir, Int32 maxFiles, BackupType backupType) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxWpfControlLibrary\PackageCentral\PackageContainerBuffered.cs:line 105.

I tried with some of the examples on the server (http://www.admin-shell-io.com/samples/), but the same error is being repeated.

Can't delete created OperationVariable's which are part of an operation

When I create an operation I can add the following OperationVariables

  • OperationVariable In
  • OperationVariable Out
  • OperationVariable In Out

But I can not delete a created OperationVariable

image

When I create an OperationVariable In Out and I select coll then I get this

image

I can add an entity, but I can not add information under this property

But I see that the number of submodelElementCollection is updated +1

image

image

When I open the AAS in automation ML Is see not finished entities

Getting a AASX W JSON format is NOT possible

Situation:

I use the AASX Package Explorer 2021-02-18.alpha version and work on a 64-bit Windows 7 and 10 machine. I tried to convert any AASX XML sample to an AASX W JSON format, given the error code shown below.

How should I get this format? I tried with all the examples on the server (http://www.admin-shell-io.com/samples/), but the same error and the XML format are still not changed. Even creating a new model with AASX W JSON format is not possible.

Expected results:
I expect to get an AASX in a W JSON format

Actual Results:
When saving the AASX file to AASX W JSON format, a file with XML format is saved, and an error message is returned in the log [1]

[1]Error: while backing up AASX local file: D:\Users\salazar\Desktop\Luis Cruz TUM\Software 2021\AAS software tools\model tests\model5.aasx buffered to: C:\Users\TUM\AppData\Local\Temp\tmpD052.aasx: While temporarily close and re-open AASX C:\Users\TUM\AppData\Local\Temp\tmpD052.aasx at \AdminShellPackageEnv.cs:line 911 gave: Could not find a part of the path 'D:\Users\salazar\Desktop\Luis Cruz TUM\Software 2021\AAS software tools\backup\backup000.aasx'. While temporarily close and re-open AASX C:\Users\TUM\AppData\Local\Temp\tmpD052.aasx at \AdminShellPackageEnv.cs:line 911 gave: Could not find a part of the path 'D:\Users\salazar\Desktop\Luis Cruz TUM\Software 2021\AAS software tools\backup\backup000.aasx'. at at AdminShellNS.AdminShellPackageEnv.TemporarilySaveCloseAndReOpenPackage(Action lambda) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxCsharpLibrary\AdminShellPackageEnv.cs:line 915
at AasxWpfControlLibrary.PackageCentral.PackageContainerBuffered.BackupInDir(String backupDir, Int32 maxFiles, BackupType backupType) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxWpfControlLibrary\PackageCentral\PackageContainerBuffered.cs:line 105.

Unable to open a AASX file created with the Eclipse AAS Model for Java

Hello dear AASX Package Explorer Development Team,

I'm running into the following error message when I try to open a AASX file, which I created with the code from the Eclipse AAS Model for java repo (https://github.com/eclipse-aas4j/aas4j).

Steps to reproduce:

  • I cloned the repo

  • I used the AASSimple Class to write a simple AAS on an AASX file

  • Then I tried to open this file with the AASX Package Explorer

    Expected results:

  • I expected the file to open normally similar to other submodel tamplate samples from https://industrialdigitaltwin.org/content-hub/teilmodelle

    Actual Results:

  • I got the following error message:

    Latest message: Error: Unhandled exception in AasxPackageExplorer v1.0.0.0: PackageCentral: while performing load from C:\Users*\Projects*\03_Code\micro-aas\output.aasx at \PackageCentral.cs:line 95 gave: One or more errors occurred. PackageCentral: while performing load from C:\Users*\Projects*\03_Code\micro-aas\output.aasx at \PackageCentral.cs:line 95 gave: One or more errors occurred.
    InnerException: One or more errors occurred.
    InnerException: While opening aasx C:\Users*\AppData\Local\Temp\tmp4B1D.aasx from source local file: C:\Users*\Projects*\03_Code\micro-aas\output.aasx buffered to: C:\Users*\AppData\Local\Temp\tmp4B1D.aasx at \AdminShellPackageEnv.cs:line 402 gave: While reading the AASX C:\Users****\AppData\Local\Temp\tmp4B1D.aasx at \AdminShellPackageEnv.cs:line 334 gave: '9273f37c-2a48-488c-8fbc-6aaed62f23a4' ID is not a valid XSD ID. at at AasxPackageLogic.PackageCentral.PackageCentralItem.Load(PackageCentral packageCentral, String location, String fullItemLocation, Boolean overrideLoadResident, PackageContainerOptionsBase containerOptions, PackCntRuntimeOptions runtimeOptions) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageLogic\PackageCentral\PackageCentral.cs:line 104
    at AasxPackageExplorer.MainWindow.UiLoadPackageWithNew(PackageCentralItem packItem, AdminShellPackageEnv takeOverEnv, String loadLocalFilename, String info, Boolean onlyAuxiliary, Boolean doNotNavigateAfterLoaded, PackageContainerBase takeOverContainer, String storeFnToLRU, Boolean indexItems) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.xaml.cs:line 294
    at AasxPackageExplorer.MainWindow.<CommandBinding_GeneralDispatch>d__5.MoveNext() in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.CommandBindings.cs:line 266
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler).

Please consider attaching the AASX package (you might rename this to .zip),
you were working on, as well as an screen shot.

Please issue directly to github: https://github.com/admin-shell/aasx-package-explorer/issues

Below, you're finding the history of log messages. Please check, if non-public information
is contained here.

Application startup.
The default options are expected in the JSON file: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer\AasxPackageExplorer.options.json
Loading the default options from: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer\AasxPackageExplorer.options.json
Parsing 0 command-line option(s)...
Searching for the plugins in the plugin directory: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins
Found 13 plugin(s) in the plugin directory: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins
Loading and activating 13 plugin(s)...
Trying to load and activate 13 plug-in(s)...
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginAdvancedTextEditor\AasxPluginAdvancedTextEditor.dll
.. adding plugin AasxPluginAdvancedTextEditor
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginBomStructure\AasxPluginBomStructure.dll
.. adding plugin AasxPluginBomStructure
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginDocumentShelf\AasxPluginDocumentShelf.dll
.. adding plugin AasxPluginDocumentShelf
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginExportTable\AasxPluginExportTable.dll
.. adding plugin AasxPluginExportTable
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginGenericForms\AasxPluginGenericForms.dll
.. adding plugin AasxPluginGenericForms
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginImageMap\AasxPluginImageMap.dll
.. adding plugin AasxPluginImageMap
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginMtpViewer\AasxPluginMtpViewer.dll
.. adding plugin AasxPluginMtpViewer
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginPlotting\AasxPluginPlotting.dll
.. adding plugin AasxPluginPlotting
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginSmdExporter\AasxPluginSmdExporter.dll
.. adding plugin AasxPluginSmdExporter
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginTechnicalData\AasxPluginTechnicalData.dll
.. adding plugin AasxPluginTechnicalData
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginUaNetClient\AasxPluginUaNetClient.dll
.. adding plugin AasxPluginOpcUaClient
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginUaNetServer\AasxPluginUaNetServer.dll
.. adding plugin AasxPluginUaNetServer
Trying to load a DLL: C:\Users**\Desktop\aasx-package-explorer.2023-02-03.alpha\AasxPackageExplorer.\plugins\AasxPluginWebBrowser\AasxPluginWebBrowser.dll
.. adding plugin AasxPluginWebBrowser
Loading aasx file repository ..........\Sample_AAS\aasxrepo-new.json ..
File not found when loading aasx file repository ..........\Sample_AAS\aasxrepo-new.json
Application started ..
[AasxPluginAdvancedTextEditor] ListActions() called
[AasxPluginAdvancedTextEditor] InitPlugin() called with args =
[AasxPluginBomStructure] ListActions() called
[AasxPluginBomStructure] InitPlugin() called with args =
[AasxPluginDocumentShelf] InitPlugin() called with args =
[AasxPluginExportTable] ListActions() called
[AasxPluginExportTable] InitPlugin() called with args =
[AasxPluginGenericForms] ListActions() called
[AasxPluginGenericForms] InitPlugin() called with args =
[AasxPluginImageMap] ListActions() called
[AasxPluginImageMap] InitPlugin() called with args =
[AasxPluginMtpViewer] GetPluginName() = MtpViewer
[AasxPluginMtpViewer] ListActions() called
[AasxPluginMtpViewer] InitPlugin() called with args =
[AasxPluginMtpViewer] GetPluginName() = MtpViewer
[AasxPluginPlotting] ListActions() called
[AasxPluginPlotting] InitPlugin() called with args =
[AasxPluginSmdExporter] ListActions() called
[AasxPluginSmdExporter] InitPlugin() called with args =
[AasxPluginTechnicalData] ListActions() called
[AasxPluginTechnicalData] InitPlugin() called with args =
[AasxPluginOpcUaClient] ListActions() called
[AasxPluginUaNetServer] GetPluginName() = Net46AasxServerPlugin
[AasxPluginUaNetServer] ListActions() called
[AasxPluginUaNetServer] InitPlugin() called with args =
[AasxPluginUaNetServer] GetPluginName() = Net46AasxServerPlugin
[AasxPluginWebBrowser] ListActions() called
[AasxPluginWebBrowser] InitPlugin() called with args =
Loading new AASX from: C:\Users*\Projects*\03_Code\micro-aas\output.aasx as auxiliary False ..
Error: Unhandled exception in AasxPackageExplorer v1.0.0.0: PackageCentral: while performing load from C:\Users*\Projects*\03_Code\micro-aas\output.aasx at \PackageCentral.cs:line 95 gave: One or more errors occurred. PackageCentral: while performing load from C:\Users*\Projects*\03_Code\micro-aas\output.aasx at \PackageCentral.cs:line 95 gave: One or more errors occurred.
InnerException: One or more errors occurred.
InnerException: While opening aasx C:\Users*\AppData\Local\Temp\tmp4B1D.aasx from source local file: C:\Users*\Projects*\03_Code\micro-aas\output.aasx buffered to: C:\Users*\AppData\Local\Temp\tmp4B1D.aasx at \AdminShellPackageEnv.cs:line 402 gave: While reading the AASX C:\Users****\AppData\Local\Temp\tmp4B1D.aasx at \AdminShellPackageEnv.cs:line 334 gave: '9273f37c-2a48-488c-8fbc-6aaed62f23a4' ID is not a valid XSD ID. at at AasxPackageLogic.PackageCentral.PackageCentralItem.Load(PackageCentral packageCentral, String location, String fullItemLocation, Boolean overrideLoadResident, PackageContainerOptionsBase containerOptions, PackCntRuntimeOptions runtimeOptions) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageLogic\PackageCentral\PackageCentral.cs:line 104
at AasxPackageExplorer.MainWindow.UiLoadPackageWithNew(PackageCentralItem packItem, AdminShellPackageEnv takeOverEnv, String loadLocalFilename, String info, Boolean onlyAuxiliary, Boolean doNotNavigateAfterLoaded, PackageContainerBase takeOverContainer, String storeFnToLRU, Boolean indexItems) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.xaml.cs:line 294
at AasxPackageExplorer.MainWindow.<CommandBinding_GeneralDispatch>d__5.MoveNext() in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.CommandBindings.cs:line 266
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler).
Stacktrace: at AasxPackageLogic.PackageCentral.PackageCentralItem.Load(PackageCentral packageCentral, String location, String fullItemLocation, Boolean overrideLoadResident, PackageContainerOptionsBase containerOptions, PackCntRuntimeOptions runtimeOptions) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageLogic\PackageCentral\PackageCentral.cs:line 104
at AasxPackageExplorer.MainWindow.UiLoadPackageWithNew(PackageCentralItem packItem, AdminShellPackageEnv takeOverEnv, String loadLocalFilename, String info, Boolean onlyAuxiliary, Boolean doNotNavigateAfterLoaded, PackageContainerBase takeOverContainer, String storeFnToLRU, Boolean indexItems) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.xaml.cs:line 294
at AasxPackageExplorer.MainWindow.<CommandBinding_GeneralDispatch>d__5.MoveNext() in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.CommandBindings.cs:line 266
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Following the AASX File is provided:

output.zip

Hopefully one of you has an idea where my error is. Thanks in advance.
Best Regards
Jonas2132

the Explorer used as a remote Rest Server

Hi.
I used the Explorer as a Rest server. The test was done in one PC, but, it seems like there is no remote server function.
Will there be a function as a remote server in future? Thank you.

Support of AAS Specification EventElement

I am excited to use your tool and the examples in the shell-io repository helped me to understand the specification. I am missing some parts of the specification like Range DateElement. More important i am missing the Events. As far as i understand the EventElement specifies the messageBroker and the connections using MQTT and OPC UA. The examples show only that these connections are described using SubElementCollections.

My Request
Is it planned to support EventElement soon?
How is the current Workaround? Is there something i miss?

Stricter validation for idShort

The Asset Administration Shell specification states that idShort can only contain letters, digits and underscores. Also, it must start with a letter.

The editor doesn't check any of that. It didn't keep me from setting idShort as "401-test" for example. See the following screenshot as proof:
screenshot

I would want the editor to stop me from saving such a change and display a message (possibly in the shape of a red hint bubble) telling me what I did wrong.

CMD example of a template strings to generate identifiers

###################
greater equal build191121
###################

CMD parameter
-id-aas
-id-sm-templateidentifiers.
-id-sm-instanceidentifiers.
-id-cd

(1) The following example does not generate an unique identifier for the placeholder[NNNNNNNNNNNNNNNNNNNN]:
AasxPackageExplorer.exe -id-aas smart.schott.com/demo/aas/1/1/NNNNNNNNNNNNNNNNNNNN

(2) Expected result, for example:
smart.schott.com/demo/aas/1/1/943887346456466631276369762

(3) What is the meaning of the following placeholders exactly?
[N] = numeric [0...9]
[A] = characters [Aa....Zz]
[X] = Alphanumeric [Aa...Zz...0...9]

When copying recursively also copy the qualifiers

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

REST API shall also show idshort

REST has the beautiful advantage that it can be used with a browser.

To make an AAS better readable for humans, the idshort shall be shown, e.g. for the submodels.

Example:

/aas/id/complete

{
"AAS": {
"hasDataSpecification": null,
"derivedFrom": null,
"asset": {
"keys": [
{
"type": "Asset",
"local": true,
"value": "www.phoenixcontact.com/asset/product/2404267",
"index": 0,
"idType": "URI"
}
]
},
"submodels": [
{
"keys": [
{
"type": "Submodel",
"local": true,
"value": "http://www.phoenixcontact.com/id/instance/99920181225234907000033133",
"index": 0,
"idType": "URI"
}
]
},
{
"keys": [
{
"type": "Submodel",
"local": true,
"value": "www.phoenixcontact.com/ids/sm/2393_4191_2091_4218",
"index": 0,
"idType": "URI"
}
]
},

Can't delete a sub model element of an ENT

When I crate an ENT and I create SubmodelElement(s) I can not delete those

When I cretae a SubmoduleElement as port of a submodel I can delete this ENT
image

But when I create a submodelElemnt for this ENT, I can not delete this new cretaed SubmodelElement

image

wie kann ich ein Bild in aasx einfügen

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Support assetIdentificationModel

The title pretty much says it all.
The specification mentions an optional submodel under the Asset element that carries additional identifying information. This assetIdentificationModel is not supported by the explorer. You can't create such a submodel and an existing submodel in the XML is not displayed.

Import from AML does not work

I am trying to import the AML file into the aasx. But it does not seem to recognize the elements. Is there a user guide/ rules as to how the AMl should be structured for importing into the AASX. I tried to add the basic attributes to the instance hierarchy in AMl. (idShort, category, administration,etc). Yet it does recognize the AML elements.

Changing Submodel-ID deletes submodel

  1. Go to existing submodel with given id (in my case URI, generated)
  2. Change id and apply change
  3. Create new submodel of type instance
  4. Submodel vanishes, with error message "Cannot find some submodel!"

If AASX is saved and loaded the model also does not include the submodel.

Import complete AAS from AASX

Today submodels can be imported by the auxialiary AAS, which is good.

When creating "compound" AASX for several AAS, it would be much faster, if a complete AASX can be imported into the editor from an AASX.

Incorrect XML De-/Serialization of more than one Qualifier

Incorrect XML De-/Serialization of Qualifiers for Version V2.0.1 of Metamodel.

Current behavior

Currently if I have more than one Qualifier it will be serialized like this:

<aas:qualifier>
  <aas:qualifier>
    <aas:type>test1</aas:type><aas:valueType>string</aas:valueType><aas:value>test1</aas:value>
  </aas:qualifier>
  <aas:qualifier>
    <aas:type>test2</aas:type><aas:valueType>string</aas:valueType><aas:value>test2</aas:value>
  </aas:qualifier>
</aas:qualifier>

Expected behavior

However I suppose that the correct serialization will be the following:

<aas:qualifier>
  <aas:qualifier>
    <aas:type>test1</aas:type><aas:valueType>string</aas:valueType><aas:value>test1</aas:value>
  </aas:qualifier>
</aas:qualifier>
<aas:qualifier>
  <aas:qualifier>
    <aas:type>test2</aas:type><aas:valueType>string</aas:valueType><aas:value>test2</aas:value>
  </aas:qualifier>
</aas:qualifier>

According to the Schema qualifiable does NOT have a complex type named "qualifier" similiar to list.
Instead it has multiple "qualifier" elements of type "constraint_t":

	<complexType name="qualifier_t">
		<sequence>
			<element maxOccurs="1" minOccurs="1" name="type" type="aas:qualifierType_t"/>
			<element maxOccurs="1" minOccurs="1" name="valueType" type="aas:dataTypeDef_t"/>
			<element maxOccurs="1" minOccurs="0" name="valueId" type="aas:reference_t"/>
			<element maxOccurs="1" minOccurs="0" name="value" type="aas:valueDataType_t"/>
			<group ref="aas:hasSemantics"/>
		</sequence>
	</complexType>
	...
	<complexType name="constraint_t">
		<choice>
			<element maxOccurs="1" minOccurs="0" name="formula" type="aas:formula_t"/>
			<element maxOccurs="1" minOccurs="0" name="qualifier" type="aas:qualifier_t"/>
		</choice>
	</complexType>
	...
	<group name="qualifiable">
		<sequence>
			<element maxOccurs="unbounded" minOccurs="0" name="qualifier" type="aas:constraint_t"/>
		</sequence>
	</group>

No copy window

User: JN

Steps to reproduce: loaded AAS & auxilliary AAS. Edit mode. Click "copy single entity"

Expected results: Copy window opens

Actual Results: Nothing plus error message

Message: Error While in user callback (modify repo lambda): Beim Festlegen der Eigenschaft "System.Windows.ResourceDictionary.DeferrableContent" wurde eine Ausnahme ausgelöst. Die Datei oder Assembly "PresentationFramework.Aero2, PublicKeyToken=31bf3856ad364e35" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. at .

Mouse DoubleClick opens "Show Content" automatically (if valid).

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Thumbnail shall be per AAS

Today the thumbnail is for the package, which is fine, if only 1 AAS is in the package.
But with several AAS each AAS shall have a thumbnail.
This is also implied by the graphical picture on the left and by the dynamic changing of AAS id and asset id, i.e. the picture shall also change accordingly.

Several AAS in a package

OPCUA Plugin 64 bit clash with 32 bit libuv dll

Situation:

I use the build191121 version and work on a 64 bit windows machine. The OPC-UA plugin requires the libuv dll. This dll appears to be available only in a 32 bit version. It looks like this results in a 32/64-bit mismatch, given the error code shown below.

How should I get around this? I browsed some stackoverflow, but all suggestion require changes to the actual C#-project, should they work. E.g.,

Expected results:
I expect the OPC-UA plugin to correctly start.

Actual Results:
When starting the OPC-UA Plugin the following error message is returned in the log:

[1] Could not load HTTPS Stack Listener. An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) AggregateException 'One or more errors occurred.' -

Can't delete thumbnail

When trying to delete the thumbnail under Supplementary Files and then saving the package it fails with an error:
Error When saving AASX, an error occurred: While write AASX C:\Users\hmrm\OneDrive - Festo\Documents\Verwaltungsschale\CP-AM-iDRILL2.aasx at \AssetAdministrationShellSDK.cs:line 2386 gave: Not able to delete pending file /thumbnail.jpg in saving package C:\Users\hmrm\OneDrive - Festo\Documents\Verwaltungsschale\CP-AM-iDRILL2.aasx at \AssetAdministrationShellSDK.cs:line 2459

To Reproduce

  1. Open ThumbnailBugRepro.zip
  2. Go to edit mode
  3. Delete Thumbnail
  4. Save package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.