I am about ready to scream (I don't have any hair to pull anymore). I want
to put a simple little script together that I can source, add to my popup
menu, and call when I want it. It will take the name of the an ENTITY from a
graphic attribute using the following command string
graphic_path = entity_path(oid_attr(oid_caret())
This works BEAUTIFULLY from the Epic command line (of course adding the $
before the variable name). However in this simple little script, it does not
work, the variable always returns nothing.
function graphic_info ()
{
graph_type = oid_graphic_format(oid_caret())
graph_path = entity_path(oid_attr(oid_caret(), boardno))
tag_name = oid_name(oid_current_tag())
eval "Graphic path - $graph_path\
Graphic type - $graph_type\
Current tag - $tag_name"
}
The variable $graph_type will show up in the output, but the path is blank.
I've even tried to narrow this down to just displaying the path using this:
eval entity_path(oid_attr(oid_caret(), boardno))
Again, this works from the command line, but not from the script.
I added the 'current tag' just to verify the script was reading the graphic
tag (which I knew it was because of the graphic type being returned).
Does anyone have any idea what is happening? I know I am no expert
programmer and like Ed I don't try to play one on TV either. I am skilled
enough to know this should work (and I have similar scripts that).
Many thanks.
Lynn