2 Replies Latest reply on Apr 25, 2014 1:17 AM by joan.zimmermann

    Changing DxD advanced settings from a script

    sq9djj

      Hi,

       

      How read&modify marked settings from a script?

      question.bmp

      I'm using ParamGetValue method from Viedraw.Application but how find corresponding variables in VdParamMode, VdPaeam Value and other enum types?

       

      DxApp.ParamGetValue(VdParamMode.VDMD_EXCLUDE_GLOBALS_FM_UNIQUE_ON_COPY);

       

      Thanks in advance!

        • 1. Re: Changing DxD advanced settings from a script
          mjohnson

          Try this, as example, to see how it works:

          'Toggle the grid
          Call ParamSetMode(vdParamMode.VDMD_GRID_ON,VDMD_ON)

          MsgBox ParamGetMode(vdParamMode.VDMD_GRID_ON)

          Call ParamSetMode(vdParamMode.VDMD_GRID_ON,VDMD_OFF)

          MsgBox ParamGetMode(vdParamMode.VDMD_GRID_ON)



          I'm not sure if I totally understood your question, but this is how you get and set the modes. You should also be able to use ParamGetValue and ParamSetValue using integers.

          • 2. Re: Changing DxD advanced settings from a script
            joan.zimmermann

            I want to toggle the setting Setup->Settings->Advanced->"Show Ripper Indexes" in a script.

            Does this correspond to any enum in VdParamValue or VdModeValue?

             

            I tried:

            MsgBox("rip before set: " & vdapp.ParamGetMode(VDMD_RIPPERS_ON) & " param=" & VDMD_RIPPERS_ON)

            Call vdapp.ParamSetMode (VDMD_RIPPERS_ON, VDMD_ON)

            MsgBox("rip after set ON: " & vdapp.ParamGetMode(VDMD_RIPPERS_ON) )

            Call vdapp.ParamSetMode (VDMD_RIPPERS_ON, VDMD_OFF)

            MsgBox("rip after set OFF: " & vdapp.ParamGetMode(VDMD_RIPPERS_ON) )

             

            which had no effect. After setting to "ON" the value read out was still 0.