Hello All,
I have tried to use command "Recognize" in a VBA scrip (as seen below) to recognize a sheet metal CATPart for unfolding and I get an error message as per below picture.
CATIA.StartCommand "Recognize"
'// Press ALT and N letter to say No to cancel command "Recognize"
SendKeys "{N 1}"...
Hello All,
I am able to select "ENG" property in 1st picture below as per my short macro below. However, I do not know how to search and get the text (i.e. PLATE) in the definition of "ENG" as seen in second picture below.
Please help me out.
Picture 1:
DEFINITION OF "ENG" property...
Hello All,
I got a code taking captures from CATIA using CaptureToFile function (inside "Viewer object").
As you know that the physical monitor is made to "landscape" orientation (longer horizontally than the height) by common design, and the CATIA screen itself is also displayed in landscape...
Hi All...I created a simple VBA code to demonstrate the SendKeys command. However, when the very first camera name appears, the SendKeys {"ENTER"} command does not work. I have to manually press Enter key on the keyboard in order to have the loop to continue. SendKeys {"ENTER"} does work on...
Hi All,
How can I create a new point on screen in an active CATPart with a VBA macro? I got to a point as seen below and am stuck.
'================================
Sub AddPoint(Comment As String, part1 As Part)
'//// Get annotation set
Dim annoSet1 As AnnotationSet
Set annoSet1 =...
Hello All, I am trying to delay the macro from running for 2 seconds as per VBA code below. But it does not work and give me an error message at statement:
Application.Wait Now + TimeValue("00:00:02").
I also tried to use a MsgBox and SendKeys "{Enter}" trying to delay the program from runing...
Hi All,
Using a VBA code, I am trying to create a "Text Stamp" on an annotated view and get an error message at "Add2DText" as seen below.
Do you know what it is?
How do I fix it?
I check the function "Add2DText" in Catia and it seems Add2DText is a valid property of Marker2D.
Thank you...
Hi All,
I am able to obtain names of the captures (ex: CHANGE INFO, CHANGE INFORMATION, CHANGE TEXT, INFO CHANGED, TEXT CHANGED...etc).
I just want to compare the capures' name with "CHANGE" only.
1) How could I do that?
2) Is there a syntax/command to compare two stream of texts?
Remember I...
Hello All,
I am able to change PartBody color with a VBA code but having difficulty to change the surface color of multi-body solid part, which has multiple bodies joined together.
When I want to change the "multi-body-PartBody"s color to white, the visible color of all surfaces did not...
Hello All,
I would like to have following information in a part document to be printed on the paper.
> Part file's name
> User/Log-in's name (person who log-ins the computer station)
> Date - month/date/year (when the sheet is printed)
> Page numbers (i.e page 1 of 6, 2 of 6, 3 of 6...etc)
In...
Hello All,
I can turn the annotation captures on/off but not able to figure out how to switch/enable annotation set on and off with a VBA/VBScript code such as you use CATIA with mouse-right click on the annotation set itself?
Please see image below to understand my question.
Please help if...
Hello All,
When I change graphic background to white color, white text of captures are invisible.
How can I change text to black with a VBA code or Catscript) in Catia 2015 while background is in white so that I can see the text?
Thank you All
Quin
Hello All,
I have a VBA code below, which cycles through captures in CATPart 3D Annotation set in a part document as per image below.
How can I obtain value of all captures in the CATPart 3D Annotation set.
Example: when first screen capture "All" displays, it will display string "All" and...
Hello Ferdo and Others,
Do you know how (or at least which CATIA function) to
1) Turn/Switch CATPART 3D ANNOTATION on and off with a VBA macro?
2) Search, obtain and display Captures' value (ex: in the attached image, first capture value is "All")
Thank you All in advance...
Hello Ferdo and Others
I am trying to cycle through Captures, one by one, for printing the screens. See partial VBA code at bottom and attached image for more info.
However, when running the code to cycle through the captures, there are small "CATIA V5" windows appeared as seen on attached...
Hello Ferdo and Others,
I am able to obtain color of part body in CATIA V5 in term of color array (ex: r = 255, g = 128, b = 0)
1) How do I declare variable(s) (as Long, Double...ext)
2) How do I store/save those color array elements (r, g, b values) in variable(s) so that I can retrieve and...
Hello Ferdo and Others
I have tried so hard to write a VBA macro to get Catia Part Body's color from a part document, change part color to white color and change it back to previous color. I have got to a point below and the error "type mis-match" appeared and I do not know how to fix it since...