yossisc

How do I change (rename)  an Component name in DXdesigner?

Discussion created by yossisc on Mar 14, 2013
Latest reply on Jun 12, 2013 by dmarlow

hello

 

basicly I want the string in REFDES to replace the string in Name

I think it suppose to be simple, please some help:

 

 

Set propREFDES = oComp.FindAttribute("REFDES")

Set propName = oComp.FindAttribute("Name")

 

MsgBox propREFDES.Value

MsgBox oComp.GetName(SHORT_NAME)

 

If propName Is Nothing Then

MsgBox "No propName"

else

MsgBox "found propName"

End If

 

If propREFDES Is Nothing Then

'MsgBox "nothing"

Else

'MsgBox "found"

 

oComp.Name=propREFDES.Value   ' not working

propName.Value=propREFDES.Value   ' not working

End If

 

 

 

thanks!

Outcomes