importGraphics

Syntax

<Path>.importGraphics(FilePath:string, YUpToZUp:boolean, MoveContentToZeroY:boolean) → any

The method importGraphics imports a graphic from the file and adds it to the existing graphic in the window of the scene designated by <Path>.

3D can import files of these types:

Note:

3D uses the file name of the graphic as the name of the graphic node.

Parameters

  • The parameter FilePath of data type string sets path to the graphic to be imported.

  • The parameter YUpToZUp of data type boolean sets if up-direction, i. e., the y-direction of the imported graphic, will be converted from the y-direction to the z-direction.

  • The parameter MoveContentToZero of data type boolean sets if the visible center of the imported graphic is to be moved to the center of the scene defined by the coordinates 0,0,0 (true) or not (false).

Return Value

The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.

Example

var i := _3D.getGraphic("deco").importGraphics("C:\Plant Simulation 15\3D\jt-graphics\Robot Kuka.jt", true, true).Position.Z := 3
MyFrame._3D.setGraphicName([i], "RobotKuka")

Related Topics

Import Graphics

_3D.getGraphic

optimizeByPruningTinyGraphics

optimizeByStructureFlattening

optimizeByVisibilityFilter