setObjectDisplayMode not working with blocks

Hi,

I just found that setObjectDisplayMode does not work with blocks.

-Willem

Hi Willem,

Use UpdateDisplayMode instead of setObjectDisplaymode it will works on blocks…

Hi Sarath,

UpdateDisplayMode is an unknow command:

image

-Willem

Hi willem

Use this…

DisplayModeDescription.UpdateDisplayMode(DisplayModeDescription Displaymode);

Hi Sarath,

I’m talking about the command:

-Willem

Hi Willem,

Without exploding block objects you can’t change it displaymode

-Sarath.

Exactly, that is what I like to change

-Willem

Hi Willem - would you expect that to work per instance? If does work if you BlockEdit and set the objects’ modes but I guess that is not what you’re after, correct?

-Pascal

Hi Pascal,

Indeed, I expected it to work on the instance.

I don’t see much use if I would need to go in blockedit mode to set the displaymode, imagine how that would be with linked blocks!

Thanks
-Willem

Yep, got that…

https://mcneel.myjetbrains.com/youtrack/issue/RH-40614

thanks,

-Pascal