Makoron
カタマリの王様!?     
オフライン
投稿: 1277

SW2011SP5.0
|
 |
Re:図面ビューの回転
« 返信 #1 投稿日: 2004/04/12 - 18:38:29 » |
|
(3.14159265358979 / 180) * 90 私はこの計算で90度のラジアン角度を出しているのですがどうでしょうか?
一応、ビューを回転させる動作をマクロで記録して、角度部分を上記の計算式で計算させて見ましたが、SWの画面上は90度と出てくれました。 Sub main() Set swApp = Application.SldWorks Set Part = swApp.ActiveDoc boolstatus = Part.Extension.SelectByID("図面ビュー1", _ "DRAWINGVIEW", _ 0.2480234255319, _ 0.297456287234, _ 0, _ False, _ 0, _ Nothing) Part.DrawingViewRotate (3.14159265358979 / 180) * 90 End Sub
|