Does anyone have any experience with EVAL_ ? I was told that it could be used, from within a DXL script, to run another DXl script. |
Re: DXL EVAL_ command |
Re: DXL EVAL_ command You have to build the DXL script to run. You can only pass 'string' parameters to it, which are converted to actual strings. The context appears to be like batch mode; many things are not loaded. To pass in such things as the 'current module', you must pass in the fullname and have the code open the module. Slashes need to be escaped. Escapes have to be escaped. Double Quotes have to be escaped. So far, the only use I've found is for functions that make use of higher level DOORS versions things, that need to at least run in lower versions. e.g. "AttrDef ad; ad.description" will cause DXL errors in v8 since 'description' doesn't exist in those version. You can eval_ that, trap the errors, and keep going. Following simply dumps the obj-attr value of the current object. Yuuuuuck.
>Louie |