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.
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?
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...
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?
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...
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.
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?
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
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...
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...
(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?
Little Cthulhu,
Thanks. Not sure if I do something wrong. I do the count for myTitleBlock.CompRef.Texts.Count --> I got 100, I do myTitleBlock.ExplodeAndSelect --> then I count DrawingText in the Selection --> I got 100. So the number of DrawingText objects is the same for both. However, with...
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...
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.
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.