본문 바로가기
  • 환영 합니다 ! Welcome!
VBA For Creo

Windchill에서 REST API의 빠른 테스트를 위해 객체 ID를 얻는 방법

by ToolBOX01 2024. 6. 28.
반응형

REST API를 빠르게 테스트하기 위해 객체 ID를 쉽게 얻는 방법

예) REST API를 빠르게 테스트하기 위해 객체 ID를 쉽게 얻는 방법 

GET /Parts( '{PartId}') 
GET /ChangeTasks( '{ChangeTaskId}')/ChangeNotice

다음과 같은 방법으로 객체 아이디 (oid - object ID )를 가져 옵니다

1. 객체의 세부정보 페이지로 이동하여 예를 들어 WTPart에 대한 URL의 oid 값을 가져옵니다.
예제) 
http://<호스트 이름>/Windchill/app/#ptc1/tcomp/infoPage?ContainerOid=OR%3Awt.pdmlink.PDMLinkProduct%3A115304&oid= OR%3Awt.part.WTPart%3A514559 &u8=1

2. %3A를 다음으로 변환 : , 사용할 ID 값은  "OR:wt.part.WTPart:514559" 입니다.

 

참고 문서

 

CS112668 - Object Reference APIs in Windchill

Article - CS112668 Object Reference APIs in Windchill Modified: 20-Dec-2023    Applies To Windchill PDMLink 9.1 F000 to 12.1 Description Object References and APIs related to themGetting the Windchill object handle using its reference stringInitializing

www.ptc.com