Archicad C++ API
About Archicad add-on development using the C++ API.

Getting view offset from PMK file

Andrey Shulyak
Participant
Hi all,

I would like to ask your help to understand the question of how to link a drawing view with a model, if the view is set through the PMK file.
I check linkTypeID:
if ( drawingLinkInfo-> linkTypeID == API_DrawingLink_PMKID)
{
if (drawingLinkInfo->viewType == API_ViewNodeStory)
{

here I am using drawing.offset as offset and also

In the usual case (if the view is set directly in the model, I use getting the View through the navigator)
and get offset also from view. But it doesn't work with PMK files.
if (ACAPI_Navigator (APINavigator_GetNavigatorItemID, & drawingLinkInfo-> linkGuid, & item)
{
}
}
}

Please tell me how can I get the linking matrix to the model from the PMK file?

Thank you!
0 REPLIES 0