• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haiiliin / abqpy / 12821945657

17 Jan 2025 03:11AM UTC coverage: 74.223%. First build
12821945657

Pull #5903

github

web-flow
Merge 23a7a8551 into eccbcaa0b
Pull Request #5903: Add some missing members

19 of 23 new or added lines in 5 files covered. (82.61%)

25445 of 34282 relevant lines covered (74.22%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.13
/src/abaqus/Session/SessionBase.py
1
from __future__ import annotations
1✔
2

3
from typing import Sequence
1✔
4

5
from typing_extensions import Literal
1✔
6

7
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
1✔
8

9
from ..Animation.AnimationOptions import AnimationOptions
1✔
10
from ..Animation.AVIOptions import AVIOptions
1✔
11
from ..Animation.ImageAnimation import ImageAnimation
1✔
12
from ..Animation.ImageAnimationOptions import ImageAnimationOptions
1✔
13
from ..Animation.Movie import Movie
1✔
14
from ..Animation.QuickTimeOptions import QuickTimeOptions
1✔
15
from ..Canvas.Canvas import Canvas
1✔
16
from ..Canvas.DrawingArea import DrawingArea
1✔
17
from ..Canvas.Viewport import Viewport
1✔
18
from ..CustomKernel.RepositorySupport import RepositorySupport
1✔
19
from ..DisplayGroup.DisplayGroup import DisplayGroup
1✔
20
from ..DisplayOptions.GraphicsInfo import GraphicsInfo
1✔
21
from ..DisplayOptions.GraphicsOptions import GraphicsOptions
1✔
22
from ..DisplayOptions.LightOptions import LightOptions
1✔
23
from ..DisplayOptions.ViewportAnnotationOptions import ViewportAnnotationOptions
1✔
24
from ..FieldReport.FieldReportOptions import FieldReportOptions
1✔
25
from ..FieldReport.FreeBodyReportOptions import FreeBodyReportOptions
1✔
26
from ..Job.Queue import Queue
1✔
27
from ..Mesh.MesherOptions import MesherOptions
1✔
28
from ..Odb.Odb import Odb
1✔
29
from ..Odb.ScratchOdb import ScratchOdb
1✔
30
from ..OdbDisplay.DefaultOdbDisplay import DefaultOdbDisplay
1✔
31
from ..OdbDisplay.ViewerOptions import ViewerOptions
1✔
32
from ..PathAndProbe.CurrentProbeValues import CurrentProbeValues
1✔
33
from ..PathAndProbe.FreeBody import FreeBody
1✔
34
from ..PathAndProbe.NodeQuery import NodeQuery
1✔
35
from ..PathAndProbe.Path import Path
1✔
36
from ..PathAndProbe.ProbeOptions import ProbeOptions
1✔
37
from ..PathAndProbe.ProbeReport import ProbeReport
1✔
38
from ..PathAndProbe.SelectedProbeValues import SelectedProbeValues
1✔
39
from ..PathAndProbe.Spectrum import Spectrum
1✔
40
from ..PathAndProbe.Stream import Stream
1✔
41
from ..PlotOptions.MdbData import MdbData
1✔
42
from ..PlotOptions.OdbData import OdbData
1✔
43
from ..PredefinedField.TiffOptions import TiffOptions
1✔
44
from ..Print.EpsOptions import EpsOptions
1✔
45
from ..Print.PageSetupOptions import PageSetupOptions
1✔
46
from ..Print.PngOptions import PngOptions
1✔
47
from ..Print.PrintOptions import PrintOptions
1✔
48
from ..Print.PsOptions import PsOptions
1✔
49
from ..Print.SvgOptions import SvgOptions
1✔
50
from ..Sketcher.ConstrainedSketchOptions.ConstrainedSketcherOptions import (
1✔
51
    ConstrainedSketcherOptions,
52
)
53
from ..UtilityAndView.abaqusConstants import AVI, OFF, PNG, Boolean
1✔
54
from ..UtilityAndView.abaqusConstants import abaqusConstants as C
1✔
55
from ..UtilityAndView.View import View
1✔
56
from ..XY.Chart import Chart
1✔
57
from ..XY.DefaultChartOptions import DefaultChartOptions
1✔
58
from ..XY.DefaultPlot import DefaultPlot
1✔
59
from ..XY.XYCurve import XYCurve
1✔
60
from ..XY.XYData import XYData
1✔
61
from ..XY.XYPlot import XYPlot
1✔
62
from ..XY.XYReportOptions import XYReportOptions
1✔
63
from .AutoColors import AutoColors
1✔
64
from .Color import Color
1✔
65
from .Drawing import Drawing
1✔
66
from .Image import Image
1✔
67
from .JournalOptions import JournalOptions
1✔
68
from .MemoryReductionOptions import MemoryReductionOptions
1✔
69
from .NetworkDatabaseConnector import NetworkDatabaseConnector
1✔
70

71

72
@abaqus_class_doc
1✔
73
class SessionBase:
1✔
74
    """The Session object has no constructor. Abaqus creates the **session** member when a session is started.
75

76
    .. note::
77
        This object can be accessed by::
78

79
            session
80
    """
81

82
    #: A Boolean specifying whether an Abaqus interactive session is running.
83
    attachedToGui: Boolean = OFF
1✔
84

85
    #: A Boolean specifying whether Abaqus is executing a replay file.
86
    replayInProgress: Boolean = OFF
1✔
87

88
    #: A Float specifying the memory usage value for the Abaqus/CAE kernel process in
89
    #: megabytes.
90
    kernelMemoryFootprint: float | None = None
1✔
91

92
    #: A Float specifying the maximum value for the memory usage for the Abaqus/CAE kernel
93
    #: process in megabytes.
94
    kernelMemoryMaxFootprint: float | None = None
1✔
95

96
    #: A Float specifying the limit for the memory use for the Abaqus/CAE kernel process in
97
    #: megabytes.
98
    kernelMemoryLimit: float | None = None
1✔
99

100
    #: A repository of Color objects.
101
    colors: dict[str, Color] = {}
1✔
102

103
    #: A JournalOptions object specifying how to record selection of geometry in the journal
104
    #: and replay files.
105
    journalOptions: JournalOptions = JournalOptions()
1✔
106

107
    #: A MemoryReductionOptions object specifying options for running in reduced memory mode.
108
    memoryReductionOptions: MemoryReductionOptions = MemoryReductionOptions()
1✔
109

110
    #: A NodeQuery object specifying nodes and their coordinates in a path.
111
    nodeQuery: NodeQuery = NodeQuery()
1✔
112

113
    #: A ConstrainedSketcherOptions object specifying common options for all sketches.
114
    sketcherOptions: ConstrainedSketcherOptions = ConstrainedSketcherOptions()
1✔
115

116
    #: A ViewerOptions object.
117
    viewerOptions: ViewerOptions = ViewerOptions()
1✔
118

119
    #: An AnimationOptions object.
120
    animationOptions: AnimationOptions = AnimationOptions()
1✔
121

122
    #: An AVIOptions object.
123
    aviOptions: AVIOptions = AVIOptions()
1✔
124

125
    #: An ImageAnimationOptions object.
126
    imageAnimationOptions: ImageAnimationOptions = ImageAnimationOptions()
1✔
127

128
    #: An ImageAnimation object.
129
    imageAnimation: ImageAnimation = ImageAnimation("img", AVI)
1✔
130

131
    #: A QuickTimeOptions object.
132
    quickTimeOptions: QuickTimeOptions = QuickTimeOptions()
1✔
133

134
    #: A repository of Viewport objects.
135
    viewports: dict[str, Viewport] = {}
1✔
136

137
    #: A RepositorySupport object.
138
    customData: RepositorySupport = RepositorySupport()
1✔
139

140
    #: A FieldReportOptions object.
141
    defaultFieldReportOptions: FieldReportOptions = FieldReportOptions()
1✔
142

143
    #: A FreeBodyReportOptions object.
144
    defaultFreeBodyReportOptions: FreeBodyReportOptions = FreeBodyReportOptions()
1✔
145

146
    #: A FieldReportOptions object.
147
    fieldReportOptions: FieldReportOptions = FieldReportOptions()
1✔
148

149
    #: A FreeBodyReportOptions object.
150
    freeBodyReportOptions: FreeBodyReportOptions = FreeBodyReportOptions()
1✔
151

152
    #: A repository of Odb objects.
153
    odbs: dict[str, Odb] = {}
1✔
154

155
    #: A repository of ScratchOdb objects.
156
    scratchOdbs: dict[str, ScratchOdb] = {}
1✔
157

158
    #: A DefaultOdbDisplay object.
159
    defaultOdbDisplay: DefaultOdbDisplay = DefaultOdbDisplay()
1✔
160

161
    #: A DefaultPlot object.
162
    defaultPlot: DefaultPlot = DefaultPlot()
1✔
163

164
    #: A DefaultChartOptions object.
165
    defaultChartOptions: DefaultChartOptions = DefaultChartOptions()
1✔
166

167
    #: A repository of OdbData objects.
168
    odbData: dict[str, OdbData] = {}
1✔
169

170
    #: A repository of MdbData objects.
171
    mdbData: dict[str, MdbData] = {}
1✔
172

173
    #: A repository of Path objects.
174
    paths: dict[str, Path] = {}
1✔
175

176
    #: A repository of FreeBody objects.
177
    freeBodies: dict[str, FreeBody] = {}
1✔
178

179
    #: A repository of Stream objects.
180
    streams: dict[str, Stream] = {}
1✔
181

182
    #: A repository of Spectrum objects.
183
    spectrums: dict[str, Spectrum] = {}
1✔
184

185
    #: A CurrentProbeValues object.
186
    currentProbeValues: CurrentProbeValues = CurrentProbeValues()
1✔
187

188
    #: A ProbeOptions object.
189
    defaultProbeOptions: ProbeOptions = ProbeOptions()
1✔
190

191
    #: A ProbeOptions object.
192
    probeOptions: ProbeOptions = ProbeOptions()
1✔
193

194
    #: A ProbeReport object.
195
    probeReport: ProbeReport = ProbeReport()
1✔
196

197
    #: A ProbeReport object.
198
    defaultProbeReport: ProbeReport = ProbeReport()
1✔
199

200
    #: A SelectedProbeValues object.
201
    selectedProbeValues: SelectedProbeValues = SelectedProbeValues()
1✔
202

203
    #: A PrintOptions object.
204
    printOptions: PrintOptions = PrintOptions()
1✔
205

206
    #: An EpsOptions object.
207
    epsOptions: EpsOptions = EpsOptions()
1✔
208

209
    #: A PageSetupOptions object.
210
    pageSetupOptions: PageSetupOptions = PageSetupOptions()
1✔
211

212
    #: A PngOptions object.
213
    pngOptions: PngOptions = PngOptions()
1✔
214

215
    #: A PsOptions object.
216
    psOptions: PsOptions = PsOptions()
1✔
217

218
    #: A SvgOptions object.
219
    svgOptions: SvgOptions = SvgOptions()
1✔
220

221
    #: A TiffOptions object.
222
    tiffOptions: TiffOptions = TiffOptions()
1✔
223

224
    #: An AutoColors object specifying the color palette to be used for color coding.
225
    autoColors: AutoColors = AutoColors()
1✔
226

227
    #: An AutoColors object specifying the color palette to be used forXYCurve objects.
228
    xyColors: AutoColors = AutoColors()
1✔
229

230
    #: A repository of XYData objects.
231
    xyDataObjects: dict[str, XYData] = {}
1✔
232

233
    #: A repository of XYCurve objects.
234
    curves: dict[str, XYCurve] = {}
1✔
235

236
    #: A repository of XYPlot objects.
237
    xyPlots: dict[str, XYPlot] = {}
1✔
238

239
    #: A repository of Chart objects.
240
    charts: dict[str, Chart] = {}
1✔
241

242
    #: An XYReportOptions object.
243
    defaultXYReportOptions: XYReportOptions = XYReportOptions()
1✔
244

245
    #: An XYReportOptions object.
246
    xyReportOptions: XYReportOptions = XYReportOptions()
1✔
247

248
    #: A repository of View objects.
249
    views: dict[str, View] = {}
1✔
250

251
    #: A repository of NetworkDatabaseConnector objects.
252
    networkDatabaseConnectors: dict[str, NetworkDatabaseConnector] = {}
1✔
253

254
    #: A repository of DisplayGroup objects.
255
    displayGroups: dict[str, DisplayGroup] = {}
1✔
256

257
    #: A GraphicsInfo object.
258
    graphicsInfo: GraphicsInfo = GraphicsInfo()
1✔
259

260
    #: A GraphicsOptions object.
261
    defaultGraphicsOptions: GraphicsOptions = GraphicsOptions()
1✔
262

263
    #: A GraphicsOptions object.
264
    graphicsOptions: GraphicsOptions = GraphicsOptions()
1✔
265

266
    #: A ViewportAnnotationOptions object.
267
    defaultViewportAnnotationOptions: ViewportAnnotationOptions = ViewportAnnotationOptions()
1✔
268

269
    #: A repository of Queue objects.
270
    queues: dict[str, Queue] = {}
1✔
271

272
    #: A String specifying the name of the current viewport.
273
    currentViewportName: str = ""
1✔
274

275
    #: A Dictionary object specifying the viewports and their associated models. The Dictionary
276
    #: key specifies the viewport name. The Dictionary value is a Dictionary specifying the
277
    #: model name.
278
    sessionState: dict | None = None
1✔
279

280
    #: A repository of Image objects.
281
    images: dict[str, Image] = {}
1✔
282

283
    #: A repository of Movie objects.
284
    movies: dict[str, Movie] = {}
1✔
285

286
    #: A LightOptions object.
287
    defaultLightOptions: LightOptions = LightOptions()
1✔
288

289
    #: A DrawingArea object.
290
    drawingArea: DrawingArea = DrawingArea()
1✔
291

292
    #: A MesherOptions object specifying how to control default settings in the Mesh module.
293
    defaultMesherOptions: MesherOptions = MesherOptions()
1✔
294

295
    #: A repository of Drawing objects.
296
    drawings: dict[str, Drawing] = {}
1✔
297

298
    #: This function can be accessed by: session.View
299
    View = View
1✔
300

301
    @abaqus_method_doc
1✔
302
    def setValues(self, kernelMemoryLimit: float | None = None):
1✔
303
        """This method modifies the Session object.
304

305
        Parameters
306
        ----------
307
        kernelMemoryLimit
308
            A Float specifying the memory limit value for the Abaqus/CAE kernel process in
309
            megabytes. If the limit is exceeded, Abaqus/CAE displays an error message.The default
310
            memory limit value for Windows 32-bit systems if not set is 1800 MB. Increasing the
311
            memory limit is not recommended unless you are using a Windows 32-bit system with the
312
            boot option `/3GB /userva = SizeInMBytes` to extend the amount of memory available for
313
            Abaqus/CAE. In this case the limit can be changed to 2800 MB.If the kernel memory size
314
            reaches the **abq_ker_memory** value or the virtual memory limit of the machine, the
315
            following message will be displayed:
316

317
            `Operation did not complete due to a memory allocation failure.`
318

319
            For optimal performance, the memory limit should be set to a value
320
            less than the physical amount of memory on the machine.The minimum setting allowed is
321
            256 MB.
322
        """
NEW
323
        ...
×
324

325
    @abaqus_method_doc
1✔
326
    def enableCADConnection(self, CADName: str, portNum: int | None = None):
1✔
327
        """This method enables the Abaqus/CAE listening port for the specified **CAD** system.
328

329
        Parameters
330
        ----------
331
        CADName
332
            A String specifying the CAD system. Available options are Pro/ENGINEER, CATIA V5, CATIA
333
            V6, NX and SolidWorks.
334
        portNum
335
            An Integer specifying the port number to be used by the CAD system to communicate with
336
            Abaqus/CAE. If unspecified, attempts will be made to identify an open port. The default
337
            ports used are as follow: Pro/E : 49178CATIA V5 : 49179SolidWorks : 49180NX : 49181CATIA
338
            V6 : 49182
339

340
        Returns
341
        -------
342
        int
343
            The connection port number used for the CAD connection.
344
        """
NEW
345
        ...
×
346

347
    @abaqus_method_doc
1✔
348
    def isCADConnectionEnabled(self):
1✔
349
        """This method checks the status of CAD Connection.
350

351
        Returns
352
        -------
353
        Boolean
354
            A Boolean value of True if the CAD connection enabled and False if the CAD connection
355
            disabled.
356
        """
NEW
357
        ...
×
358

359
    @abaqus_method_doc
1✔
360
    def disableCADConnection(self, CADName: str):
1✔
361
        """This method disables an associative import CAD connection that was enabled.
362

363
        Parameters
364
        ----------
365
        CADName
366
            A String specifying the CAD system for which associative import will be disabled.
367
            Available options are Pro/ENGINEER, CATIA V5, and CATIA V6, NX and SolidWorks.
368
        """
NEW
369
        ...
×
370

371
    @abaqus_method_doc
1✔
372
    def enableParameterUpdate(self, CADName: str, CADVersion: str, CADPort: int | None = None):
1✔
373
        """This method enables parameter updates for ProE and NX by establishing a connection with the listening
374
        port previously setup by the CAD application.
375

376
        Parameters
377
        ----------
378
        CADName
379
            A String specifying the CAD system for which parameter update will be enabled. Available
380
            options are Pro/ENGINEER and NX.
381
        CADVersion
382
            A String specifying the CAD system version. Allowable options take the form of the
383
            specific CAD system plus a version string. Examples for Pro/ENGINEER are "Wildfire5" and
384
            "Creo4." An NX example is "NX11."
385
        CADPort
386
            An Integer specifying the port number to be used by Abaqus/CAE to communicate with the
387
            CAD system. If unspecified, attempts will be made to identify an open port. This port
388
            number is not the same as the **portNum** used by the associative import interface. The
389
            default CAD listening ports are as follow:ProE : 3344NX : 3344
390
        """
391
        ...
×
392

393
    @abaqus_method_doc
1✔
394
    def setCADPortNumber(self, CADName: str, Port: str):
1✔
395
        """This method enables parameter updates for CATIA V5 and CATIA V6 by establishing a connection with the
396
        listening port previously setup by the CAD application. This port number is used to send the parameter
397
        information to the CAD system.
398

399
        Parameters
400
        ----------
401
        CADName
402
            A String specifying the CAD system for which the port number will be saved. The
403
            available options are 'CATIA V5' and ' CATIA V6'.
404
        Port
405
            An integer specifying the port number to be used by Abaqus/CAE to send the modified
406
            parameters to the CAD system.
407
        """
408
        ...
×
409

410
    @abaqus_method_doc
1✔
411
    def updateCADParameters(
1✔
412
        self,
413
        modelName: str,
414
        CADName: str,
415
        parameterFile: str,
416
        CADPartFile: str,
417
        CADPartName: str = "",
418
    ):
419
        """This method updates the parameters for the specified model using the specified parameter file.
420

421
        Parameters
422
        ----------
423
        modelName
424
            A String specifying the model name to update.
425
        CADName
426
            A String specifying the CAD system for which Abaqus updates the parameters. The
427
            available options are 'Pro/ENGINEER', 'CATIA V5' and 'CATIA V6'.
428
        parameterFile
429
            A parameter file containing the parameters that were exposed in the CAD system using the
430
            ``ABQ_`` prefix.
431
        CADPartFile
432
            A file name specifying the CAD part file for which parameter update is triggered.For
433
            **CADName** = 'CATIA V5' or 'CATIA V6', you can specify either products or parts using this
434
            argument. If you specify a product, Abaqus updates all of the parts associated with that
435
            product.For **CADName** = 'Pro/ENGINEER', this argument is optional, and you can specify
436
            update for parts only. However, a single file can be associated with multiple parts in
437
            the case of family tables. In this case, Abaqus updates all listed parts.
438
        CADPartName
439
            An String specifying the part name to update. This part name should match the part name
440
            in the originating CAD system.If you specify neither **CADPartFile** nor **CADPartName**
441
            during an update in which you specified **CADName** = 'Pro/ENGINEER', Abaqus updates all of
442
            the parts in the specified file.
443
        """
444
        ...
×
445

446
    @abaqus_method_doc
1✔
447
    def disableParameterUpdate(self, CADName: str):
1✔
448
        """This method disables an associative CAD connection using parameters.
449

450
        Parameters
451
        ----------
452
        CADName
453
            A String specifying the CAD system for which the parameter update will be disabled.
454
            Available option is Pro/ENGINEER.
455
        """
456
        ...
×
457

458
    @abaqus_method_doc
1✔
459
    def printToFile(
1✔
460
        self,
461
        fileName: str,
462
        format: Literal[C.PS, C.EPS, C.PNG, C.TIFF, C.SVG] = PNG,
463
        canvasObjects: Sequence[Canvas] = (),
464
        compression: Boolean = OFF,
465
    ):
466
        """This method prints canvas objects to a file using the attributes stored in the PrintOptions object
467
        and the appropriate format options object.
468

469
        Parameters
470
        ----------
471
        fileName
472
            A String specifying the file to which the image is to be written. If no file extension
473
            is supplied, an extension is added based on the selected image format (.ps, .eps, .png,
474
            .tif, .svg, or .svgz).
475
        format
476
            A SymbolicConstant specifying the image format. Possible values are PNG, SVG, TIFF, PS,
477
            and EPS. The default value is PNG.
478
        canvasObjects
479
            A sequence of canvas objects (viewports, text strings, or arrows) to print. The default
480
            is to print all canvas objects.
481
        compression
482
            A Boolean specifying the format for an SVG file. It is valid to use this argument
483
            only when **format** is SVG. Possible values are False (Uncompressed) and True (Compressed).
484

485
            .. versionchanged:: 2022
486
                It is "only" valid to use this argument ...
487
        """
488
        ...
×
489

490
    @abaqus_method_doc
1✔
491
    def printToPrinter(
1✔
492
        self,
493
        printCommand: str = "",
494
        numCopies: int = 1,
495
        canvasObjects: Sequence[Canvas] = (),
496
    ):
497
        """This method prints canvas objects to a Windows printer or to a PostScript printer. The attributes
498
        used for printing to a Windows printer are stored in the PrintOptions object and the PageSetupOptions
499
        object; the attributes used for printing to a PostScript printer are stored in the PrintOptions object
500
        and the PsOptions object.
501

502
        Parameters
503
        ----------
504
        printCommand
505
            A String specifying the operating system command or printer name to issue for printing
506
            to the printer. The default value is “lpr” or the value specified by the printOptions
507
            method. If you create a script to print directly to a Windows printer, the
508
            **printCommand** must take the following
509
            form::
510

511
                session.printToPrinter.setValues(
512
                    printCommand='PRINTER[number of characters in name]:printername PROPERTIES[number of characters in properties]:document properties'
513
                )
514

515
            The ``PROPERTIES`` is a list of characters that represents the
516
            printing preferences for the selected Windows printer. The properties are not required
517
            in a script; the printed output will use the current settings for the selected printer.
518
            You can use `'PRINTER[7]: DEFAULT'` to specify the default Windows printer.
519
        numCopies
520
            An Int specifying the number of copies to print. Possible values are 1 ≤ **numCopies** ≤
521
            100. The default value is 1.
522
        canvasObjects
523
            A sequence of canvas objects (viewports, text strings, or arrows) to print. The default
524
            is to print all canvas objects.
525

526
        Raises
527
        ------
528
        SystemError
529
            invalid print command, If **printCommand** is invalid.
530
        SystemError
531
            print command failed, If the print command fails.
532
        RangeError: numCopies must be in the range 1 <= value <= 100
533
            If **numCopies** is out of range.
534
        TypeError
535
            keyword error on compression, If **compression** is specified when **format** is not SVG.
536
        """
537
        ...
×
538

539
    @abaqus_method_doc
1✔
540
    def saveOptions(self, directory: Literal[C.HOME, C.CURRENT]):
1✔
541
        """This method saves your customized display settings.
542

543
        Parameters
544
        ----------
545
        directory
546
            A SymbolicConstant specifying the directory in which Abaqus saves the file that will be
547
            used to restore your customized settings (abaqus_2021.gpr). Possible values are HOME and
548
            CURRENT.
549
        """
550
        ...
×
551

552
    @abaqus_method_doc
1✔
553
    def writeVrmlFile(self, fileName: str, format: Boolean = OFF, canvasObjects: Sequence[Canvas] = ()):
1✔
554
        """This method exports the current viewport objects to a file.
555

556
        Parameters
557
        ----------
558
        fileName
559
            A String specifying the file to which the graphics data is to be written. If no file
560
            extension is supplied, an extension is added based on the selected format (.wrl, .wrz).
561
        format
562
            A Boolean specifying the format. Possible values are False (Uncompressed) and True
563
            (Compressed).
564
        canvasObjects
565
            A sequence of canvas objects (viewports, text strings, or arrows) to export.
566
        """
567
        ...
×
568

569
    @abaqus_method_doc
1✔
570
    def write3DXMLFile(self, fileName: str, format: Boolean = OFF, canvasObjects: Sequence[Canvas] = ()):
1✔
571
        """This method exports the current viewport objects to a file.
572

573
        Parameters
574
        ----------
575
        fileName
576
            A String specifying the file to which the graphics data is to be written. If no file
577
            extension is supplied, (.3dxml) will be added.
578
        format
579
            A Boolean specifying the format. Possible values are False (Uncompressed) and True
580
            (Compressed).
581
        canvasObjects
582
            A sequence of canvas objects to export.
583
        """
584
        ...
×
585

586
    @abaqus_method_doc
1✔
587
    def writeOBJFile(self, fileName: str, canvasObjects: Sequence[Canvas] = ()):
1✔
588
        """This method exports the current viewport objects to a file.
589

590
        Parameters
591
        ----------
592
        fileName
593
            A String specifying the file to which the graphics data is to be written. If no file
594
            extension is supplied, (.obj) will be added.
595
        canvasObjects
596
            A sequence of canvas objects to export.
597
        """
598
        ...
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc