Fast Ref / API Reference / Core

reload_all_references()

모든 레퍼런스를 소스 파일에서 다시 로드합니다. "converted" 또는 "missing" 상태의 레퍼런스는 자동으로 건너뜁니다.

시그니처

api.reload_all_references() -> dict

반환값

{
    "success": bool,
    "message": str,
    "success_count": int,
    "failed_count": int,
    "skipped_count": int,
}

예제

import sys, os, pymxs
_p = os.path.join(pymxs.runtime.getDir(pymxs.runtime.Name("userScripts")), "os_fast_ref_package")
if _p not in sys.path: sys.path.append(_p)

from os_fast_ref.api import FastRefAPI

api = FastRefAPI()
result = api.reload_all_references()

print(result['message'])
# → "Reload 완료: 3개 성공, 0개 실패, 1개 건너뜀"

활용 예 — 변경된 경우에만 리로드

import sys, os, pymxs
_p = os.path.join(pymxs.runtime.getDir(pymxs.runtime.Name("userScripts")), "os_fast_ref_package")
if _p not in sys.path: sys.path.append(_p)

from os_fast_ref.api import FastRefAPI

api = FastRefAPI()
status = api.check_file_status()

if any(s['status'] == 'outdated' for s in status['data']):
    result = api.reload_all_references()
    print(f"리로드: {result['success_count']}개 성공, {result['failed_count']}개 실패")
💬

Need help with the API?

Open a support ticket or join the community discussion.

Contact Support