I would guess that expressing each element in the
array as a string literal would be more effecient,
but it may not matter much.
Kent Keller wrote:
>
> Tony
> Thanks, I ended up doing this
>
> SysEntry$ = "ACADLSPASDOC ACISOUTVER Yadda Yadda Yadda "
>
> While Len(SysEntry$) > 0
> If InStr(SysEntry$, " ") > 0 Then
> StepVar$ = Left(SysEntry$, InStr(SysEntry$, " ") - 1)
> SysEntry$ = Mid(SysEntry$, InStr(SysEntry$, " ") + 1)
>
> Not sure which way is more efficient, but this seems to be working
> OK.
>
> --
> Kent Keller
> Check out the Mechanical Desktop FAQ @
> http://webhome.idirect.com/~dfulford/
>
> "Tony Tanzillo" wrote in message
> news:3883E72A.9B5251EB@worldnet.att.net...
> > You can do this without any third-party "tools".
> >
> > Just do a SETVAR ? and list the names of all
> > system variables to your text console, then
> > copy them to a text file and format them as
> > an array in VBA.
> >
> > Dim VarNames(0 To ) as String
> >
> > VarNames(0) = "VARNAME1"
> > VarNames(1) = "VARNAME2"....
> >
> > Then, you can just iterate through the array
> > and call GetVariable() with each array element.
> >
> > Kent Keller wrote:
> > >
> > > Is there a easy way to get all the sysvar settings so I can
> list them out in
> > > a file? Do I have to use Getvar on each one individually by
> name?
> > >
> > > --
> > > Kent Keller
> > > Strobe Data Inc.
> > > www.strobedata.com
> > > Signs of the Times
> > > LOG ON: Makin a wood stove hotter
> >
> > --
> > /*********************************************************/
> > /* Tony Tanzillo Design Automation Consulting */
> > /* Programming & Customization for AutoCAD & Compatibles */
> > /* ----------------------------------------------------- */
> > /* tony.tanzillo@worldnet.att.net */
> > /* http://ourworld.compuserve.com/homepages/tonyt */
> > /*********************************************************/
--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.tanzillo@worldnet.att.net */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/