thanks a lot ! here is just another similar question
I would like to get the whole class tree of my project into an xml schema (.xsd) to get a graphic of it i know how to export the project to an .xml file - from here I could do my own XSLT to SVG e.g. and I know how to use the ClassMehtod XMLSchema on a Class - so is there also a Project Dictionary that gives me a Project as a Class to use the ClassMehtod XMLSchema on it ? brg werner "Ram�n Jim�nez" <rjimenez@@@cicla..com...do> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Werner, > > ##this.%ClassName() gets you the class name. It receives an argument to > state whether you want to get the fully qualified class name (including > packages), if this argument is 1, or just the class name, if it's 0 or not > passed in. > > > Set cdef = ##class(%Dictionary.ClassDefinition).%OpenId("Sample.Person") > > Write cdef.Name,! > > > > => ??? isnt "cdef" the same as "##this" ??? > > Nope. "##this" is like "this" in Java, whereas "cdef" is like > "this.getClass()". So the first is a pointer to the current object, whose > properties and methods you can access. The second is a pointer to an object > describing the class to which the current object belongs. > > One of the attributes you can get from the class definition is the table > name: > > Write ##class(%Dictionary.ClassDefinition).%OpenId( > ..%ClassName(1) ).SqlTableName,! > > which has some specific differences from the class name (maybe you can > determine the algorithm to generate one from the other and skip opening the > class definition ;)) > > HTH, > > Ram�n > >
