Beispiel #1
0
extern Annotations::Pmi *GW_ask_annotation_pmi(Annotations::Annotation *annotation)
{
	Session *theSession = Session::GetSession();
	UI *theUI = UI::GetUI();

	try
	{
		Part *sourcePart = dynamic_cast<Part*>(annotation->OwningPart());
		return sourcePart->PmiManager()->GetDisplayInstanceParent(annotation);
	}
	catch (std::exception& ex)
	{
		theUI->NXMessageBox()->Show("Block Styler", NXOpen::NXMessageBox::DialogTypeError, ex.what());
	}
	return NULL;
}