Created
September 8, 2023 12:30
-
-
Save jagaudin/0d57fd4433f99a5cf646a0521a91a35b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
rsa_lib_path = ( | |
r'C:\Program Files\Autodesk\Robot Structural Analysis Professional 2023' | |
r'\Exe\Interop.RobotOM.dll' | |
) | |
clr.AddReference(rsa_lib_path) | |
clr.setPreload(True) # Preloading the namespace | |
import RobotOM | |
try: | |
assert('Create' in dir(RobotOM.IRobotLoadRecordMngr)) | |
print("IRobotLoadRecordMngr has a method 'Create'.") | |
except AssertionError: | |
print("WARNING: Method 'Create' of IRobotLoadRecordMngr is missing.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment