Code Monkey home page Code Monkey logo

Comments (10)

oroulet avatar oroulet commented on July 19, 2024

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.

zerox1212 avatar zerox1212 commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

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.

Pro avatar Pro commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

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.

Pro avatar Pro commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

MinimumSamplingTime seems to be specificified only sometimes.... and 0 and -1 are also possible values... which one is the default....

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

Added draft UI in master: 8d80dad

Comments welcome
Not possible to save ref nodeset yet

from opcua-modeler.

Pro avatar Pro commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

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)

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.