hi!
I want to create a macro that copy a point
named "pt1" from an hybridbody1 to another hybridbody2
when i record a macro of this action:
the problem here is that it works with selection! that make me upset!!!
help please! thank you
I want to create a macro that copy a point
named "pt1" from an hybridbody1 to another hybridbody2
when i record a macro of this action:
Code:
Sub CATMain()
Dim productDocument1 As Document
Set productDocument1 = CATIA.ActiveDocument
Dim documents1 As Documents
Set documents1 = CATIA.Documents
Dim partDocument1 As Document
Set partDocument1 = documents1.Item("387-181-953-0.CATPart")
Dim part11 As Part
Set part11 = partDocument1.Part
Dim hybridBodies11 As HybridBodies
Set hybridBodies11 = part11.HybridBodies
Dim hybridBody11 As HybridBody
Set hybridBody11 = hybridBodies11.Item("Construction maquette")
Dim hybridShapes11 As HybridShapes
Set hybridShapes11 = hybridBody11.HybridShapes
Dim zeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex1 As Boundary
Set zeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex1 = hybridShapes11.GetItem("pt1")
'selection1.AddzeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex1
help please! thank you