×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# How to find the fake dimension in Catia 2D drafting......3

## How to find the fake dimension in Catia 2D drafting......

(OP)
Hi,

Let's say we got a 2 D file for revision and suspect that some of the dimension are fake.
Is there any way (other than inspecting every dimension) to find them at once?

Thanks

### RE: How to find the fake dimension in Catia 2D drafting......

You think dimensions are 'fake'?

Do you mean that you think the automatic dim callout has been replaced with a typed-in value (so that the dim would not update were you to change the model)?

The solution to that depends on what problem you're trying to solve...

### RE: How to find the fake dimension in Catia 2D drafting......

(OP)
The engineering department was concerned about a 2D drawing file that had a few dimension that didn't match their expectation. I was put in charge with finding out what was going on.
I found out that one of the dimension was fake (type-in value on Properties).
Tha task is done but I'd like to know if fake dimension could be find easier.......

### RE: How to find the fake dimension in Catia 2D drafting......

Turn on the analysis display mode in the visualization toolbar.
Fake dimensions are then brown in color.

Colors are identified here:

### RE: How to find the fake dimension in Catia 2D drafting......

2
I have always turn on that option pointed by rickyt.

You can use also the macro below which is doing in fact the search of fake dimensions and color them in red if you don't have the analyze option turned on...

#### CODE --> CATScript

Language="VBSCRIPT"

Sub CATMain()

Dim drawingDocument1 As Document
Set drawingDocument1 = CATIA.ActiveDocument

Dim selection1 As Selection
Set selection1 = drawingDocument1.Selection

selection1.Search "CATDrwSearch.DrwDimension.DimFakeAttr=TRUE,all"

'Change the color in RED
Set Drwselect = CATIA.ActiveDocument.Selection

Drwselect.VisProperties.SetRealColor 255, 0, 0, 0

End Sub 

Regards
Fernando

### RE: How to find the fake dimension in Catia 2D drafting......

(OP)
Thank you, RickyT,
Thank you, Ferdo!

### RE: How to find the fake dimension in Catia 2D drafting......

(OP)
Fernando,

I have been trying to apply your macro; unfortunately, I got the error messages below:

What went wrong?

Thanks!

### RE: How to find the fake dimension in Catia 2D drafting......

I see that you are editing in catvbs...please use CATScript as is written in the header of the code section of the forum Code -> CATScript :)

If you want to use catvbs you need to write ' before each As (this means comment, everything which is after this sign will be ignored) so you will have

#### CODE --> catvbs

Language="VBSCRIPT"

Sub CATMain()

Dim drawingDocument1 'As Document
Set drawingDocument1 = CATIA.ActiveDocument

Dim selection1 'As Selection
Set selection1 = drawingDocument1.Selection

selection1.Search "CATDrwSearch.DrwDimension.DimFakeAttr=TRUE,all"

'Change the color in RED
Set Drwselect = CATIA.ActiveDocument.Selection

Drwselect.VisProperties.SetRealColor 255, 0, 0, 0

End Sub 

Regards
Fernando

### RE: How to find the fake dimension in Catia 2D drafting......

(OP)
It works!...

Thanks a lot, Ferdo!

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

eBook - Efficient and Effective Production Support with 3D Printed Jigs and Fixtures
Jigs and fixtures offer manufacturers a reliable process for delivering accurate, high-quality outcomes, whether for a specific part or feature, or for consistency across multiples of parts. Although the methodologies and materials for producing jigs and fixtures have evolved beyond the conventional metal tooling of years past, their position as a manufacturing staple remains constant due to the benefits they offer. Download Now
Overcoming Cutting Tool Challenges in Aerospace Machining
Aerospace manufacturing has always been on the cutting edge, from materials to production techniques. However, these two aspects of aerospace machining can conflict, as manufacturers strive to maintain machining efficiency with new materials by using new methods and cutting tools. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!