pycatia.cat_str_functional_interfaces.sdd_product¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.cat_str_functional_interfaces.sdd_product.SDDProduct(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSddProductInterface to create a SDD Design Unit under a Product.Role: Allows creating Design Unit under a Product.- create_design_unit() Part ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateDesignUnit() As PartCreates the Design Unit inside a Product.Example:This Example creates a Design Unit inside a Product fromscratch.‘ Create a New Product DocumentDim NewProdDoc As ProductDocumentSet NewProdDoc = CATIA.Documents.Add(“Product”)‘ Get the Product from the Product DocumentDim RootPrd As ProductSet RootPrd = NewProdDoc.Product‘ Select the Product Document and Add the product to thisselectionDim SelectionObj As SelectionSet SelectionObj = NewProdDoc.SelectionSelectionObj.Add RootPrd‘ Create a SDD product from above ProductDim SddProductObj As SddProductSet SddProductObj = SelectionObj.FindObject(“CATIASddProduct”)‘ Create a Design Unit under this ProductDim SddDesignUnit As PartSet SddDesignUnit = SddProductObj.CreateDesignUnit‘ Using this Part get the CustomerFactoryDim FactoryObj As SfmFactorySet FactoryObj = SddDesignUnit.GetCustomerFactory(“SfmFactory”)
- Return type: