I just performed a search and replace, substituting dots in place of comas ! It saved the file...
tks Charles On 14 out, 10:06, David Rutten <[EMAIL PROTECTED]> wrote: > Charles, > > you have to go through the xml (using an editor that can handle UTF8, > Notepad will work) and find all the places where Object Attributes are > stored. > > Inside the Xml, find the start of the Object chunk: > <chunk name="DefinitionObjects"> > > for each object chunk inside the definition: > <chunk name="Object" index="0"> > > find the Attributes chunk: > <chunk name="Attributes"> > > Inside attributes, you will find 3 sections; "Extents", "ObjectBox" > and "Pivot": > <item name="Extents" type_name="gh_drawing_rectanglef" type_code="35"> > <item name="ObjectBox" type_name="gh_drawing_rectanglef" > type_code="35"> > <item name="Pivot" type_name="gh_drawing_pointf" type_code="31"> > > inside these you will find X, Y, W and H values that indicate location > and size of grasshopper objects on the screen. Replace the commas in > these values with points. > > Then, if you're storing floating point numbers in persistent data, > you'll also have to replace those. Examples would be: > > Slider objects, which store floating point values and numeric domains: > <item name="Value" type_name="gh_double" > type_code="6">8.4927536231884062</item> > > Number parameters, point parameters, circle parameters and so on and > so forth. > > Essentially, you have to find ALL floating point numbers in the entire > XML stream and fix the decimal symbols. > > If it's a big file, you're in for a fun evening... > > -- > David Rutten > Robert McNeel & Associates
