left side graphic right side graphic
Google

<   September 2010   >
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
27282930   


Attached there is a chm file with few code samples. Hope it will be helpful for those who wants to see and learn something about CATIA programming. Enjoy.

Category: Developer's corner
Posted by: ferdo

Running this macro will clean up all Part Bodies in the current model. This is a VBA format, but could possibly be rewritten as a CATScript. Error handling has been kept to a minimum, but can be added as required by the user. There is no user selection required.

» Read More


Category: Developer's corner
Posted by: solid7

-open a new CATDrawing document
-write with text command what ever you want
-modify text properties if necessary (bold, font, size, a.s.o.)
-run the CATScript TXT2SKETCH .
-this CATSCript will open also one of the DS CATScripts which you can...

» Read More


Category: Developer's corner
Posted by: ferdo

A CATScript which will modify views scale. The macro will skip the views which are not created and will do the job in the order specified in the message box.

Sub CATMain()

MsgBox "First 2 inputs are for Main View Scale and Background View Scale: Even if you will modify these 2 scales, you will not notice any modifications, that's why implicit value is 1. 1st value is for Main, 2nd for Background, 3rd for Front, 4th for Top, 5th for Up, 6th for Left, 7th for Right, 8th for ISO. Use only double value, do NOT use 1:2 or 1/2 (for example)"

» Read More


Category: Developer's corner
Posted by: ferdo

Same batch convert but here is the UNIX version

» Read More


Category: Developer's corner
Posted by: ferdo

A batch convert CATScript

» Read More


Category: Developer's corner
Posted by: ferdo

A small code to change line type and width.

» Read More


Category: Developer's corner
Posted by: ferdo

A small CATScript which will change collor of dimensions in drawing.

» Read More


Category: Developer's corner
Posted by: ferdo

Hi,

A small macro which can open an excel file containing hyperlinks to the pdf files with the on-line help for...

» Read More


Category: Developer's corner
Posted by: ferdo

This script will search for all visible planes and set them to hide. Note that the search string can be...

» Read More


Category: Developer's corner
Posted by: Azrael

05/07/21: Clash Analyze


Here is a script which can obtain a clash analyze for a whole product. The result will be listed in an xml file (see line "c:\Temp\sample.xml") but without pictures.

» Read More


Category: Developer's corner
Posted by: ferdo

05/07/21: Save as PDF


The advantage of the following macro is that you can work in batch mode. (maybe you have to save hundreds drawings as .pdf)

» Read More


Category: Developer's corner
Posted by: ferdo

It was recently suggested on another forum that the world needs more good CATScripts.

» Read More


Category: Developer's corner
Posted by: solid7

I'm not sure if this script exists in the help docs. At the time we developed this, we could not find it. Forgive us if this is duplicate.


» Read More


Category: Developer's corner
Posted by: solid7