Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

isometric view

Status
Not open for further replies.

mayrou

Electrical
Jan 8, 2014
55
TN
Hello World!

I want to develop in macro that create an isometric view in a CATDrawing from a product!
help please!
regards
 
Replies continue below

Recommended for you

Hi

Try

Code:
       ' Create a view called "Isometrical View" in the sheet
    Dim oIsoView As DrawingView
    Set oIsoView = oSheet.Views.Add("Isometrical View")

    ' Retrieve it generative behavior
    Dim oIsoViewGB As DrawingViewGenerativeBehavior
    Set oIsoViewGB = oIsoView.GenerativeBehavior

    ' Declare the part to draw in this iso view
    oIsoViewGB.Document = oPartToDraw

    ' Define this view as a iso view, with the XY plane (in oPartToDraw) as projection plane 
    oIsoViewGB.DefineIsometricView  0.925456, -0.042455, 0.376469, 0.109966, 0.981023, -0.159692
    
    ' Position the View in the Sheet
    oIsoView.x = 300
    oIsoView.y = 400

    ' Update the view
    oIsoViewGB.Update

Regards
Fernando

 
fedro said:
Define this view as a iso view, with the XY plane (in oPartToDraw) as projection plane

thanks a lot :)
the program runs! but i don't know why the TopView is inclined!
the fact that i work in a CATproduct, I want to change projection plane to another part's plane
but i don't know how!
is it possible?
regards
 
meaning instead of using product plane projection i want to project views from another plane of a specific part!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top