Jump to content

Is there a way to redefine a saved view matrix via the SDK?


Recommended Posts

Posted (edited)

We want to update the matrix of a saved view of perspective type. In the UI this is handled via "Redefine..." in the Navigation palette and also allows you to change some restore options but those are not relevant for us.

 

I don't see any methods in the SDK that would allows us to do this. There is gSDK->EditSavedViewWithUI but that opens the Edit dialog, which does not update the matrix, only the other options and the name. A way to trigger to open up the Redefine UI would also be fine for us.

 

"Redefine..." seems update the matrix on the saveViewNode. Would it be possible to directly modify these fields with our new matrix?

 

image.thumb.png.666c29d881245a7c65820f1bd0554558.png

Edited by JHangstoerfer
Link to comment
On 5/9/2022 at 5:50 PM, Maarten DE said:

Since you know where the matrix is located in the aux list, you should be able to adjust it using the aux functions: https://developer.vectorworks.net/index.php/Category:VCOM:VectorWorks:ISDK(Auxiliary_and_Data_Objects)

 

I thought I had some code where I adjusted something in an aux list, but I can't find it anymore...

 

 

I don't see a way to read or write the fields from my screenshot directly. It might be possible they are additionally saved in tagged user data but I don't have the dataTags and dataIndex to read those values without brute forcing to find them.

Link to comment
On 5/11/2022 at 10:04 AM, JHangstoerfer said:

It might be possible they are additionally saved in tagged user data but I don't have the dataTags and dataIndex to read those values without brute forcing to find them.


There is some tagged data below saveViewNode but nothing looks like the information that we want.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...