Faqs
Can you import points from Microsoft Excel into CATIA?
Importing points from Excel to CATIA V5 allows users to efficiently create complex geometries, such as splines or lofted surfaces, by leveraging pre-defined coordinate data. This is particularly useful for applications like aerodynamics, structural design, or reverse engineering. To import points using the built-in macro functionality:
- Locate the macro file
- Navigate to the CATIA installation directory (e.g., C:Program FilesDassault SystemesB26win_b64codecommand).
- Find the file named GSD_PointSplineLoftFromExcel.xls.
- Open the macro file in Microsoft Excel
- Copy the file to a convenient location (e.g., your desktop) and open it in Excel.
- Enable macros by navigating to options > trust center > trust center settings > macro settings, and select enable all macros.
- Input coordinate data
- Populate the Sheet1 tab with your X, Y, and Z coordinates in the designated columns.
- Define start and end points for curves or lofts using fields like StartCurve and EndCurve.
- Run the macro
- Open CATIA V5 with a new or existing part file.
- In Excel, press Alt + F8 to open the macro menu.
- Select Feuil1.Main and click run.
- Choose an output option (e.g., 1 for points, 2 for splines, or 3 for lofts).
- Check your CATIA model
- The imported points, curves, or surfaces will appear in a new Geometrical Set within your part file.
- If you encounter errors like “object doesn’t support this property or method”
- Open the VBA editor in Excel (Alt + F11).
- Locate the line Set MyPart = CATIA.ActiveEditor.ActiveObject.
- Replace it with Set MyPart = CATIA.ActiveDocument.Part.
- Save and re-run the macro.
You can also use this method to create splines or lofted surfaces:
- Use multiple sets of points between StartCurve and EndCurve fields to generate splines.
- Combine splines into a lofted surface by specifying start and end loft fields.