J. Miller Posted July 26, 2009 Share Posted July 26, 2009 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 Quote Link to comment
Miguel Barrera Posted July 27, 2009 Share Posted July 27, 2009 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. Quote Link to comment
J. Miller Posted July 27, 2009 Author Share Posted July 27, 2009 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 Quote Link to comment
Miguel Barrera Posted July 29, 2009 Share Posted July 29, 2009 You can add as many buttons as you like in a custom dialog. The predefined dialogs cannot be modified other than providing the message and default string that will appear in it. Quote Link to comment
J. Miller Posted August 16, 2009 Author Share Posted August 16, 2009 hello, What I was hoping to do was to add a button next to the "OK" & "Cancel" buttons and not in the actual custom dialog area. Jeff miller Quote Link to comment
MullinRJ Posted August 16, 2009 Share Posted August 16, 2009 I'd like that, too. But, no can do. Raymond Quote Link to comment
ccroft Posted August 17, 2009 Share Posted August 17, 2009 I would also like that. I have some classic dialogs with this, but I guess I won't for long. I can't remember... is it the next version that will no longer support them? Quote Link to comment
Recommended Posts
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.