4 Replies Latest reply on Jun 12, 2013 5:57 AM by dmarlow

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

    yossisc

      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!