05-04-2023, 05:59 PM
Code:
import sys
import subprocess
from robodk.robolink import Robolink, PATH_OPENSTATION, FILE_OPENSTATION
subprocess.check_call([sys.executable, "-m", "pip", "show", "robodk"])
rdk_path = '/Users/brandon/Documents/mecaStation12.rdk'
RDK = Robolink()
print(f'1: "{RDK.getParam(PATH_OPENSTATION)}"')
print(f'2: "{RDK.getParam(FILE_OPENSTATION)}"')
RDK.AddFile(rdk_path)
print(f'3: "{RDK.getParam(PATH_OPENSTATION)}"')
print(f'4: "{RDK.getParam(FILE_OPENSTATION)}"')
Quote:Name: robodkOutput 3 should be a full path to the rdk file, not to the containing folder
Version: 5.5.5
Starting RoboDK v 5.5.3 . 23011 ...
OS: MAC64
Date build: Dec 22 2022
1: ""
2: ""
3: "/Users/brandon/Documents"
4: "/Users/brandon/Documents/mecaStation12.rdk"
Output 4 should be a file name, not a full path