본문 바로가기
  • Welcome!

VBA, VB.NET For Creo316

모든 치수 이름과 값 표시하기 보호되어 있는 글 입니다. 2020. 12. 25.
VB API Fundamentals - Feature LIST Feature LIST VBA Excel Program Part 파일의 모든 Feature들의 타입 이름을 List로 만들어 주는 프로그램. frature 번호, 타입, 상태를 알수 있다. A program that makes the type names of all the features in the part file into a list. The fracture number, type, and condition are known. Source code Sub feature_Nanme() Dim asynconn As New pfcls.CCpfcAsyncConnection Dim conn As pfcls.IpfcAsyncConnection Dim session As pfcls.IpfcBaseSession .. 2020. 12. 23.
VB API Fundamentals -- VBA 예제 (1) Session 파일 LIST 보호되어 있는 글 입니다. 2020. 12. 20.
파일에서 Dimension 값 가져오는 프로그램 Part의 치수값 가져오기. 어셈블의 치수 값 가져오기. 아래와 같은 구조의 객체 변수들을 사용한다. 모델 ▶ 솔리드 ▶ 모델 아이뎀 ▶ Dimension 순서로 이름 및 값을 가져 올수 있다. ▶ Interface IpfcModel 이 클래스는 현재 세션에있는 모델에 대한 정보를 지정합니다. ▶ Interface ipfcsolid 이 클래스는 솔리드를 정의합니다. ▶ Interface IpfcModelItemOwner 모델 항목이 연결된 개체의 기본 클래스입니다. ▶ Interface IpfcBaseDimension 이 클래스는 Dimension 또는 참조 Dimension이 될 수있는 기본 Dimension을 정의합니다. 치수 이름이 "KOREA1"이 있으면 엑셀 파일에 치수 값을 표시하고, 없으면 .. 2020. 12. 18.
VB API Fundamentals -- VBA 예제 (4) File Open This is the code to open a model with the Creo file name in the current working folder.Option ExplicitDim asynconn As New pfcls.CCpfcAsyncConnectionDim conn As pfcls.IpfcAsyncConnectionDim oBaseSession As pfcls.IpfcBaseSessionDim oModel As pfcls.IpfcModelDim ws as WorksheetDim oModelDescriptorCreate As New CCpfcModelDescriptorDim oModelDescriptor As IpfcModelDescriptorDim oSession As IpfcSession.. 2020. 12. 16.
VB API Fundamentals -- VBA 예제 (3) PART-LIST 보호되어 있는 글 입니다. 2020. 12. 14.
4-2 # Parameter : Part 파일의 모든 매개변수, Type, Value 표시 하기 보호되어 있는 글 입니다. 2020. 12. 11.
4-4 # Parameter : 매개변수 읽고, 쓰기 기능 : 매개변수 읽고, 쓰기 1) 재생성 2) SAVE 3) SAVE AS 기능은 없습니다. 새로 고침 버튼 클릭 Sub box_model() Dim asynconn As New pfcls.CCpfcAsyncConnection Dim conn As pfcls.IpfcAsyncConnection Dim session As pfcls.IpfcBaseSession Dim Model As pfcls.IpfcModel Set conn = asynconn.Connect("", "", ".", 5) Set session = conn.session Set Model = session.CurrentModel Range("H5").Value = Model.Filename Dim Powner As pfcls.IpfcPar.. 2020. 12. 10.
4-3 # Parameter : PART_NO 매개 변수 값 불러오기 보호되어 있는 글 입니다. 2020. 12. 9.
Part list - 작업 중 보호되어 있는 글 입니다. 2020. 12. 9.
예제 코드) 활성화된 Session 파일 명 모델 타입 표시하기 □ File 정보 활성화된 Part, Assembly 파일 이름, 타입 표시하기 (Fammily Table Part, Assembly 모두 표시 가능) 실행 동영상 ▷ 코드 Sub session_model() Dim asynconn As New pfcls.CCpfcAsyncConnection Dim conn As pfcls.IpfcAsyncConnection Dim oBaseSession As pfcls.IpfcBaseSession Dim oModel As pfcls.IpfcModel Dim Session_Model As Long Set conn = asynconn.Connect("", "", ".", 5) Set oBaseSession = conn.session Set oModel = session.G.. 2020. 12. 6.
예제 코드 ) 어셈블리의 부품 리스트 - by PTC 보호되어 있는 글 입니다. 2020. 12. 2.
반응형