2011/10/28 Thomas Paviot <tpav...@gmail.com> > 2011/10/28 Pierre JUILLARD <pierre.juill...@gmail.com> > >> Hi, >> >> I am having trouble understanding Units. >> I am working in pydev module of Eclipse. >> >> I could run successfully the "surfacic_mesh.py" to validate pythonOCC 0.5 >> installation (while qt viewer is still displaying "pythonOCC 0.4 viewer" - >> see enclosed picture: ~weird~). >> >> Well, I carried out different tests summed up in the enclosed word >> document. >> It systematically leads to some errors, maybe from me, maybe from OCC or >> PythonOCC. >> >> The thnig is that I couldn't find in the documentation any examples, and I >> don't know what values for the arguments are allowed. >> Please, would someone have some advices concerning: >> - the errors I get >> - where I could find some examples. There are indeed some methods or >> attributes that seems interesting by their name, by I don't know exactly how >> to use them. For instance: >> UnitsFile(*args): UnitsFile(char afile) : which format is accepted? what >> this kind of file has to contain? >> LexiconFile(*args): LexiconFile(char afile) : same questions? >> DictionaryOfUnits(amode=0): DictionaryOfUnits(Standard_Boolean amode = 0): >> what is the meaning of this boolean? >> Units_UnitsSystem >> ... >> > > Hi Pierre, > > I have no idea about Units module (never used it). Maybe you could start > with the UnitsAPI module, which provides an API on top of Units. Search the > OCCForum with the keyword "UnitsAPI" and you'll get a few answers. > > HTH, > > Thomas > > If you look into the OCE/src/UnitsAPI folder, you will find examples of units files: MDTVBaseUnits, MDTVCurrentUnits and CurrentUnits.
Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users