Jump to content
Developer Wiki and Function Reference Links ×

Creating a Viewport Custom View


Recommended Posts

Hello,

I am trying to create a custom view in a viewport.

I know the rotation i want to set

I have sucessfully made views using

"SetObjectVariableInt(vpHan, 1007, 4);" (Back View)

How does one go about setting a custom rotation of a viewport pragmatically?

I find it odd that the views (1007) do not correspond to the standard view numbers for the front, right, back & left views.

Top & Top/Plan views are correct.

Thanks in Advance

Jeff Miller

Link to comment

You should be able to use SetViewMatrix where the objectHandle can be a layer or a viewport.

Declaration:

FUNCTION SetViewMatrix(objectHandle :HANDLE; offsetX, offsetY, offsetZ :REAL; rotationXAng :REAL; rotationYAng :REAL; rotationZAng :REAL) :BOOLEAN;

Description:

Sets view matrix for layer or viewport object.

Link to comment

Thank you Miguel.

That works great.

This is my 1st script working with viewports and I have not quite figured out all the calls i can use yet.

maybe you would also know if it is possible to add a 3rd button to a custom dialog layout

"OK", "Cancel", "My Choice"

Thanks Again,

Jeff

Link to comment
  • 3 weeks later...

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...