Creating Points using Excel in CATIA V5

September 24, 2018 Mark Potrzebowski

By Mark Potrzebowski

If you have ever tried to place more than 1 point using the coordinate option in CATIA, it becomes apparent very quickly that it can be a very tedious task. Often, users trying to create surfaces need to be able to place points for their curves to be placed on. Having to type in an X, Y, and Z coordinate for each and every point for more than just a couple of points at a time will take forever. If the goal is to create an array of points to create curves to pass through, there is a “Hidden” function that can speed up the job for us.

When CATIA is installed, buried within its install directory is an Excel file whose purpose is to help streamline the process of placing points into CATIA. The name of this file is GSD_PointsSplineLoftFromExcel.xls and inside this file are Macros to allow users these 3 options:

  1. Create as many points as they want by just typing out X,Y and Z coordinates into formatted Excel columns.
  2. After the points are created you are given the option to create Splines that pass through those points in the order they were created.
  3. If more than one Spline was created, the user can decide if they want a Multi Section Surface to be built, blending all of the curves together.

All these choices are made and implemented using the Excel file.

Let me step you through the process. Or if you'd prefer to watch a demo of this, view my video here explaining the process.

1. The first and hardest step in this process is just finding the Excel file. CATIA can be custom installed and it can change the location of where some files show up. However, if CATIA was installed with the default directory you will be able to find the file by navigating through the path below.

C:\Program Files\Dassault Systemes\B25\win_b64\code\command

B25 is the build or version of CATIA that is installed so yours may differ depending on the revision of CATIA you are working with.


2. Within the command folder you will be able to find the Excel file called GSD_PointsSplineLoftFromExcel.xls. Double click on it to open the file.

Points-1

 

3. When open, the security settings in Excel will tell you that macros have been disabled. To use this function, you will need to click on the Enable Content button to allow the macros to work.

Points-2

4. The formatting of the Excel file is very important. By default, the document is setup to crate 3 different splines using 4 to 5 points each. We are able to edit this file by editing this information.

Points-3

 

5. Spline 1 is displayed as the yellow box for clarification. All of the rows between the StartCurve and EndCurve represent the points being used to build that curve. By inserting more rows, you will be able to add more points to the spline.

Points-4


6. The columns are organized by X, Y and Z coordinates. Edit these values to be able to create your own custom points.

7. The StartLoft and EndLoft rows collect all of the Splines that will be used to create the Multi Section Surface if you chose to create one.
Points-5


8. Before being able to run this Macros inside GSD_PointsSplineLoftFromExcel.xls, you will need to have CATIA running and have the part file open that you want to place this geometry into. Trying to run the macros and not having the CATIA file ready to go will cause Excel to prompt the user with error messages.

Points-6

9. Now we are ready to run the macros. At the top of the Excel window select the View, then select the Macros button.

Points-7

10. When the Macros window appears, you will see 4 different macros to choose from. The Main macro will control all 3 of the other macros through its options. Select Main and Click Run.
Points-8

11. The User Info window comes up giving the user the ability to choose 1, 2 or 3. Typing 1 and clicking OK will just create all the points in the Excel list. Typing 2 would create the points and create splines through those points based on how it is laid out. Typing 3 would create the Points, Lines and a Multi Section Surface out of those Splines. Once you select 'OK' the macro will run in the background and you will be able to view the results within the CATIA part file.
Points-9


Example of (1) Points

Points-10


Example of (2) Points and Splines
Points-11



Example of (3) Points, Splines, and Multi Section Surface.

Points-12

 

To hear more CATIA tips and tricks, take one of our training classes! This tip is covered in the Rand 3D class: CATIA V5: Advanced Surface Design.
www.Rand3D.com 

 

 

About the Author

Mark Potrzebowski

Technical Training Engineer <br><br>Mark’s primary responsibilities include instructing software classes in CATIA, Smarteam, ENOVIA, Creo Parametric, and Autodesk Inventor. Receiving a B.Sc. in Computer Graphics from Purdue University with a focus in Product Lifecycle Management (PLM), he is a Dassault Systèmes Certified instructor working with a variety of different workbenches in CATIA that include Part Design, Surfacing, Drafting, Sheet Metal Design, Assembly Design, Kinematics (KIN), Generative Structural Analysis (GSA), and Electrical Harness Design.

Follow on Linkedin More Content by Mark Potrzebowski
Previous Article
Tips for Implementing MBD with Creo Parametric
Tips for Implementing MBD with Creo Parametric

You can loosely define MBD as the integration of Product and Manufacturing Information (PMI), which can inc...

Next Article
Exporting STEP & IGES files in CATIA V5
Exporting STEP & IGES files in CATIA V5

By Scott Henderson Have you ever needed to translate your CATIA files to another program? STEP and IGES are...