Exporting view origin as DXF origin

Samarinder Singh Cheema

Exporting view origin as DXF origin
(in response to Samarinder Singh Cheema)

Hello All,

Is there any way to export some dxf file with specified origin? As of now Catia saves sheet origin(lower left corner) as dxf origin.

Or can I move my view on the lower left corner of sheet by aligning its origin to that corner with exact precision?

Thanks

Samarinder Singh Cheema

RE: Exporting view origin as DXF origin

I got the workaround using "View Positioning - Set Relative Position" and move view to lower left corner of the sheet.

Thanks

Dave Frank

RE: Exporting view origin as DXF origin
(in response to Samarinder Singh Cheema)

Hi all,

 

I have this same requirement. I looked at the help View Positioning - Set Relative Position, thanks to Samarinder's hint.

I can get the black do to blink red, and move things around, but see no way other the “eye ball”…. Just a visual line up. It there a way to just type in X0 Y0, or a contextual selection somewhere to snap the view to the lower right hand corner?

Thanks

Dave




Dave Frank  *    Bell Helicopter *  Grand Prairie Texas

Advanced Computer Aided Manufacturing Systems Engineer

COE Product Co-Chairman, Digital Numerical Control

 

Samarinder Singh Cheema

RE: Exporting view origin as DXF origin
(in response to Dave Frank)

Hi Dave,

Here is the macro and it works fine in R22 sp4.

'Module1_Move_ViewOrigin

Sub CATMain()

Dim drawingDocument1 As DrawingDocument
Set drawingDocument1 = CATIA.ActiveDocument

Dim drawingSheets1 As DrawingSheets
Set drawingSheets1 = drawingDocument1.Sheets

Dim drawingSheet1 As DrawingSheet
Set drawingSheet1 = drawingSheets1.Item("Sheet.1")

Dim drawingViews1 As DrawingViews
Set drawingViews1 = drawingSheet1.Views

Dim drawingView1 As DrawingView
Set drawingView1 = drawingViews1.Item("Front view")

drawingView1.Activate

drawingView1.xAxisData = 0#
drawingView1.yAxisData = 0#

End Sub

 

Regards,
Samarinder