I have tested this with my symbol for recessed lights. I vary the display for each of the MVO settings. I have made the fix entirely in the Master Script and remarked out the lookup that used to be in my 2d script.
!===========================
!Master Script
!===========================
! constant variables for "iSymbolType2D" These were the old values
PLANSYMB_REALISTIC = 1
PLANSYMB_ELECTRIC = 2
PLANSYMB_RCP = 3
PLANSYMB_BY_MVO = 4
! New MVO source constants (for reference/translation)
FIXTURESYMB_RCP = 1
FIXTURESYMB_ELECTRIC = 2
FIXTURESYMB_REALISTIC = 3
FIXTURESYMB_BYMVO = 100
! In 2D script — updated lookup block
if _byMVO = 1 then
_reqLampSymbolType = 0
_bSuccess = LIBRARYGLOBAL("Objects_MVOSettings", "iFixtureSymbol", _reqLampSymbolType)
if _bSuccess > 0 then
! Translate new MVO values back to your internal constants
if _reqLampSymbolType = FIXTURESYMB_REALISTIC then
_lampSymbolType = PLANSYMB_REALISTIC
endif
if _reqLampSymbolType = FIXTURESYMB_ELECTRIC then
_lampSymbolType = PLANSYMB_ELECTRIC
endif
if _reqLampSymbolType = FIXTURESYMB_RCP then
_lampSymbolType = PLANSYMB_RCP
endif
else
_lampSymbolType = PLANSYMB_ELECTRIC ! fallback unchanged
endif
endif
print _bSuccess
print _lampSymbolType
!========================================================
Now on to seeing if I can figure out custom doors and windows and how they display.
Operating system used: Windows 11
Many Thanks, JP
John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac