pycatia.in_interfaces.window¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.in_interfaces.window.Window(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectWindowRepresents the window.The window is the object that accommodates one or several viewers to displayyour objects, and which makes the link with the windowingsystem.- activate() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Activate()Activates a window. The active window is deactivated and the window towhich the method applies is activated instead.Example:This example activates the CADWindow window.CADWindow.Activate()
- Return type:
None
- activate_next() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ActivateNext()Activates the window following the current active one in the windowcollection.Example:This example activates the window following the current CADWindowwindow in the window collection.CADWindow.ActivateNext()
- Return type:
None
- activate_previous() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ActivatePrevious()Activates the window preceding the current active one in the windowcollection.Example:This example activates the window preceding the current CADWindowwindow in the window collection.CADWindow.ActivatePrevious()
- Return type:
None
- property active_viewer: Viewer¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ActiveViewer() As Viewer (Read Only)Returns the active viewer in the window.Example:This example retrieves the active viewer in the CADWindow window inViewerToWorkIn.Dim ViewerToWorkIn As ViewerSet ViewerToWorkIn = CADWindow.ActiveViewer
- Return type:
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Caption() As CATBSTRReturns or sets the window caption. The window caption is displayed in thetitle bar.Example:This example sets the window caption for the CADWindow window to: CAD3D Window.CADWindow.Caption = “CAD 3D Window”
- Return type:
str
- close() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Close()Closes the window. This method displays the dialog box requesting whetherto save the file if the document was modified, except if theApplication.DisplayFileAlerts property was previously set toFalse.Example:This example closes the CADWindow window.CADWindow.Close()
- Return type:
None
- property height: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Height() As longReturns or sets the window height. The window height is expressed inpixels.Example:This example sets the window height for the CADWindow window to 300pixels.CADWindow.Width = 300
- Return type:
int
- property left: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Left() As longReturns or sets the distance of the window with respect to the inner leftside of the frame. This distance is expressed in pixels.Example:This example sets the distance of the window with respect to the innerleft side of the frame for the CADWindow window to 150pixels.CADWindow.Left = 150
- Return type:
int
- new_window() Window ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func NewWindow() As WindowCreates a new window. The new window displays the same document with thesame viewers and viewpoints than the window to which the method applies, andbecomes the active one.Example:This example creates a new window named CADNewWindow from the CADWindowwindow.Dim CADNewWindow As WindowSet CADNewWindow = CADWindow.NewWindow()
- Return type:
- property page_setup: PageSetup¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property PageSetup() As PageSetupReturns or sets the page setup of the window. The page setup includes allparameters to print the window.Example:This example sets the page setup for the CADWindow window to anexisting page setup for the A4 paper size A4PageSetup.CADWindow.PageSetup = A4PageSetup
- Return type:
- print_out() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PrintOut()Prints the active viewer of the window according to the window’s page setupon the default printer.Example:This example prints the CADWindow window’s active viewer on the defaultprinter.CADWindow.PrintOut()
- Return type:
None
- print_to_file(file_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PrintToFile(CATBSTR fileName)Prints the active viewer of the window according to the window’s page setupin a file instead of being sent to a printer.Parameters:fileNameThe full pathname of the file receiving the data.Example:This example prints the CADWindow window’s active viewer in afile.CADWindow.PrintToFile(“e:tempcadwin.prn”)
- Parameters:
file_name (str) –
- Return type:
None
- property top: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Top() As longReturns or sets the distance of the window with respect to the inner topside of the frame. This distance is expressed in pixels.Example:This example sets the distance of the window with respect to the innertop side of the frame for the CADWindow window to 50pixels.CADWindow.Top = 50
- Return type:
int
- property viewers: Viewers¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Viewers() As Viewers (Read Only)Returns the collection of viewers attached to the window.Example:This example retrieves the collection of viewers attached to theCADWindow window in ViewerCollection.Dim ViewerCollection As ViewersSet ViewerCollection = CADWindow.Viewers
- Return type:
- property width: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Width() As longReturns or sets the window width. The window width is expressed inpixels.Example:This example sets the window width for the CADWindow window to 450pixels.CADWindow.Width = 450
- Return type:
int
- property window_state: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property WindowState() As CatWindowStateReturns or sets the window state.Example:This example sets the window state for the CADWindow window tocatWindowStateMaximized.CADWindow.WindowState = catWindowStateMaximized
- Returns:
enum cat_window_state
- Return type:
int