Left Sidebar
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 |
Right Sidebar
09/08/17: CATIA Portable Script Center
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.
06/10/29: 3D TEXT (works in UNIX and Windows)
-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...
-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...
Category: Developer's corner
Posted by: ferdo
06/10/18: Modifying view scale (UNIX)
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)"
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)"
06/07/31: CATPart to STP (UNIX)
06/07/31: CATPart to STP (Windows)
Category: Developer's corner
Posted by: ferdo
06/07/08: Change line type and width
Hi,
A small macro which can open an excel file containing hyperlinks to the pdf files with the on-line help for...
A small macro which can open an excel file containing hyperlinks to the pdf files with the on-line help for...
Category: Developer's corner
Posted by: ferdo
06/01/26: Script to hide planes
This script will search for all visible planes and set them to hide. Note that the search string can be...
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.
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)
Category: Developer's corner
Posted by: ferdo
05/06/28: Suggestions for the developer's corner
It was recently suggested on another forum that the world needs more good CATScripts.
Category: Developer's corner
Posted by: solid7
05/06/23: Multiple lines normal to surface script
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.
Category: Developer's corner
Posted by: solid7