Skip to content

Instantly share code, notes, and snippets.

@jagaudin
Created September 8, 2023 12:30
Show Gist options
  • Save jagaudin/0d57fd4433f99a5cf646a0521a91a35b to your computer and use it in GitHub Desktop.
Save jagaudin/0d57fd4433f99a5cf646a0521a91a35b to your computer and use it in GitHub Desktop.
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