Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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. CarlosR2022

    Is it possible to show and hide "Points" & "Wires" similar to the options se

    Is there an macro automation to show or hide Points and Wires? The normal way is to get in to the View Modes option from View then manually turn on and off. I can only change render style via automation but not Points and Wires.
  2. CarlosR2022

    How to add a Product Markup to a product in 3Dx via API?

    I read the Automation Help file but there is not much mention of the Product Markup object except to add the section will require a Product Markup. I can add it manually but I wonder if it is possible to add it programmingly with the free VBA API?
  3. CarlosR2022

    3Dx SectionService Runtime-Error '430' when set the object

    I tried the Macro example shipped with 3Dx to create a section, it returns the error '430' Class does not support Automation or does not support expected interface 3Dx. If I create the section manually via 3Dx GUI tool there is no issue. I already manually added a Markup to the product but I...
  4. CarlosR2022

    How to set Window State for 3Dx Experience (Desktop)?

    3Dx Catia has the .Left and .Top properties but I cannot find the `.WindowState`. Does anyone know how to set the 3D Application's windows to be normal?
  5. CarlosR2022

    How to find the position matrix of a snapped part in 3Dx?

    I have 2 parts: Part1 and Part2 both have 0,0,0 as origin. Then I moved and rotated Part1 randomly and I took the position of Part1 which was a 4x4 matrix called POS1. Then I snapped Part2 to Part1 (instead of using assembly constraints) to have Part2's position matrix as POS2. My question is...
  6. CarlosR2022

    3Dx: How to set a product to be an ActiveObject via VBA?

    To get the active we can use `CATIA.ActiveEditor.ActiveObject`, however, this is read on. I try to use the `Selection.Add(myProduct)` but this does not make myProduct to be the ActiveObject.
  7. CarlosR2022

    How to "Explore" a physical part in 3DExperience using Macro?

    I can search and open a physical part using the PLMOpenService. However, I would like to explore the part instead of opening it. Is this possible with VBA or must it be done via the expensive programming plug-in?
  8. CarlosR2022

    3Dx: Database Search with owner as a condition

    Is it possible to search using "Owner" as a search condition? I tried "owner", "Author", "User" with the extended criteria but none of these were correct. oDBSearch.Mode = SearchMode_Extended oDBSearch.AddExtendedCriteria "Owner","Someone", SearchOperator_LIKE
  9. CarlosR2022

    3Dx: How can I get the names of selected parts when open assembly with Explore option?

    I have a big assembly with thousands of sub-assemblies and many parts. It has a very complex structure so I Explore it instead of Open the whole thing. I would like to write a macro to list the sub-assemblies that match my search condition. The issue is that even if the tree has the correct...
  10. CarlosR2022

    3Dx: Relationship between the positions of two physical parts

    My apologies - this might be a mathematical question rather than a Catia 3Dx question. Assume 2 physical parts Part1 & Part2 in an assembly - all origin positions are 0,0,0. I used Snap to align them to get pos1(11) and pos2(11) - their two transformation matrixes. Then Part1 is moved different...
  11. CarlosR2022

    3Dx: How to hide/unhide tree? How to determine if the tree is visible or not via VBA?

    (1) I am not sure if there is a better solution to hide or unhide the tree in 3Dx instead of using sendkey F3 (2) Is it possible to determine if a tree is visible or not via VBA?
  12. CarlosR2022

    How to get DrawingText object from a DrawingComponent without "Explode" method

    I have a drawing that has its title block as a DrawingComponent object. I would like to get some DrawingTexts. Currently, in order to do this, I have to do myTitleBlock.Explode so the texts can be read. I woudl like to ask if there is a way to get the texts without using `Explode`? Explode is...
  13. CarlosR2022

    Is it possible to change the PDF version to PDF1.6 using VBA

    Even this is a one time change from the Options Menu, I would like to know if it is possible to change the PDF version to 1.6 in the Graphics Format?
  14. CarlosR2022

    How to determine which DrawingSheet a DrawingText is from?

    I have a DrawingText object which is just a result of Selection. How do I determine which DrawingSheet this DrawingText is on? I try myDrawingText.Parent.Parent ~~~> but I can get only up to the Layout2DView if I try another '.Parent' then I will get the error class does not support Automation.
  15. CarlosR2022

    How to export Catia Drawing to PDF properly

    When I use the save as and VBA ExportData, some drawing works but some get truncated. My company does not have a standard dimension for drawing size. Is there a way to Export file to PDF with all contents regarding the drawing size? VBA would be preferred.
  16. CarlosR2022

    UserForm object not found in CATIA VBA

    I have a UserForm from CATIA's VBA (not from an external application like Excel): it works normally then suddenly says `object not found`. I have to restart CATIA in order to have it work again then...it stops working. This happens usually when I open a 3D model. I have no idea what caused the...
  17. CarlosR2022

    How to re-use Selection VBA

    Let's say I pre-select a number of geometric elements in a 2D environment. This includes lines and texts. Now I want to have 2 distinct searches to get (1) lines then (2) texts/ 'I selected a number of objects manually. 'because I want to limit my works on these objects only dim...
  18. CarlosR2022

    VBA: how get the top-left and bottom-right coordinates of a mouse selection

    There are some codes that allow getting a mouse pointer single click event but what if I draw a mouse selection as a rectangle? Is it possible to get the top-left and bottom-right coordinates?
  19. CarlosR2022

    VBA: Is it possible to create a rectangle as a single object/geometry instead of 4 lines?

    I can automatically create a rectangle with VBA without an issue. However, I prefer if it is possible to define a single geometry like a `Polyline` as a rectangle instead of having 4 lines.
  20. CarlosR2022

    How to select geometry elements belong to a particular sheet of a 2D Drawing

    I have a 2D drawing with multiple sheets and I would like to select, for example, all circles. Assume all sheets contain circles but I only need the one on Sheet1. How do I do this? The advanced search either gives me circles on all sheets or nothing if I add the AND condition.

Part and Inventory Search