OpenKNX / Kaenx-Creator

Create your own KnxProd Files with UI.
MIT License
70 stars 20 forks source link

No root node in dynamic when creating empty project #45

Closed thelsing closed 1 month ago

thelsing commented 1 month ago

Describe the bug Dynamic is empty and there is no way to add something to it.

To Reproduce Steps to reproduce the behavior:

  1. create new empty project.
  2. go to Application->Dynamic
  3. See empty treeview

Expected behavior Rootnote in treeview.

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

image

Version is 1.8.4.

thewhobox commented 1 month ago

Hm i cant reproduce this issue. Both current github state and release 1.8.4 works fine on my computer.

I create an empty new project, select 07B0 as MaskVersion. The Dynamic Root gets created correctly.

You could try to workaround by editing the file by yourself: Dynamics": [ { "$type": "Kaenx.Creator.Models.Dynamic.DynamicMain, Kaenx.Creator.Share", "IsExpanded": true, "Name": "Root Knoten", "Items": [] } ],

Or create a minimal project. Delete everything you dont need and save this as a template.

thelsing commented 1 month ago

Save/restore fixed it for me too. For the reproduction I forgot to choose a Mask. Maybe a message "choose Mask-Type first" would help. Feel free to close this issue.

Some other small points I noticed:

You made really much progress in the time I didn't look at this project. There is no need to crack KNX-MT any more ;)

thewhobox commented 1 month ago

It should not ne possible to select the Application Tab if you have no Mask selected: image

The Mask Version sets also the LoadProcedure (Merge, Product or Mask) and other settings (memory segment relative or absolute, at least i thought it would set it at the beginning) i disabled it to change it. Maybe i will include this in another release :) For now you can change it by editing the file itself. The Mask is only a string in the ae-manu.

ComObject check and uncheck openknx are on my list now ;)

:D i still use the MT some times for checking the exported knxprod.

thelsing commented 1 month ago

Something else I just remembered: It would be nice if the Loadprocedure for ApplicationObject would be generated automatically. I guess most user don't know what they should add there. Of course they can just look at the minimal example to figure it out.

thelsing commented 1 month ago

You can reproduce my original problem if you create the minimal example. Got to App->Dynamic and the create a new empty project.