Key-in direct command "set grid toggle" V8i version

See attached picture of the key in command and structure. It will not toggle the grid? I need some Ideas on the problem, when and if possible.

When it is on, it will not toggle OFF.or when ON, it will not toggle off.

 

 

 

Parents Reply Children
  • Hear is the strange case.

    set ed toggle;selview all;update all, This works fine as a direct Key-in. But a Script File will not seem to work

    @C:\scripts\dft.txt

    set ed toggle;selview all;update all

    I first tried

    set ed toggle

    selview all

    update all

    it would not work either. The datafields blink on and off on the screen? normally the toggle command will flip off to on or on to off.

    I have another script file GDT.txt  in the same folder which works.

    gdt.txt which works fine

    set grid toggle

    selview ALL

    update All

    This one works fine locksOn.txt

    lock grid on

    lock axis on

    lock unit on

    lock snap keypoint

    Here are a couple of pictures of the three separate C:\Scripts\ (file_name.txt)

    The above did not work in either format, the Direct F9 did

    Below worked fine as a script file

    I am pasting a copy of the path in text format: C:\Scripts I hope I have given enough information? Thanks you for any assistance.

     

    RJB Phillips III - Praise the Lord for His Mercy and Grace

  • Sometime, in a script, using a precision input key-in works where others do not.

    You can enter xy=0,0 or dx=0,0 and I believe you can add an extra comma and a view number - but this requires your script to know whether its running in 3D or 2D. When using a zero, you can actually omit the comma.

    DX=,, is the same as DX=0,0,0.  


    Charles (Chuck) Rheault
    CADD Manager

    MDOT State Highway Administration

    • MicroStation user since IGDS, InRoads user since TDP.
    • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
  • Richard

    Have you tried using the macro recorder and doing your kein ins on at a time. then turn off or stop recording

    you can name your macro something more logical or GDT then if you saved them in the right default folder you can run them  by keyin macro macroname enter key ie macro gdt or just macro and a dialog pops up and you browse to the one you want... pretty cool and easy to remember... also can contain explanation as the file has an editor or you can use notepad as long as it the . bas file  you can edit it...also run and step thru it to see where its wrong or fails....

    or use the F keys to launch the macro.... macros are easier then scripts because it records what your doing and if it works you keep recording... a lot of people will push for VBA macros here but if your not up to vba then for now microstation basic  is pretty easy to read and and understand what happening... and as your a good old boy like me basic should come easy to you...

    Lorys

    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 (8.11.09.919) dabbler CE  update 16 (10.16.00.80) 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me 

  • I must have misunderstood the above answer BeMVP, I opened the key-in and typed in xy=0,0 do not think saw any change in the datafields? I then tried dx=0,0 I only am in 2D drawing and do not think I will be going into the 3D I am just a part timer doing 2D updates and corrections.

    RJB Phillips III - Praise the Lord for His Mercy and Grace

  • we are talking of the vba macro recorder? or is there another recorder and I am not aware of it?

    RJB Phillips III - Praise the Lord for His Mercy and Grace