Typo in in Rhino.Display.DisplayModeDescription.DeleteDiplayMode

Hi Willem - good catch.
It actually works with the typo. I guess fixing it now could potentially mess up any code written to-date :slight_smile:

Caught it while trying to find a solution to your issue in the other topic.
I guess there will be a need to keep this typo method working and implement a copy of the method with the correct naming. But the developers will know how to solve this best.

Still not found a solution for the display mode ‘purging’ issue

Thanks, I figured! For a second I hoped the problem was that typo… but no.

I used to go about duplicating display modes via RhinoScript: exporting to .ini file, editing name and GUIDs there, and re-importing. There was no issue as I have with Python, all worked OK except it was a bit slower since the file export/import. When processing many modes Python speed gain would be great, if only I could solve the “purge” issue.

Hi @Willem and @Jarek
have you guys found a way to purge duplicate display modes?
My Rhino has ended up with some duplicates that I can not get rid of manually:

See the result if I run this:

import rhinoscriptsyntax as rs

displaymodes = rs.ViewDisplayModes()
for displaymode in displaymodes:
    print displaymode
    print rs.ViewDisplayModeId(displaymode)

Wireframe
1311adcb-d89e-4051-a3f0-f64441fb8ec6
HM2_V6_Wire
16a89a26-00cd-4310-ac30-db4a75afb311
Shaded
8bc8debe-c83b-4c47-b13c-9db074510cac
Shaded
8bc8debe-c83b-4c47-b13c-9db074510cac
HM2_V6_Shaded
4df38d25-7345-44be-b5ab-e653c422389f
Rendered
96354cb5-d121-43d5-9a9d-e6415b3a78d7
Rendered
96354cb5-d121-43d5-9a9d-e6415b3a78d7
HM2_V6_Render
e3c8669e-a086-457a-a158-3d8911b71dc5
Ghosted
ff608b97-81d3-4186-831c-41f7dc140881
X-Ray
b5c19d5d-0aec-4ff7-a10e-e052e660263a
Technical
63612c72-778f-4afd-b81b-17426fdfe8a6
Artistic
b46ab226-05a0-4568-b454-4b1ab721c675
Pen
f4616fa5-a831-4620-a97e-9b807d5ec376
Arctic
c32b72c3-41bd-4adc-82a8-b7aef4456a37
Arctic
c32b72c3-41bd-4adc-82a8-b7aef4456a37
Raytraced
69e0c7a5-1c6a-46c8-b98b-8779686cd181
Rendered NO curves
61a5f7b9-cae5-4113-8bf6-c0d177850db6
2D CELL SHADER
5d2f5bb1-97f7-4996-99a1-3b2b1a1544e2
Conceptual
3a18177f-0998-44ea-b437-b306e4bdb2ab
HM2_V6_Illustration
aca90900-678f-442c-a90b-58d0eb03b81e
Hidden
65b9bbff-039b-4a15-a5c0-52859da26720
Realistic
549145c2-6846-473c-9c75-875bdea75a4c
Shaded
8bc8debe-c83b-4c47-b13c-9db074510cac

Edit: I managed to purge it by deleting every display mode in my list that I could delete and restart, did that a few times!
(Conceptual, Hidden and Realistic could not be deleted, they are part of Lands)

Hi @Holo

No, I cannot remember if I got anything working.
…it’s been a while … :wink:

In any case good luck!
-Willem

1 Like