Structure Design |
Modifying Copings |
|
|
This macro shows you how to Edit existing coping between structure objects. This macro modifies SubType of Existing Coping created using CreateCoping Macro.
|
|
|
CAAStrEditCoping is launched in CATIA [1]. Some documents are needed.
|
|
|
CAAStrEditCoping includes two steps: PrologSub CATMain()
Dim StrWorkbench As StrWorkbench
Dim strFactory As StrObjectFactory
Set doc = CATIA.ActiveDocument
Dim rootProduct As Product
Set rootProduct = doc.Product
Set StrWorkbench = doc.GetWorkbench("StrWorkbench")
Dim strPlates As strPlates
Set strPlates = rootProduct.GetTechnologicalObject("StructurePlates")
Dim strMembers As strMembers
Set strMembers = rootProduct.GetTechnologicalObject("StructureMembers")
Retrieving Existing Coping and Modifying its SubTypeThe Existing coping can be searched by using the search method on selection.”Coping.1” is searched for in the entire product. The subtype of 1st coping feature is modifed to "CurrCurr". Dim selection1 As Selection Set selection1 = doc.Selection selection1.Search "Name='Coping.1',all" Dim NibblingToEdit As StrNibblingFeature Set NibblingToEdit = selection1.Item(1).Value Dim SubTypeOfNibbling As String SubTypeOfNibbling = NibblingToEdit.SubType NibblingToEdit.SubType = "CurrCurr" End Sub |
![]()
[Top]
This use case has shown how to edit coping between structure objects.
[Top]
| [1] | Replaying a macro |
| [Top] | |
Copyright © 1999-2010, Dassault Systèmes. All rights reserved.