CATIA V5: Creating Drawings from CGRs

March 1, 2021 Scott Henderson

In this post, we’ll look at how to create drawing views from lightweight CATIA files.

See Gee Are What?

The CATIA Graphics Representation (CGR from here on out) is a lightweight file format for CATIA. In general, the outside “skin” of a CATPart is tessellated and saved, leaving only the shape data behind. This is great for visualization – file sizes are way smaller and it’s easy to work with big assemblies without a huge performance hit. Of course, there are some trade-offs: Namely, all the part feature data is gone. Anything that needs “real” geometry is not going to be happy with a CGR.

 

Problems in Lightweight Land

Now and then, for whatever reason, there is no CATPart file to work with and you’re stuck with a CGR. Assembly constraints generally won’t work. Changing the shape data isn’t completely impossible, but for all intents and purposes, it’s not something that can be done. Drawings… generally do not want to cooperate with CGRs. (At least, not without a little push.)

In the image below, I’ve got a part that has been saved as a CGR. CGRs can’t be opened directly, so I’ve got this one in an assembly, where they’re typically encountered.

Hovering over various surfaces of this part causes a lot of triangles to be visible. This is one of the key giveaways that we’re working with CGR data.

Attempting to expand the CGR tree does nothing. Check out the icon for the CGR. It doesn’t have a sheet of paper behind it like part and assembly do.

Now, heading to the Drafting workbench and creating an automatic drawing with all views yields the error below:

While the message gives some advice, none if it is actually the solution to this issue. Okaying that box does not leave much of anything to work with. There’s an empty sheet and little else.

 

View Modes

To get a drawing view from a CGR, head to Tools > Options > Mechanical Design > Drafting> View and set the “View generation mode” to “CGR.”

 

This will allow CATIA to generate drawing views from CGRs. No more errors and now there are views to work with. Great! That is, with a few caveats. 

Views from CGRs aren’t nearly as flexible as Exact views from parts. Most of the dress-up options are not available, dimensions may be inaccurate, and some irregularities in the geometry may appear.

A Hybrid Approach

Sometimes you’ll find large assemblies have been built with a combination of CGRs and CATParts. Maybe most of the parts have been simplified to CGRs to help keep the file size down and keep the big assembly manageable. A few files might still be CATParts that contain important wireframe data or maybe even Functional Tolerancing & Annotation Data.

These will be a little bit easier to work with.

In the pictures above and below, I’ve got the same assembly as before, but this time it has a Reference Data part that contains a wireframe point and a surface.

Using the default CATIA settings (Exact view mode), I’m able to generate a drawing. However, there’s not much to display – only the exact Fill.1 surface shows up. The good news, though, is that there are drawing views to work with.

Instead of digging through Tools > Options, right-click the drawing view(s), head to the Views tab, and adjust the View Generation Mode.

Set it to CGR and the rest of the view becomes available.

Best of Both Worlds?

Trying to maximize the benefits of each view style? It’s possible to generate two views – one with CGR mode and one with exact mode, then stack them on top of each other.

This time around, I’ve built an exact view at first. Only the wireframe geometry is showing.

A second time around, I’ve built the same view again, but switched it to CGR mode. If I try to add dimensions to the surface in the CGR view, the results are not correct. Instead of a radius dimension, it’s only displaying a fragment of the arc on the right.

But, dimensions work completely as intended in the Exact view generated from the CATIA Part.

To align these views, they need to be Superposed on top of each other. Right-click the view that needs to be moved, then pick View Positioning > Superpose. Tap the outline of the other view and they should line up.

Not Perfection

In a perfect world, all drawings would be built from CATParts and there would be no performance issues to worry about and everything would work as intended all the time. Of course, things aren’t like that, so sometimes CGRs are the answer. We’ve seen some of the caveats of working with CGRs as they pertain to drawings, but we also have seen that is indeed possible to successfully create drawings from CGRs, and that there are solutions available so that we can work with them when needed.

 

About the Author

Scott Henderson

Technical Training Engineer<br><br>Scott Henderson is a Dassault Systèmes Certified Instructor. With expertise in CATIA, DELMIA, and ENOVIA, he has been leading training classes and providing on-site customer support since 2006, focusing primarily in the Automotive industry.

Visit Website More Content by Scott Henderson
Previous Article
CATIA V5: How to Control Video File Size
CATIA V5: How to Control Video File Size

Learn how to control the video file size in CATIA V5.

Next Article
CATIA Tip: Red Xs on Annotations
CATIA Tip: Red Xs on Annotations

Let's look at a scenario that sometimes arises when using the “View from 3D” function in the Drafting workb...