Ralph wrote:Yes, I have a publisher set selected. As I said, I also tried to print something after if(selected!=DG_TVI_NONE) and nothing print, so it didn’t even got something vaild into “selected” variable
Just to get the obvious out of the way first, do you have something relevant selected in the Navigator palette when you test this function?
Ralph wrote:Yea I also guess my approach was wrong.
I think that's likely to be the wrong approach. If I remember correctly, that example builds its own palette showing the navigator hierarchy, so the tree view and displayed items all belong to that add-on. I don't believe you can use that approach with palettes that belong to ARCHICAD, and I'm not aware of an API call to tell you which items are selected either. Possibly someone from GS might have a suggestion.
Mihály wrote:Yep, I now understand what it should do. Thanks!!
do you think
static void UpdateTree function in NavigatorPalette.cpp? If you do then this function update the tree in Navigator Test palette. You can see it by yourself:
I hope my answer is useful for you.
- Navigator Test's pop-up (at the top) set to
- Go to 'Project name'/Elevations in palette's tree
- Create an elevation in 2D view with Elevation Tool (it is in Toolbox)
- If you check the palette's tree you don't see the new elevation only if you click on Update button