Bentley Resistance Object Absent in MATLAB

I am trying to automate resistance calculation (BentleyResistance) via MATLAB. My code is as follows-
In line 17, there should be the option to choose methods required for resistance calculation (screenshot from HullSpeed Object Library is attached).
In MATLAB, I can only fine "SlenderBodyOnePlusK" and the other three i.e. "IsSelected", "Select", "SelectAll" are absent. How do I get this? Or what is the way to choose the desired method here?
Parents
  • hi -- Make sure that you have the correct version of MAXSURFresistance.exe registered as the COM server and also that its properly connected to MATLAB. I have not used MATLAB so am not sure how you do that (in Excel / MS Office you need to go to the Tools menu in the VBA editor, References, then select the correct executable).

    Note also that sometimes it needs some fiddling to get communication between 32 and 64 bit applications (is your version of MATLAB 32 bit?)

    this document expalins in more detail, but the main steps are outlined below

    MAXSURF Automation COM Troubleshooting - MAXSURF | MOSES | SACS - Wiki - MAXSURF | MOSES | SACS - Bentley Communities

    So yo ensure the correct version of MAXSURFresistance is registered, open a command prompt with admin rights and go to your installation folder. The type 'MAXSURFresistance.exe /reg' and check the message comes back as follows:

    Then in Excel (or equivalent in MATLAB) go to the VBA editor, Tool | References and brows/select the MAXSURFresistance.exe you just registered:

    you should then be able to go to the object browser and see the different methods

    there should be a similar process / steps in MATALB I would Imagine

    cheers,

    Pat

Reply
  • hi -- Make sure that you have the correct version of MAXSURFresistance.exe registered as the COM server and also that its properly connected to MATLAB. I have not used MATLAB so am not sure how you do that (in Excel / MS Office you need to go to the Tools menu in the VBA editor, References, then select the correct executable).

    Note also that sometimes it needs some fiddling to get communication between 32 and 64 bit applications (is your version of MATLAB 32 bit?)

    this document expalins in more detail, but the main steps are outlined below

    MAXSURF Automation COM Troubleshooting - MAXSURF | MOSES | SACS - Wiki - MAXSURF | MOSES | SACS - Bentley Communities

    So yo ensure the correct version of MAXSURFresistance is registered, open a command prompt with admin rights and go to your installation folder. The type 'MAXSURFresistance.exe /reg' and check the message comes back as follows:

    Then in Excel (or equivalent in MATLAB) go to the VBA editor, Tool | References and brows/select the MAXSURFresistance.exe you just registered:

    you should then be able to go to the object browser and see the different methods

    there should be a similar process / steps in MATALB I would Imagine

    cheers,

    Pat

Children