hi again Gents,
I was wrong, the bit of code wont work

It copies and renames the axis ok but puts it in a temp file. When I copy them to the correct part and delete the temp file I loose the links.
Is there anyway I could select the destination for paste so I don't get this problem. May make the destination part as the active document & the part to copy from the active document selection?
The code is below, any help really would be welcome.
cheers
Alan
*****************************************************
Sub CATMain()
Dim uSel 'As User Selection
Set uSel = CATIA.ActiveDocument.selection
Dim nSel 'As Name
nSel = uSel.item(1).value.name
Dim nSel2
nSel2 = nSel
CStr(nSel2)
Dim nSel3 'gets Part number
nSel3 = Mid(nSel2 , 19, InStr(nSel2 , ".") -25)
Dim nSel4 'gets instance number
nSel4 = Mid(nSel2 , 33, InStr(nSel2 , ".") -1)
Dim sSel
Set sSel = uSel
'Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties 'Hide Part
Set visProperties1 = uSel.VisProperties 'Hide Part
visProperties1.SetShow catVisPropertyNoShowAttr
sSel.Search "CATGmoSearch.AxisSystem,sel"
sSel.Copy()
' MAKE COLLECTOR ACTIVE FOR PASTE
Dim documents1 'As Documents
Set documents1 = CATIA.Documents
Dim partDocument1 'As Document
Set partDocument1 = documents1.Item("TempAxisCollector.CATPart")
Dim part1 'As Part
Set part1 = partDocument1.Part
Dim selectPart
Set selectPart = CATIA.ActiveDocument.Selection
sSel.Add(partDocument1.Part)
sSel.PasteSpecial("CATPrtResult")
Dim pSel
Set pSel = CATIA.ActiveDocument.selection
pSel.item(1).value.name = nSel3 & nSel4
uSel.Clear()
'sSel.Clear()
'nSel.Clear()
'nSel2.Clear()
pSel.Clear()
End sub
*****************************************************************************************************