cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
jp
Booster

29 MVO display for custom Doors and Windows.

I mostly have a fix for proper MVO display for Doors and Windows.  There is an error someplace in the Graphisoft system that returns the exact same value for Full, and Simplified with sash.  Both return 6, but Simplified with sash should return 8 and full should return 6.   The values are set correctly in their object DWS_MMVOSettings_USA.gsm but it is not transmitting properly.

You will need to select your translations for the old Detailed, Medium, and Simple.   Below are the codes and the correct lookup.   I translate to my needs rather than rewriting all the code at this point for the new options.  If you put a line in your master script: !DWS_MVOSettings_USA then highlight and click on the </> icon to open the object, you can test various options and then look back at the parameter list to see the number that is set.

 

! iDWDet2D, MVODetlevel2D
WIN2D_1LIN                  = 1
WIN2D_2LIN                  = 2
WIN2D_2LINFRAMES            = 3
WIN2D_GLASS1LIN_NOSASH      = 4
WIN2D_GLASS1LIN_SASH_NOACC  = 8
WIN2D_GLASS1LIN_SASH        = 5
WIN2D_GLASS1LIN_REBATE      = 6
WIN2D_GLASS2LIN_REBATE      = 7

if P_Det_Level = "by MVO" then
    MVO_2DDetail = 0
    _bSuccess = LIBRARYGLOBAL("DWS_MVOSettings_USA", "iDoor2DDetlevel", MVO_2DDetail)
    if _bSuccess > 0 then
        if MVO_2DDetail = 11 then
            Det_Level = "Detailed"
            No_Trim = 0
        endif
        if MVO_2DDetail = 10 then
            Det_Level = "Detailed"  !my medium
            No_Trim = 1
        endif
        if MVO_2DDetail = 9 or MVO_2DDetail = 1 then
            Det_Level = "Simple"
            No_Trim = 0
        endif
    else
        Det_Level = "Simple"
        No_Trim = 0
    endif
endif
 
For windows, which are not completely functional as described above, the lookup is similar, but a different parameter is checked.  
 
if P_Det_Level = "by MVO" then
    MVO_2DDetail = 0
    _bSuccess = LIBRARYGLOBAL("DWS_MVOSettings_USA", "iWindow2DDetlevel", MVO_2DDetail)
    if _bSuccess > 0 then
        if MVO_2DDetail = 6 then
            Det_Level = "Detailed"
            No_Trim = 0
        endif
        if MVO_2DDetail = 8 then
            Det_Level = "Detailed"  !my medium
            No_Trim = 1
        endif
        if MVO_2DDetail = 1 then
            Det_Level = "Simple"
            No_Trim = 0
        endif
    else
        Det_Level = "Simple"
        No_Trim = 0
    endif
endif
 
I hope this helps.   Grapisoft, please update your documentation immediately (you have had a year) and also fix the window error.

 

Operating system used: Windows 11

Many Thanks, JP

John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac
2 Replies 2
Gabriel Barzon
Contributor

Hi @jp, based in this post I was wondering, have you managed to make the OpeningLines macro work? If so, can you shed some light on how? I got in touch with @vdentello last year about this problem and we still haven't found a solution. I'll leave the link below to the community post where we started the discussion, if you could check it out when you have the chance.
https://community.graphisoft.com/t5/GDL/Archicad-28-OpeningLines-Macro/m-p/670185#M7859

 

Thanks!

jp
Booster

Hi Gabriel,

 

I was typing a reply to you in the app and then all my typing disappeared and I could not get it back.  So here I go again.  I have not tried to get the opening lines in 3d yet, but you can apply my process to get what you need.   Your syntax is incorrect as you need to replace requestValue with the name of your local variable that will carry the value you get from this lookup.  

 

success = LIBRARYGLOBAL ("DW_MVOSettings", "iDW3DLineOrient", requestValue)

 

Below are my lookups to get the plan settings of the opening lines

 

success = LIBRARYGLOBAL ("DWS_MVOSettings_USA", "penDoor2DOpLine", pen_mvo_arc)
success = LIBRARYGLOBAL ("DWS_MVOSettings_USA", "lineTypeDoor2DOpLine", LT_mvo_arc)

 

pen_mvo_arc and LT_mvo_arc are my local variables assigned to the lookup of the parameter in DWS_MVOSettings_USA.  In your script, if you highlight DWS_MVOSettings_USA and then click on the </> icon in the top ribbon of the gdl editor, it will open this object and you can see all the parameter names to make sure you are looking up the correct one.  You can even look at the interface script and preview it so you better figure out the parameters it is using.

 

I  do not see a pen assignment for the 3d swing line, so It may use the same pen as the plan.  There are two parameters for the linetypes however, iDWS3DOpeningSideOpLineType and iDWS3DOpeningSideOpLineType.  The way the lines are drawn are a bit more complicated since it is based on a picture that is clicked.   But there are only a few values for each so it's not too bad.  The parameters to lookup are iDWS3DLineOrient and iDW3DArrowOrient I think.  Once you open the object, you can get a lot of info.

 

I hope this helps!,

 

JP

Many Thanks, JP

John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!