Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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: *

  1. Andzejus

    Basic CATIA VBA question

    Yes, now that sketch was extruded and macro finished without errors. thank you for your patience.
  2. Andzejus

    Basic CATIA VBA question

    Thank you for showing my error. Now macro works, but only partially: It creates a sketch and then stops on this line: boolean2 = settingRepository1.GetAttr("DisplayRequirementsMode")
  3. Andzejus

    Basic CATIA VBA question

    1 In generative shape design I go to Tools > Macros. 2 I create new macro with MS VBA language. Then I hit 'Edit' and paste your code in a window that appears (the same window is shown on image 4). 3 Then I run this macro and get this error message. 4 When I press 'Debug' I can see a line where...
  4. Andzejus

    Basic CATIA VBA question

    When I create macro library I have 2 options: -PLM Directories; -PLM VBA Directories If I choose PLM VBA, then macro langiage is "MS VBA", If I choose PLM Directories, then macro language is "CATScript" I chose MS VBA because I thought I could try to transfer data from CATIA to EXCEL later.
  5. Andzejus

    Basic CATIA VBA question

    Hello ferdo, Thank you for your reply. I've tested your code on my 3DEx 2016- in generative shape design. And in my colleagues's 3DEx 2016- in part design. In both cases it gives the same errors. Maybe it is because you used catvba? I don't have catvba option for some reason, so I used your...
  6. Andzejus

    Basic CATIA VBA question

    Hello, I'm trying to learn how macros work in CATIA (3DEXPERIENCE R2016x). I started recording VBA macro (in generative shape design); Selected xy plane, started a sketch, drew a circle with radius 3, exited sketch and used volume extrude with dimension 1. Then I stopped recording. Now when I...
  7. Andzejus

    Export dimension values from CATIA sketch to EXCEL

    ferdo, Yes, script that makes drawing frame and fills it is saved on the hard drive. It is CATScript and I can run it by pressing buttons in drafting. See attached image: I tried to record and play macros (no luck yet, but I'll find out), and then it was saved in database. Thank you for the...
  8. Andzejus

    Export dimension values from CATIA sketch to EXCEL

    Hello ferdo, I wouldn't call it 'switching', because I didn't work with V5- it is all new for me (especially automation). Thank you for pointing me at DSYAutomation.chm file. I was looking for info on google, I was asking our software supplier's support for help- no luck. I don't have any...
  9. Andzejus

    Export dimension values from CATIA sketch to EXCEL

    Hello, I need to make a macro or plugin that would help me export dimension values from CATIA to EXCEL. I have a sketch with named dimensions. When I run macro I would like it to go thru all dimensions that are in the sketch, then create EXCEL file with dimension names in one column and...
  10. Andzejus

    CATScript for title block- how to control line thickness?

    With some help from good people I found out how to put logo into the background. Here's the code: 'insert Logo set myLogo = View.Pictures.Add("M:\path\to\logo.jpg", Xposition, Yposition) myLogo.height = 16. myLogo.width = 60. myLogo.Name = "TitleBlock_Logo"
  11. Andzejus

    CATScript for title block- how to control line thickness?

    Yes, my code fills file name, date, sheet number, scale, user. Running macro to fill user added properties, I will check that out. 'Returning back' in my case would be switching to solidworks [smile]
  12. Andzejus

    CATScript for title block- how to control line thickness?

    I give up for now with logo placement. Will try to solve that later. Regarding filling title block with model data- I'm getting into dead end too. In the CATScript file for creating title block that was supplied together with Catia instalation there is code that I believe retrieves model data...
  13. Andzejus

    CATScript for title block- how to control line thickness?

    Thank you JeniaL, I really appreciate your support. I tried your code, but it doesn't work for me. Here is error message it produces: Source: Microsoft VBScript runtime error Description: Object doesn't support this property or method: 'CATIA.ActiveDocument.Sheets' Perhaps it is becouse of...
  14. Andzejus

    CATScript for title block- how to control line thickness?

    Now I stumbled upon another problem that I can't solve by myself. Here is code that puts a picture with logo on the drawing sheet: Dim MySheet As DrawingSheet 'Set MySheet = CATIA.ActiveDocument.Sheets.ActiveSheet Set MySheet = CATIA.ActiveEditor.ActiveObject.Sheets.ActiveSheet Dim...
  15. Andzejus

    CATScript for title block- how to control line thickness?

    Thank you, JeniaL, your code does what I wanted to achieve.
  16. Andzejus

    CATScript for title block- how to control line thickness?

    Good day, My name is Andžejus, I'm new to this forum and to Catia. I was trying to make a customized frame and title block script. And I can't find how to control line thickness. Here is a code that draws line: Function CreateLine( iX1 As Double, iY1 As Double, iX2 As Double, iY2 As Double...

Part and Inventory Search

Back
Top