Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

JTOpen API to open existing jt file

Hello Experts,

 

I want to open an existing jt file and add a text to it using JT Open API. Is this possible ? Please give me some hints (sample code) to do it.

 

Thank you in advance.

 

Regards,

Gowreeswar

1 REPLY
Solution
Solution
Accepted by topic author Gowreeswar
‎08-09-2016 12:33 PM

Re: JTOpen API to open existing jt file

Hello everyone, I figured out how to open an existing JT using API 

 

JtkEntityPtr<JtkCADImporter> importer;
importer = JtkEntityFactory::createCADImporter();

 

JtkEntityPtr<JtkHierarchy> root;
root = importer->import( "<jt path>");

 

and to create PMI

// Note
JtkEntityPtr<JtkPMINote> note = ( JtkPMINote* )JtkEntityFactory::createPMI( JtkEntity::JtkPMINOTE, child );
double noteOrigin[ 3 ] = { 0, 10, 0 };
double noteBottomRight[ 3 ] = { -1, 10, 0 };
double noteTopLeft[ 3 ] = { 0, 10, 1 };
note->setVisualFrame( noteOrigin, noteBottomRight, noteTopLeft );
double arTxtBox[ ] = { -10, -1, 10, 0, 0, 1 };
note->addVisualTextData( "top view", arTxtBox, 1, 0, 0 );

 

 

 

What is JT?

JT is the World’s Most Widely Used 3D File Format for PLM

JT is the common language of PLM and is the world’s most widely used 3D format. JT is the first ISO International Standard ( IS 14306-1) for 3D visualization and collaboration. Compact and accurate, JT is used throughout the product development lifecycle in all major industries to communicate the critical design information typically locked up inside a CAD file.

Siemens PLM Software customers rely on JT to be the most robust 3D visualization format available.

JT Open Factsheet
JT Open Member Resources
JT Open Documentation Technology
JT Open File Format Technology
JT Open Toolkit

Downloadable viewers for Windows Desktop, Windows 10 Universal App, Android and iOS.


Download JT2Go for your platform today Download JT2Go Desktop 64 Bit all languages
Download JT2Go Desktop 32 Bit for English
Windows 10 JT2Go Universal App
Android JT2Go
iOS JT2Go