Catia catscript examples11/20/2022 bundle, it made me gave up hope on this one. The 'Superdeluxe' version of the script should turn the A_ Name Product into an Geometrical Bundle (so not a set) and add the electrical publications required to add Multibrancheables to the A_ name Bundle, but since it took me multiple emails to the Dassault helpdesk themselves to explain the difference between a geo. Thank you so much for any help you can offer! Set oChildProduct4 = oMainChildProducts.AddNewComponent("Product", "") Set oChildProduct3 = oMainChildProducts.AddNewComponent("Product", "") Set oChildProduct2 = oMainChildProducts.AddNewComponent("Product", "") Set oChildProduct1 = oMainChildProducts.AddNewComponent("Product", "") Set oMainChildProducts = oMainChildProduct.Products 'Retrieve the MainChildProduct's collection OMainChildProduct.PartNumber = "A_" & sName 'Declare the part number and name for this product. Set oMainChildProduct = oRootChildren.AddNewComponent("Product", "") SName=InputBox("Please enter a name for the assembly", "input", "name") Set oRootChildren = oRootProduct.Products 'Retrieve the product's collection under the root product. 'Select the root document with the Product type Current code for adding the structure to the root product: Language="VBSCRIPT" I seem to not be able to define it as a collection and thus the script does not want to run anymore. When I try to replace the part that concerns the root with all kinds of definitions of Dim oSel As Product I have managed to add it to the root of the current document, but I cannot get it to add the product to the selected item. Create 4 products as children of the new A_ name product called B_ name, C_ name, etc. Create a new Product as a child of the selected product with A_ name Then run a Macro that does the following, irrelevant of the name, level, of the selected product so the script can be used in different assemblies and it should not matter if it is the root or the child of a child of a child: I have been puzzling with CATscript for CATIA v5 and I am trying to do the following:īefore I would like to run the Macro, I would like to Select a Product out of a tree with 100's of products.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |