Skip to content

Multiple names for single Function object #4849

Answered by psifertex
SyxP asked this question in API
Discussion options

You must be logged in to vote

I is possible to create multiple symbols using the API, however right now the UI will only show one FunctionSymbol (the most recent one) so you won't be able to search for all of them.

That said, there is a small hack which is that you can create DataVariable symbols at the same location as the function and show data symbols and you'll be able to see all of them in the UI at the same time. Consider this for example:

  1. First, turn on data symbols:
  1. Next, add a new datasymbol:
bv.define_user_symbol(Symbol(SymbolType.DataSymbol, here, "NewFunctionName"))
  1. This will "rename" the function, but the old name will still show up on the symbol list along with the new name:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@psifertex
Comment options

Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants