본문 바로가기
  • Welcome!

VBA, VB.NET For Creo321

깃 데스탑 설치와 사용 방법 Git을 통해 일반 문서를 버전 관리 할수 있습니다. Creo 파일도 가능 합니다. 하지만 Creo 파일는 부품, 어셈블리, 도면이 서로 연결되어 있습니다. Git은 Creo 파일의 특징인 파일간의 연결을 인식하지 못합니다. 다른 파일과 참조 관계 연결이 없는 단순한 Part만 관리 할수 있습니다. 페밀리 테이블 Part 파일은 연결 할수 있습니다. [Git] Github desktop 설치 및 사용법깃허브 데스크탑을 일 년 내내 사용했는데 편한 방식으로 정리해 두기로 했다 정석으로 더 잘 쓸 수 있는 방법이 있겠지만 우선 이 정도만 써도 프로젝트를 할 때는 문제가 없다 깃허브 데스크read-me.tistory.com 1. 비어있는 Local PC의 폴더를 생성 합니다. Creo의 작업 폴더를 정의 합니.. 2024. 10. 15.
Git Hub를 사용하기 □ 깃허브(GitHub)란? 깃허브(GitHub)는 마치 개발자들의 온라인 창고라고 생각하면 됩니다. 개발자들은 여기에서 자신들이 만든 프로그램의 코드를 안전하게 보관하고, 다른 사람들과 공유하며 함께 개발할 수 있습니다. □ 왜 깃허브(GitHub) 가 필요할까?코드 보관: 마치 컴퓨터의 하드디스크처럼, 개발된 코드를 안전하게 저장해두는 역할을 합니다. 만약 실수로 코드를 지워버리더라도, 깃허브에 저장된 코드를 다시 불러올 수 있습니다버전 관리:코드를 수정하면서 여러 개의 버전을 만들 수 있습니다. 이전 버전으로 돌아가거나, 특정 버전의 코드를 비교해보는 것도 가능합니다.협업:여러 명의 개발자들이 함께 하나의 프로젝트를 진행할 때, 각자의 코드를 합치고 수정하는 작업을 효율적으로 할 수 있도록 도와줍니.. 2024. 10. 15.
Get unit information from part file □ Unit information of the part fileGet the names of the Part files in the working folderDisplay the unit names of the Part files.Display the units of length, weight, time, and temperature.▷Program execution screen▷ "CreoConnt01" Program Option ExplicitPublic asynconn As New pfcls.CCpfcAsyncConnectionPublic conn As pfcls.IpfcAsyncConnectionPublic BaseSession As pfcls.IpfcBaseSessionPublic model A.. 2024. 10. 5.
Batch Convert DRW Files in a Colder to DWG □ Program Development Sequence (Creo 9.0)       1. Get all DRW file names in working folder       2. Save DRW file as DWG file       3. Display file conversion progress results □ Program Screen  ▷About Exporting Drawings to DXF or DWG Files PTC Help CenterYour browser has DOM storage disabled. Make sure DOM storage is enabled and try again.support.ptc.com The VBA API does not provide a DWG conve.. 2024. 10. 2.
CREO VBA API 란? Creo Parametric에서 제공하는 프로그래밍 인터페이스입니다. Creo 의 다양한 기능들을 Excel VBA와 같은 프로그래밍 언어를 통해 자동화하고 제어할 수 있도록 해주는 도구 입니다. □ Creo VBA API 필요성자동화: 반복적인 작업을 자동화하여 시간과 노력을 절약할 수 있습니다. 예를 들어, 모델의 특정 부분을 반복적으로 수정하거나, 많은 수의 모델에 동일한 작업을 적용하는 경우 VBA를 통해 자동화할 수 있습니다.맞춤형 기능 개발: CREO에서 기본적으로 제공하지 않는 기능을 직접 개발하여 활용할 수 있습니다.데이터 연동: Excel 등 다른 프로그램과의 데이터 연동을 통해 설계 데이터를 관리하고 분석할 수 있습니다.□ Class,  Property, sub, Function  In.. 2024. 10. 1.
Select a parameter to delete it from the model ▷ Reference Get the Parameter name of the model and delete it□ Code to get the model's ParameterGets the number of parameters the model has.Gets the parameters name that the model has.Gets the value of the parameters name that the model has.Gets the types of parameters that the model has.  □ Maitool-2020.tistory.com □ introductionSelect and retrieve the Parameter name from the Cell.The selected .. 2024. 9. 15.
Get the Parameter name of the model and delete it □ Code to get the model's ParameterGets the number of parameters the model has.Gets the parameters name that the model has.Gets the value of the parameters name that the model has.Gets the types of parameters that the model has.  □ Main CodeOption ExplicitSub GetParameter01() On Error GoTo RunError '// Module Name : CreoVBAStart Call CreoVBAStart.CreoConnt01 Dim ParameterOwner As.. 2024. 9. 14.
How to set up and configure modules to use the VBA API □ Modules for DevelopmentThis is a module for developing VBA programs. Use this to shorten your development time.▷ CREO Connection Procedure ▷Error message functionIf you know the error number, add it to CASE. ▷ Main ProgramUse by inserting it into WORKSHEET 2024. 9. 11.
Get the currently active model name Model names are imported from assemblies, parts, and drawings.An error occurs if there is no model that has been denatured.Creo and VBA connections use modules.Excel VBA has a concept called a module. A module is the basic unit that organizes a project in VBA. It is also expressed as a set of procedures. A procedure is a set of code to execute a specific function. ▷ CREO VBA Start module file lo.. 2024. 9. 9.
VBA : 변수 (Variable) □ 변수 (Variable) 개념변수는 마치 빈 상자와 같다고 생각하면 됩니다. 이 상자 안에 우리가 원하는 어떤 값 (숫자, 글자, 날짜 등)을 담아둘 수 있어요. 프로그램을 실행하면서 이 상자 안의 값이 바뀌기도 하고, 다른 상자의 값과 비교되기도 하면서 프로그램이 동작하게 됩니다.▷ 예제 : 숫자를 저장하는 변수: 학생의 나이를 저장하기 위해 "나이"라는 이름의 변수를 만들고, 여기에 20이라는 값을 넣을 수 있습니다.글자를 저장하는 변수: 학생의 이름을 저장하기 위해 "이름"이라는 변수를 만들고, 여기에 "홍길동"이라는 글자를 넣을 수 있습니다. ▷ 왜 변수가 필요할까요?데이터 저장: 프로그램에서 사용되는 다양한 값들을 변수에 저장하여 관리할 수 있습니다.계산: 변수에 저장된 값들을 이용하여 계산.. 2024. 9. 9.
VBA 서브 프로시저 (Sub Procedure) □ VBA Sub Procedure 사용을 위한 개발 환경 구성   □ VBA Sub ProcedureVBA(Visual Basic for Applications)의 서브 프로시저는 코드의 특정 작업을 수행하는 작은 프로그램 단위입니다. 서브 프로시저는 매개변수를 받을 수 있으며, 특정 동작을 반복적으로 사용할 때 코드를 재사용하기 위해 사용됩니다.서브 프로시저는 함수와 달리 값을 반환하지 않으며, 호출할 때 주로 특정 작업을 수행하고 끝납니다.서브 프로시저를 정의하는 방법은 다음과 같습니다.Sub 서브프로시저이름(매개변수 As 자료형, ...) ' 실행할 코드End Sub 서브 프로시저의 특징Sub 키워드를 사용하여 정의값을 반환하지 않음매개변수를 받을 수 있으며, ByRef(참조 전달) 또는 B.. 2024. 9. 8.
Change Creo Model and Get Volume Values (Creo 9.0) Change the dimensions of a Creo model in Excel.Use the promised dimension name.Get measured volume values ​​automatically calculated in Creo.  You can develop various template programs using the code below.▷Main CodeOption ExplicitSub Model02() On Error GoTo RunError '// Module Name : CreoVBAStart Call CreoVBAStart.CreoConnt01 Dim Solid As IpfcSolid Dim ModelItemOwner As IpfcM.. 2024. 9. 7.
반응형