Showing results for 
Search instead for 
Did you mean: 

Origin of a JtkPMINote




i try to assign a JtkPMINote to a sphere model. Unfortunately the note does not point to the sphere, but obviously to the origin.

In the picture you can see the sphere at the red arrow. The blue note is the result of my code.

The green line shows what I want to achieve.

How can i achieve this?


Here is my code snippet - mostly is taken from the example PMI_New

				//Convert float values x, y, z of the sphere to double
				double x = (double)point->OriginX;
				double y = (double)point->OriginY;
				double z = (double)point->OriginZ;

				// Note
				JtkEntityPtr<JtkPMINote> note = (JtkPMINote*)JtkEntityFactory::createPMI(JtkEntity::JtkPMINOTE, root);
				double noteOrigin[3] = { x, y, z };
				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(sphereName, arTxtBox, 1, 0, 0);

Re: Origin of a JtkPMINote

Valued Contributor
Valued Contributor
You pass the root to the createPMI method. Try passing the sphere instead, casting it to a JtkUnitHierarchy*


Re: Origin of a JtkPMINote

Thank you very much for the answer. Unfortunately I cannot try your solution because the evaluation period expired by the end of May.

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