본문 바로가기
  • Welcome!

VBA, VB.NET For Creo319

Display all dimension names and values ​​contained in a part file Importing dimensional information from your Creo model into Excel can help you increase the efficiency of your design process and create better designs.Provide visual information: Leverage Excel's chart and graph features to visually represent dimensional data and effectively communicate design information.Automate data extraction: Automatically extract dimensional information into Excel using C.. 2025. 3. 12.
How to display all model names in a session It connects to Creo and writes the names of the model files currently open in the session to an Excel sheet, displays the number of models in a message box, and performs appropriate exception handling when an error occurs, and disconnects after the task is completed to clean up resources. If there are no creo files in the Creo Session, the number of files is displayed as "0".▷CodeOption Explicit.. 2025. 3. 11.
Output the currently active 3D model name The name of the currently active Part file is displayed in the message window. The name of the currently active Aseebmbly file is displayed in the message window. (The drawing file name cannot be displayed in the message window.)To start the code, copy the starting Template code to create the code. VBA API . . ." to install.2. Setting up "pro_comm_msg.exe"Facilitates communication between the ex.. 2025. 3. 11.
Installation and setup for using Creo VBA 1. Creo VBA API installationSelect "API Toolkits > VBA API . . ." to install.2. Setting up "pro_comm_msg.exe"Facilitates communication between the executable xtop.exe and asynchronous Pro/TOOLKIT applicationsFor your application to communicate with Creo Parametric, you must set the PRO_COMM_MSG_EXE environment variable to the full path of the executable, pro_comm_msg.exe. Typically, the path to .. 2025. 3. 10.
IpfcSurface □ IpfcSurface 소개인터페이스는 표면의 평가, 측정, 그리고 표현에 관련된 다양한 기능들을 한데 모아 제공함으로써, CAD 및 3D 모델링 소프트웨어에서 복잡한 표면 데이터를 효과적으로 처리할 수 있도록 돕습니다. 이 인터페이스를 통해 사용자는 표면의 기하학적 특성을 정밀하게 분석하고, 필요한 변환이나 계산 작업을 수행할 수 있습니다.이 인터페이스는 IpfcModelItem의 하위 클래스이며, 여러 종류의 표면(예: 변환된 표면, 코언스 패치, 필렛 표면, 스플라인 표면, NURBS 표면 등)에서 공통적으로 사용되는 메서드와 속성을 제공합니다.▷Code : Surfcae ID, Surface AreaSub surface011() '// Creo Connection Call CreoV.. 2025. 2. 1.
Creo] IpfcModel □ 소개현재 세션(Session)에 존재하는 모델(Model)의 정보를 지정하는 클래스입니다.▷관련 클래스 및 메서드이 인터페이스는 다양한 모델 관련 작업을 수행할 때 사용됩니다. 관련된 주요 메서드는 다음과 같습니다:IpfcSolidIpfcModel2DIpfcBaseSession.ListModels() (세션에 있는 모델 목록 가져오기)IpfcBaseSession.RetrieveModel() (모델 불러오기)IpfcBaseSession.GetModel() (세션에서 특정 모델 가져오기)IpfcBaseSession.GetModelFromDescr() (모델 디스크립터를 통해 모델 가져오기)IpfcBaseSession.GetByRelationId() (관계 ID를 이용해 객체 가져오기)IpfcBaseSes.. 2025. 2. 1.
Creo] Get the dimensions that the model's features have □Get dimensions included in a featureGet Features from the model.Get the dimensions contained in a Feature.▷ Code:]After deploying the udf, you can modify the dimensions included in the feature.You can get the parameter names and values ​​included in the feature(Blog).When you deploy a udf, the user defined dimension names are automatically changed to the Creo system dimension names.You can get .. 2025. 1. 29.
Creo] Get drawing information - 작업중 □ Get drawing informationGet names of drawing viewsGet dimension names and values ​​placed in a drawing viewGet the dimensions typeGet the dimensions location informationGet tolerance values ​​for dimensionsGet the type of tolerance ▷ Code : Creo Connectivity ModuleOption ExplicitPublic asynconn As New pfcls.CCpfcAsyncConnectionPublic conn As pfcls.IpfcAsyncConnectionPublic BaseSession As pfcls... 2025. 1. 27.
CREO] Get selected Folder and file names Select a folder to get the selected folder and subfolder names.Enter a folder to retrieve the file names and information contained in the folder.Folder NameFile Name  □ Folder Name CodeSub GetFoldersList() Dim fso As Object Dim targetFolder As String Dim rowCounter As Long Dim ws As Worksheet ' 1. FolderList 시트 확인/생성 On Error Resume Next Set ws = ThisWorkbook.Sheets("Fol.. 2025. 1. 26.
Creo] Running Creo in the background Run Creo in the background.Use only Creo Foundation licensesUsed for converting Creo files.Option ExplicitSub ModelnameTable() On Error GoTo RunError Application.EnableEvents = False Dim asynconn As New pfcls.CCpfcAsyncConnection Dim conn As pfcls.IpfcAsyncConnection Dim CreoProgramName As String Dim BaseSession As pfcls.IpfcBaseSession Dim CreateModelDescriptor As New CCpfcMod.. 2025. 1. 25.
Template] Create a new model by changing the dimensions - 작업중 □ Key FeaturesRegistering a Template ModelRegister the dimension names you want to changeChange the model's dimension valuesSave with drawing as new model□ Template Data Management SheetEnter the template model locationEnter the template model nameEnter the dimension name you want to change□ User Template SheetEnter a new Part file nameEnter new dimension valueClick the save button1. Open Button.. 2025. 1. 22.
VB.NET] 2022버전 : 새로운 프로젝트 만들기 Visual Studio 2022 시작 화면은 개발자가 프로젝트를 빠르게 시작하고 관리할 수 있도록 도와주는 중요한 인터페이스입니다. 최근 작업한 프로젝트를 한눈에 확인하고, 새로운 프로젝트를 생성하거나 기존 프로젝트를 열 수 있는 기능을 제공합니다.1. 최근 파일 열기 (R)기능: 최근에 작업했던 프로젝트나 파일 목록을 보여줍니다.활용: 자주 사용하는 프로젝트를 빠르게 찾아서 열 수 있습니다.팁: 프로젝트 이름이나 파일 형식으로 검색하여 원하는 파일을 더욱 빠르게 찾을 수 있습니다.2. 리포지토리 복제 (C)기능: GitHub 또는 Azure DevOps와 같은 버전 관리 시스템에서 프로젝트를 복제하여 로컬 환경에서 작업할 수 있도록 합니다.활용: 팀 프로젝트에 참여하거나 오픈 소스 프로젝트를 가져와 .. 2025. 1. 21.
반응형