Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Thosnow
  • Content: Threads
  • Order by date
  1. Thosnow

    Command "Recognize" and error message

    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}"...
  2. Thosnow

    Search/Get "Text" value inside Definition property of 3D Annotation Set

    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...
  3. Thosnow

    Rotating views/screens before taking captures in CATIA V5?

    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...
  4. Thosnow

    SendKeys does not work on {ENTER} first action

    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...
  5. Thosnow

    Create a new point on screen

    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 =...
  6. Thosnow

    Delay the macros with Application.Wait Now + TimeValue("00:00:02")

    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...
  7. Thosnow

    Function or Interface marked as restricted

    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...
  8. Thosnow

    Compare text characters/text strings/captures' name (alphabetical letters)

    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...
  9. Thosnow

    Change surface color of multi-body solid part

    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...
  10. Thosnow

    Print file properties and user info on the paper

    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...
  11. Thosnow

    Switch/Enable annotation set on/off

    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...
  12. Thosnow

    white background with black text

    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
  13. Thosnow

    OBTAIN CAPTURES' VALUE

    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...
  14. Thosnow

    SWITCH CATPART 3D ANNOTATION ON AND OFF

    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...
  15. Thosnow

    CYCLE THROUGH CAPTURE SELECTION AND DISPLAY EACH CAPTURE ONE BY ONE FOR PRINTING

    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...
  16. Thosnow

    STORE/SAVE COLOR ARRAY OF PARTBODY

    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...
  17. Thosnow

    VBA MACROS - GET PART BODY COLOR AND CHANGE IT TO WHITE COLOR, THEN GO BACK TO PREVIOUS COLOR

    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...

Part and Inventory Search