![]() ![]() > model = Model() > model.open() # Opens a temp file in OrcaFlex.exe 4. ![]() Won't return until the OrcaFlex.exe instance is closed. This will open the model in the OrcaFlex GUI, if the model does not exist on disc then a windows temp file will be created. added a model_name attribute (added in v0.0.9) of the file name without path or extensions: > model = Model(r"C:\path\to\data_file.dat") > model.model_name "data_file" 3. added path attribute so the location of the model on the disc can be found from: > model = Model(r"C:\path\to\data_file.dat") > model.path "C:\path\to\data_file.dat" 2. class Model ( Model ): """Wrapper around OrcFxAPI.Model to add extra functionality. VertexZ = z else : _xyz_to_clipboard ( x, y, z ) """ l = length / 2.0 d = depth / 2.0 b = beam / 2.0 x = y = z = * 5 + * 5 bow_scaling =, 1, 1, bow_scale, bow_scale, bow_scale, 1, 1, bow_scale ] x = if vessel_type and vessel_type. if an `OrcaFlexObject` with `typeName=otVesselType` is passed as the vessel_type parameter then the drawing will be applied otherwise the correct array is copied to the clipboard to paste into the vessel type drawing table. Bow shape determined by the bow_scale parameter. Def vessel_drawing ( length, depth, beam, bow_scale = ( 0.9, 0.95 ), vessel_type = None ): """scale the default OrcaFlex vessel type drawing Given a vessel of specifed length, depth and beam. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |