Continue to Site

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: *

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

    SettingsConstrolers

    Hej, I wan to create macro (vb.net) to turn on "Enable Hybrid Design In body", I tryied different approaches but I failed. First my macro checks if "Enable hybrid design inside part bodies and bodies" is on, then I would like to turn on "In a body" Dim SettingsConstrolers As...
  2. Santa123

    Constraint - vertical or horizontal

    Hej, I am trying to determine if Constraint (Length or Offset) is horizontal or vertical. If dimension is related to line there is no problem but if it's not I cant manage with it. Could you give me some tips? Respect Santa123
  3. Santa123

    Relation

    Hi, I created relation: Dim MassString As String MassString = "volume(Extract_For_Volume_Measure\Extract.1 )*7860 * 1kg_m3" MyParameterMasaForumla = MyPart.Relations.CreateFormula("FormulaMass", " ", MyProduct.UserRefProperties.Item("Mass"), MassString ) when I change my Part...
  4. Santa123

    Add material

    Hello, I am creating a macro, which add material to part, read mass and put it to lblMassValue. Button2 add material to Body but weight is not updated, it stays the same as it was without material. Public Class Form1 Public MyActiveDocument As Document Public MyProduct As Product...
  5. Santa123

    GetDirection vb.net

    Hej, I am trying to convert my macro from script to vb.net Function FuncIsHorizontal(MyPart As Part, i) As Boolean Dim MyDir() As Variant Dim MyGeomElementLine As GeometricElement Set MyGeomElementLine =...
  6. Santa123

    visual basic 2015

    Hello everyone, When I try get an instance of Catia, I get an error "An unhandled exception of type 'System.InvalidOperationException' occurred in Catia_1.exe". I added reference to all needed libraries. Could you give me some guidenlines. Imports INFITF Imports DRAFTINGITF Public Class...
  7. Santa123

    Holes

    Hello, Do you use VBA to create holes?, what method do you use. Mostly I create holes in Plates, using rectangular pattern by means of PowerCopy and UDF. Best Regards Santa
  8. Santa123

    Intescection

    Hej, I try to get coordinates of my intersection. User select vertical and horizontal edge and macro create intersection and read coordinates of that point. Unfortunately line: TheMeasurable.GetPoint aCoordinates - cause an error. Treacing my code, I found that array aCoordinates is empty. If I...
  9. Santa123

    Dimension reference

    Hello, Could you give me some tips, how can I get to know if dimension (in sketch) is referenced from H or V axis. Respect Santa
  10. Santa123

    Add new component

    Hello, I'v been trying to add new component to 3 Product of rootProduct, I do't know how to activate 3 Product. Plese give me some tips, I can't move on with my programming, Sub CATMain() Dim oDocuments As Dosuments Set oDocuments = CATIA.Documents Dim oProductDocument As Document Set...
  11. Santa123

    PARAMETERS

    Hi, I can't see Parameters in my assembly tree, although I set in INFRASTRUCTURE->Display parameters. Regards Amnon
  12. Santa123

    step file

    Hi, When I load assembly with parts(created from step files) that parts do not load at all. Best Regards Amnon
  13. Santa123

    Open in new window

    Hej, Could you guide me how to open Part in new window using option Open Part in New Window. Best Regards Santa
  14. Santa123

    Rule

    Hej, How can I input data to Rule if class =="myclass" and bolt =="M6" { D=11mm L =7mm d = InputBox("give me hole dimeter") --- ??? } else if .... Best Regards Santa
  15. Santa123

    icons

    Hej, I've been trying to create my own icon to use in Power Copy. I retained pixels, width and height and it still doesn't work. Respect Santa123
  16. Santa123

    Positioned Sketch

    Hej, What is wrong with my code? Sub CATMain() Dim Component As Part Dim MyDocument As Document Set MyDocument = CATIA.Documents.Add("Part") Set Component = MyDocument.Part Dim part1 As CATBaseDispatch Set part1 = MyDocument.GetItem("Part1") part_name = InputBox("Part Name","")...
  17. Santa123

    Catalog

    Hellow, I need a little help with my catalog creation. I do not know why is that, when I add component from Catalog Browser and then I give Save Managenent, my new addded component have State Open not New. Why is that? Amnon
  18. Santa123

    Drawings jamming

    Hej, I do not why, my products (with 500pc of Parts) works great, but when I create a siply drawing it's jamming. Respect Santa
  19. Santa123

    DT

    Hello, I've been trying to create DT for sealing ring, but I can't deal with one issue. One shaft diameter "d" may have few outside diameter "D". When I point shaft "d" I'd like Document Template inform me what option "D" do I have. Regards Amnon
  20. Santa123

    thread

    Hej, I have a shaft with Metric Thick Pitch, and when I change shaft diameter I lost Laterar Face all the time. Best Regards Santa123

Part and Inventory Search