- Timestamp:
- 01/19/12 11:42:12 (8 years ago)
- Location:
- branches/3D/openPLM
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3D/openPLM/document3D/STP_converter_WebGL.py
r659 r668 67 67 68 68 def read_file(self,doc_file): 69 STEPReader = STEPCAFControl_Reader() 70 STEPReader.ReadFile(self.filename) 69 STEPReader = STEPCAFControl_Reader() 70 71 if not STEPReader.ReadFile(self.filename) is 1: 72 return False 73 71 74 h_doc = TDocStd.Handle_TDocStd_Document() 72 75 app = XCAFApp.GetApplication().GetObject() -
branches/3D/openPLM/document3D/aficher.py
r658 r668 11 11 from OCC.TDF import * 12 12 13 import time 13 14 14 #importante, voy a eliminar tmb los shapes referenciados, es esto u problema? 15 15 #hqcer unq pruebq q mqno pqrq verificqrlo … … 20 20 my_step_importer = NEW_STEP_Import(doc_file.file.path.encode()) #simple 21 21 22 my_step_importer.read_file(doc_file) 22 if not my_step_importer.read_file(doc_file.id): 23 print "\n\n\nMAl, el fichero leido no es valido\n\n\n" 24 return False 23 25 24 26 -
branches/3D/openPLM/document3D/composer.py
r649 r668 10 10 11 11 my_step_importer = NEW_STEP_Import(new_doc_file.file.path.encode()) 12 my_step_importer.read_file( )12 my_step_importer.read_file(new_doc_file) 13 13 st=my_step_importer.get_shapes_tool() 14 14 lr= TDF_LabelSequence() -
branches/3D/openPLM/document3D/models.py
r661 r668 76 76 self.nom = nom 77 77 self.shape = shape 78 79 class part_reference(object): 80 81 __slots__ = ("nom", "loc", "quantity","labels") 82 83 84 def __init__(self, nom,location,step_ref): 85 self.nom = nom 86 self.loc = location 87 self.quantity=len(nom) 88 self.step_ref=step_ref 78 89 79 90 80 #la referencia deberia ser un nombre de fichero o un docfile completo? … … 213 203 214 204 215 205 return True 216 206 217 207 -
branches/3D/openPLM/document3D/tests.py
r667 r668 28 28 myfile = File(f) 29 29 new_doc_file=self.document.add_file(myfile) 30 #print myfile.name 30 31 32 33 34 def test_add_false_STEP(self): 35 f=open("document3D/data_test/stp_false.stp") 36 myfile = File(f) 37 new_doc_file=self.document.add_file(myfile) 38 39 def test_supression_STEP(self): 40 f=open("document3D/data_test/test.stp") 41 myfile = File(f) 42 new_doc_file=self.document.add_file(myfile) 43 self.document.delete_file(new_doc_file) 44 31 45 32 46 ###############################################a hacer, comparar los jss generados### … … 40 54 """ 41 55 42 56 ############################################# test check-in 57 58 59 ############################################# test check-out 43 60 44 61 -
branches/3D/openPLM/plmapp/tests/archive.py
r662 r668 10 10 def setUp(self): 11 11 super(ArchiveViewTestCase, self).setUp() 12 self.document = Document Controller.create('doc1', 'Document',12 self.document = Document3DController.create('doc1', 'Document', 13 13 'a', self.user, self.DATA) 14 14 self.filenames = [] -
branches/3D/openPLM/runserver.sh
r613 r668 1 1 #! /usr/bin/env sh 2 2 ./manage.py celeryd -Q mails,index,celery,step -c 3 -l info & 3 python -m smtpd -n -c DebuggingServer localhost: 1025 &3 python -m smtpd -n -c DebuggingServer localhost:8085 & 4 4 ./manage.py runserver 5 5 exit 0
Note: See TracChangeset
for help on using the changeset viewer.