Search the Knowledge Base Report a bug
Post new topic   Reply to topic   printer-friendly view   .    ArchiCAD-Talk Forum Index >>> Developer Forum >>> GSM file format spec
View previous topic :: View next topic
Author Message
HPW
New member
New member

Joined: 13 Jul 2005
Posts: 8
Location: Germany

PostPosted: Wed Jul 13, 2005 8:44 am    Post subject: GSM file format spec Reply with quote

Hello to all,

Is there a detailed GSM file format specification in the developer support stuff?
It would be handy to be able to write GSM-file from other programming enviroments.
Information about header-structure, byte-offsets of internal sections etc. would be usefull for that.

I had considered to use the XML-converter, but a first test (l2x and back) failed.
Also it is quite big and I am not sure if it can be redistributed (license?) with an application.

_________________
Hans-Peter
Back to top
View user's profile Send private message    
Karl Ottenstein
Moderator
Moderator

Joined: 28 Oct 2003
Posts: 7793
Location: Bozeman, Montana USA

PostPosted: Wed Jul 13, 2005 6:25 pm    Post subject: Re: GSM file format spec Reply with quote

This information, and more is available in the GDL Developers Kit.

The last we heard (a year ago), you can apply to Graphisoft to get a copy of this, describing the intended project, etc. Please see this message from Akos Pfemeter:
http://archicad-talk.graphisoft.com/viewtopic.php?p=19695#19695

Karl

_________________
AC 20 US, Artlantis 5, Adobe CS 6, Piranesi 6, Final Cut Pro X, etc.
8 Core 2.8 Mac Pro/12GB RAM, SSD, ATI 5770/1GB, 27" LED Cinema/Dell U2415: OS 10.11.6
Back to top
View user's profile Send private message    
Ralph Wessel
Senior member
Senior member

Joined: 06 Nov 2003
Posts: 1493
Location: United Kingdom

PostPosted: Thu Jul 14, 2005 10:24 pm    Post subject: Re: GSM file format spec Reply with quote

HPW wrote:
I had considered to use the XML-converter, but a first test (l2x and back) failed.

What was the nature of the failure? I use the XML converter a lot and it has been reliable so far.

_________________
Ralph Wessel
Cadimage
Back to top
View user's profile Send private message Visit poster's website    
HPW
New member
New member

Joined: 13 Jul 2005
Posts: 8
Location: Germany

PostPosted: Fri Jul 15, 2005 7:13 am    Post subject: Re: GSM file format spec Reply with quote

I took for exsample the folder 'moebel' from obejct explorer 2.0 and convert it to XML and back. There I look at Armstuhl_4.gsm

When I the watch the GSM in GDL-explorer it always shows an error on displaying the 3DView:
Stiftnummer ist kleiner als 1 oder groesser als 255 bei Zeile 7 von Datei 4A4C_Armstuhl_4.gsm

Translation:
pen-number is lesser than 1 and bigger than 255 at line 7 of file 4A4C_Armstuhl_4.gsm

Why this error? I do not change anything.
Why '4A4C_' in front of the filename?

The UI interface shows up and worked.

_________________
Hans-Peter
Back to top
View user's profile Send private message    
HPW
New member
New member

Joined: 13 Jul 2005
Posts: 8
Location: Germany

PostPosted: Fri Jul 15, 2005 7:36 am    Post subject: Re: GSM file format spec Reply with quote

Also strange:

When I convert the new GSM back to XML and made a diff between the XML from original and converted they only differ in the second version-GUID.

Also the 2 lines which cause the error are:

7 pen gs_cont_pen
19 pen gs_cont_pen

And a HEX diff between the 2 GSM show a slightly diff in some sections.
So the copy is definatly different form the original besides the version GUID.

_________________
Hans-Peter
Back to top
View user's profile Send private message    
gerd
Junior member
Junior member

Joined: 28 Jul 2005
Posts: 86
Location: Germany

PostPosted: Fri Aug 05, 2005 10:25 am    Post subject: Re: GSM file format spec Reply with quote

I'm not a programmer, but here are some tipps, hope it will help:

general things:
- the files from the sample library coming with gdl explorer 2.0 are gdl version 20 (= ArchiCAD 8.x),
- the xml-gdl converter is for archicad 9; (gdl version 21), so differences between output and original file is not amazing, because the conversion brings also a conversion from gdl version 20 to 21

the problem with the gs_cont_pen: you should check, if the so named parameter is available in the parameterlist in the new version of the file:
- if not its value is 0 and then the problem appears
- if its there, but the standard value is set to 0 the problem will also appear
(pen 0 can be used for fill background, but not for lines and contures)

hope it will help a little, best regards, g
Back to top
View user's profile Send private message    
HPW
New member
New member

Joined: 13 Jul 2005
Posts: 8
Location: Germany

PostPosted: Sun Aug 07, 2005 7:34 am    Post subject: Re: GSM file format spec Reply with quote

Thanks for the additional info.
In the meantime I found an older XML-converter in the archieves and got some doku about GSM-format from the graphisoft developer support.
Now it's time to learn more about it.
Wink

_________________
Hans-Peter
Back to top
View user's profile Send private message    
gerd
Junior member
Junior member

Joined: 28 Jul 2005
Posts: 86
Location: Germany

PostPosted: Mon Aug 08, 2005 7:34 am    Post subject: Re: GSM file format spec Reply with quote

HPW wrote:
... Now it's time to learn more about it.Wink


it would be nice to get some short summaries from your cognitions!
best regards, g
Back to top
View user's profile Send private message    
Display posts from previous:   
View previous topic :: View next topic
Post new topic   Reply to topic   printer-friendly view       ArchiCAD-Talk Forum Index >>> Developer Forum >>> GSM file format spec All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2001, 2005 phpBB Group
Copyright 2012 - Graphisoft SE. All rights reserved worldwide. Terms of Use | Privacy Policy