Hide Script

This topic contains 4 replies, has 2 voices, and was last updated by  Lingwisyer GC 1 month ago.

  • Author
    Posts
  • #18200

    Lingwisyer GC
    Participant

    Hi all,

    According to the user documentation, scripts can be hidden by adding 64 to the section flag.

    <Script_3D SectVersion="20" SectionFlags="0" SubIdent="0">
    to
    <Script_3D SectVersion="20" SectionFlags="64" SubIdent="0">

    Would this be the the required change? My issue is that when I do this, I get an error when I attempt to convert the XML back to GDL saying;

    XML validation failed; invalid byte ‘ȎҪȏ’ at position 1 of 1-byte sequence

    Ling

    AC18-22 AUS 6021
    Self-taught, bend it till it breaks.
    Win7 | E5620 x 2 | 24GB | K2200

  • #18201

    Péter Baksa
    Participant

    Hi Ling,

    this should work. Make sure the XML file encoding is UTF-8 with BOM.

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

  • #18202

    Lingwisyer GC
    Participant

    It is encoded to UTF-8 but how do you tell if it is with BOM?

    Ling.

    AC18-22 AUS 6021
    Self-taught, bend it till it breaks.
    Win7 | E5620 x 2 | 24GB | K2200

  • #18206

    Péter Baksa
    Participant

    Programmer’s text editors show it usually somewhere in the status bar (Notepad++, VS Code).
    To be very sure, use a hex editor, the first three bytes should be EF BB BF.

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

  • #18216

    Lingwisyer GC
    Participant

    Ah, rightio. I have just been using Sublime. Checking it in a hex editor, it would appear that my modification was changing the first three bytes. It works now.

    Thanks,
    Ling.

    AC18-22 AUS 6021
    Self-taught, bend it till it breaks.
    Win7 | E5620 x 2 | 24GB | K2200

You must be logged in to reply to this topic.