Comments (10)
It is currently not, but as you might have already noticed the code of opcua-modeller is very short, most of it is just ui stuff, so it is easy to add features.
Currently when importing an xml we flag them as new nodes. Internally we simply need to make the flagging optional.
The main issue is to decide on a good UI for defining "base" xml files. We can just put this in settings, but maybe you have a better proposition
there is also an issue with the "save" format. Currently we dot have our own format, we simply use the xml spec format. so we need to check if the "basis" reference xml can be saved in the xml format. I would like to avoid having to define our own "save" format
from opcua-modeler.
It would be nice if you could help with features like this. I don't have enough experience with OPC UA to fully understand how to use multiple models.
from opcua-modeler.
thinking about it I thing we could have another widget on top of the namespace widget. that allows to import reference xml files.
Then we need a way to define referenced xml in xml format from opc foundation. Any suggestions @Pro ?
from opcua-modeler.
I think the additional widget for referencing other base xml files would be the best option. This referenced xml file can then be handled the same way as you currently handle the main OPC UA xml (i.e., don't export it's nodes).
I think the easiest way to do this is if some of you adds this widget and I'll test it then. Just create a new feature branch and we can work there.
from opcua-modeler.
but when opening again a file create with a special referenced XML, a user would expect that the referenced file is also opened in the background, so one way or another we need a link to the referenced file in the generated xml... or use our own file format.... I would like to avoid the later.
btw @Pro Do you know where default values of attributes like MinimumSamplingTime interval is defined? could not find it in spec...
from opcua-modeler.
The only clean way is to create a simple project file format for the modeller (e.g. QSettings format) which contains these settings.
Adding custom data to the generated XML isn't allowed because then it doesn't conform to the linked .xsd file and thus the generated XML file isn't valid.
Hmm, isn't the MinimumSamplingTime dependend on the SDK? Just a guess...
from opcua-modeler.
MinimumSamplingTime seems to be specificified only sometimes.... and 0 and -1 are also possible values... which one is the default....
from opcua-modeler.
Added draft UI in master: 8d80dad
Comments welcome
Not possible to save ref nodeset yet
from opcua-modeler.
Can you set a minimum height for the widgets. Because I opened the gui and the TreeView was hidden. I had to move the splitter up. New user's won't find it.
from opcua-modeler.
it will be visible for new users, it was your saved eometry state that hidded it. But yes . minimum size is a good idea.
from opcua-modeler.
Related Issues (20)
- Can't import S7-1500 XML HOT 5
- Possible to add object array to a Object Type? HOT 1
- Pull Properties from TypeDefinition HOT 3
- List Index out of Range HOT 1
- Cannot load MachineVision Specification nodeset
- TypeError: hasattr(): attribute name must be string HOT 3
- enumeration HOT 4
- Installation on Windows 10
- SyncNode' object has no attribute 'get_attributes' HOT 5
- --
- ImportError: cannot import name 'type_string_from_type' from 'asyncua.ua.uatypes
- XML Parsing Error HOT 1
- AttributeError: 'Node' object has no attribute 'read_attributes' HOT 6
- TypeError: __init__() got an unexpected keyword argument 'namespaceidx' HOT 4
- opcua-modeler==0.5.12 incompatible with python-opcua==0.98.13 HOT 7
- Impossible to load default schema `Opc.Ua.Di.NodeSet2.xml` HOT 1
- Unable to save model HOT 2
- unable to install
- can not load custom structure in own code HOT 1
- pip install error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opcua-modeler.