37
Generative Drafting Journaling Preface Basic Tasks Glossary Index © Dassault Systèmes 1994-2000. All rights reserved.

Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

  • Upload
    others

  • View
    25

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Generative Drafting Journaling

Preface

Basic Tasks

Glossary

Index

  © Dassault Systèmes 1994-2000. All rights reserved.

Page 2: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

PrefaceThe CATIA - Generative Drafting Journaling Guide has been designed to show you how tocreate drawing views starting from a CATIA script document. This book aims at illustrating theseveral stages of creation you may encounter.

The information contained in this guide is specific to Version 5 Release 5 of the CATIA -Generative Drafting workbench, which operates in a WINDOWS or UNIX workstationenvironment under the AIX, IRIX, SUN OS and HP-UX operating system.

Page 3: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Basic Tasks

CATDrawing DocumentDrawing SheetDrawing View

Drawing Basics

Page 4: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

CATDrawing Document

New CATDrawingOpen CATDrawing

Page 5: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Create a CATDrawing DocumentDefinitionCreates a new drawing.

Methods

Documents.Add

Creates a document object and adds it to the documents collection.This document becomes the active one, and a window is created to accomodate it whichbecomes the active window.Syntax

Documents.Add ( iDocType ) as DocumentiDocType as String

The type of the document to be created, here a CATDrawing.= "Drawing"

ExampleCATIA.Documents.Add ( "Drawing" )

Running The MacroOpen CATIA.1. Load the CreateCATDrawing1.CATScript macro.2. Run the macro.3.

 

Page 6: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Open a CATDrawing DocumentDefinitionOpen an existing drawing.

Methods

Documents.Open

Opens and reads a document stored in a file, displays it in a new window, adds the document tothe documents collection and the window to the windows collection, and makes both thedocument and the window the active ones.Syntax

Documents.Add ( iFileName ) as DocumentiFileName as String

The string containing the document name and path to be opened. Example

CATIA.Documents.Open ( "C:\DrawingDirectory\UserDrawing.CATDrawing" )

Running The MacroOpen CATIA.1. Check in OpenCATDrawing1.CATScript the path to the Generative Drafting JournalingGuide directory sample.

2.

Load the OpenCATDrawing1.CATScript macro.3. Run the macro.4.

 

Page 7: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Drawing Sheet

SheetDetail Sheet

Page 8: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

SheetDefinitionThe drawing sheet contains drawing views.

Methods

Activate

Activates the drawing sheet.Syntax

ActivateExample

UserSheet.Activate

Add

Creates a new drawing sheet and adds it to the DrawingSheets collection.Syntax

Add ( iSheetName ) as DrawingSheetiSheetName as String

The sheet name.Example

UserSheets.Add ( SheetName )

ForceUpdate

Updates the drawing sheet even is not necessary.Syntax

ForceUpdateExample

UserSheet.ForceUpdate

GenerateDimensions

Generates dimensions in all the drawing views of the drawing sheet from distance, length, angle,radius, and diameter 3D constraints.Only one dimension is generated for an existing constraint.Syntax

GenerateDimensionsExample

UserSheet.GenerateDimensions

Page 9: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Item

Gets a drawing sheet or detail sheet using its index or its name from the DrawingSheets collection.Syntax

Item ( iIndex ) as DrawingSheetiIndex as Variant

The sheet index (Long) or sheet name (String).Example

Set UserSheet = UserSheets.Item ( SheetIndex )

PrintOut

Prints the sheet according to thedrawing  sheet page setup on the default printer. SeePageSetup.ChooseBestOrientation, PageSetup.FitToPrinterFormat, PageSetup.FitToSheetFormat.Syntax

PrintOutExample

UserSheet.PrintOut

PrintToFile

Prints the drawing sheet according to the drawing sheet page setup in a file. SeePageSetup.ChooseBestOrientation, PageSetup.FitToPrinterFormat, PageSetup.FitToSheetFormat..Syntax

PrintToFile ( iFileName )iFileName as String

The full file name,Example

UserSheet.PrintToFile ( SheetFileName )

Remove

Removes a drawing sheet or detail sheet using its index or its name from the DrawingSheetscollection.Syntax

Remove ( iIndex )iIndex as Variant

The sheet index (Long) or sheet name (String).Example

UserSheets.Remove ( SheetIndex )

Update

Updates the drawing sheet.

Page 10: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

SyntaxUpdate

ExampleUserSheet.Update

Properties

ActiveSheet

Gets the active drawing sheet of the drawing document.Syntax

ActiveSheet as DrawingSheetExample

UserActiveSheet = UserDrawingDocument.ActiveSheet

 

DrawingSheet

Dimensions an object as drawing sheet.Example

Dim UserSheet as DrawingSheet

DrawingSheets

Dimensions an object as drawing sheets.Example

Dim UserSheets as DrawingSheets

Scale

Gets or sets the drawing sheet scale.Syntax

Scale as DoubleExample

SheetScale = UserSheet.ScaleUserSheet.Scale = 3.500000

Orientation

Gets or sets the drawing sheet orientation.Syntax

Orientation as Long= 0, the portrait orientation.= 1, the landscape orientation.= 2, the best orientation according to the print format.

Page 11: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

ExampleSheetOrientation = UserSheet.OrientationUserSheet.Orientation = 0

PageSetup.Banner

Gets or sets the drawing sheet printing banner.Syntax

PageSetup.Banner as StringAvailable variables are:$USER, the user name.$HOST, the workstation name.$SCALE, the print scale.$TIME, the print time.$DATE, the print date.$DAY, the print day.$MONTH, the print month.$YEAR, the print year.

ExampleSheetPageSetupBanner = UserSheet.PageSetup.BannerUserSheet.PageSetup.Banner = "Printed by $USER at scale $SCALE on$MONTH/$DAY/$YEAR"

PageSetup.BannerPosition

Gets or sets the drawing sheet printing banner position.Syntax

PageSetup.BannerPosition as Long= 0, the print has no banner.= 1, the banner is located along the bottom side of the print.= 2, the banner is located along the top side of the print.= 3, the banner is located along the left side of the print.= 4, the banner is located along the right side of the print.

ExampleSheetPageSetupBannerPosition = UserSheet.PageSetup.BannerPositionUserSheet.PageSetup.BannerPosition = 2

PageSetup.ChooseBestOrientation

Gets or sets the drawing sheet printing best orientation. See PageSetup.Orientation.Syntax

PageSetup.ChooseBestOrientation as Boolean= True, the drawing sheet is oriented if needed according to the print format.= False, the drawing sheet keeps its current orientation.

ExampleSheetPageSetupBestOrientation = UserSheet.PageSetup.ChooseBestOrientationUserSheet.PageSetup.ChooseBestOrientation = True

Page 12: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

PageSetup.Bottom

Gets or sets the drawing sheet printing lower left corner location with respect to the bottom of thesheet of paper.This is the distance of the document or the image to print lower left corner to the inner side of thebottom margin.Syntax

PageSetup.Bottom as FloatExample

SheetPageSetupBottom = UserSheet.PageSetup.BottomUserSheet.PageSetup.Bottom = 40.0

PageSetup.BottomMargin

Gets or sets the drawing sheet printing bottom margin.The bottom margin is a strip in which nothing is printed, located at the bottom of the page.Syntax

PageSetup.BottomMargin as FloatExample

SheetPageSetupBottomMargin = UserSheet.PageSetup.BottomMarginUserSheet.PageSetup.BottomMargin = 10.0

PageSetup.FitToPrinterFormat

Gets or sets the drawing sheet printing "fit to printer format".Syntax

PageSetup.FitToPrinterFormat as Boolean= True, the drawing sheet is fitted to the printer format.= False, the drawing sheet is not fitted to the printer format.

ExampleSheetPageSetupFitToPrinterFormat = UserSheet.PageSetup.FitToPrinterFormatUserSheet.PageSetup.FitToPrinterFormat = True

PageSetup.FitToSheetFormat

Gets or sets the drawing sheet printing "fit to sheet format".Syntax

PageSetup.FitToSheetFormat as Boolean= True, the drawing sheet is fitted to the sheet format.= False, the drawing sheet is not fitted to the sheet format.

ExampleSheetPageSetupFitToSheetFormat = UserSheet.PageSetup.FitToSheetFormatUserSheet.PageSetup.FitToSheetFormat = True

Page 13: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

PageSetup.Left

Gets or sets the drawing sheet printing lower left corner location with respect to the left of the sheet ofpaper.This is the distance of the document or the image to print lower left corner to the inner side of the leftmargin.Syntax

PageSetup.Left as FloatExample

SheetPageSetupLeft= UserSheet.PageSetup.LeftUserSheet.PageSetup.Left = 40.0

PageSetup.LeftMargin

Gets or sets the drawing sheet printing left margin.The left margin is a strip in which nothing is printed, located at the left of the page.Syntax

PageSetup.LeftMargin as FloatExample

SheetPageSetupLeftMargin = UserSheet.PageSetup.LeftMarginUserSheet.PageSetup.LeftMargin = 10

PageSetup.Logo

Gets or sets the drawing sheet printing logo file.Syntax

PageSetup.Logo as StringExample

SheetPageSetupLogo = UserSheet.PageSetup.LogoUserSheet.PageSetup.Logo = LogoFilePath

PageSetup.MaximumSize

Gets or sets the drawing sheet printing maximum size with respect to the page size and margins.If true, this overrides the location properties, that is PageSetup.Left and PageSetup.Bottom, and thePageSetup.Zoom property values.Syntax

PageSetup.MaximumSize as Boolean= True, the drawing sheet is printed with the maximum size.= False, the drawing sheet is not printed with the maximum size.

ExampleSheetPageSetupMaximumSize = UserSheet.PageSetup.MaximumSize UserSheet.PageSetup.MaximumSize = True

Page 14: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

PageSetup.Orientation

Gets or sets the drawing sheet printing orientation.Syntax

PageSetup.Orientation as Long= 0, the portrait orientation.= 1, the landscape orientation.= 2, the best orientation according to the print format.

ExampleSheetPageSetupOrientation = UserSheet.PageSetup.OrientationUserSheet.PageSetup.Orientation = 0

PageSetup.PaperHeight

Gets or sets the drawing sheet printing paper height.Syntax

PageSetup.PaperHeight as FloatExample

SheetPageSetupPaperHeight = UserSheet.PageSetup.PaperHeightUserSheet.PageSetup.PaperHeight = 297

PageSetup.PaperSize

Gets or sets the drawing sheet printing paper size.Syntax

PageSetup.PaperSize as Long= 0, the US Letter format (8.5 x 11").= 1, the Legal format (8.5 x 14").= 2, the A0 ISO format (841 x 1189 mm).= 3, the A1 ISO format (594 x 841 mm).= 4, the A2 ISO format (420 x 594 mm).= 5, the A3 ISO format (297 x 420 mm.= 6, the A4 ISO format (210 x 297 mm).= 7, the A ANSI format (8.5 x 11").= 8, the B ANSI format (11 x 17").= 9, the C ANSI format (17 x 22").= 10, the D ANSI format (22 x 34")= 11, the E ANSI format (34 x 44")= 12, the F ANSI format (28 x 40").= 13, the customized format.

ExampleSheetPageSetupPaperSize = UserSheet.PageSetup.PaperSizeUserSheet.PageSetup.PaperSize = 2

PageSetup.PaperWidth

Gets or sets the drawing sheet printing paper width.

Page 15: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

SyntaxPageSetup.PaperWidth as Float

ExampleSheetPageSetupPaperWidth = UserSheet.PageSetup.PaperWidthUserSheet.PageSetup.PaperWidth = 210

PageSetup.Quality

Gets or sets the drawing sheet printing qualitySyntax

PageSetup.Quality as Long= 0, the print quality is acceptable for drafts.= 1, the print quality is low.= 2, the print quality is medium.= 3, the print quality is high.

ExampleSheetPageSetupQuality = UserSheet.PageSetup.QualityUserSheet.PageSetup.Quality = 3

PageSetup.RightMargin

Gets or sets the drawing sheet printing right margin.The right margin is a strip in which nothing is printed, located at the right of the page.Syntax

PageSetup.RightMargin as FloatExample

SheetPageSetupRightMargin = UserSheet.PageSetup.RightMarginUserSheet.PageSetup.RightMargin = 10

PageSetup.Rotation

Gets or sets the drawing sheet printing rotation.The right margin is a strip in which nothing is printed, located at the right of the page.Syntax

PageSetup.Rotation as Long= 0, the image is not rotated.= 1, the image is rotated of 90 degrees clockwise.= 2, the image is rotated of 180 degrees clockwise.= 3, the image is rotated of 270 degrees clockwise.

ExampleSheetPageSetupRotation = UserSheet.PageSetup.RotationUserSheet.PageSetup.Rotation = 0

PageSetup.TopMargin

Gets or sets the drawing sheet printing top margin.

Page 16: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

The top margin is a strip in which nothing is printed, located at the top of the page.Syntax

PageSetup.TopMargin as FloatExample

SheetPageSetupTopMargin = UserSheet.PageSetup.TopMarginUserSheet.PageSetup.TopMargin = 10

PageSetup.Zoom

Gets or sets the drawing sheet printing zoom.Syntax

PageSetup.Zoom as FloatExample

SheetPageSetupZoom = UserSheet.PageSetup.ZoomUserSheet.PageSetup.Zoom = 3.0

PaperSize

Gets or sets the drawing sheet paper size.Syntax

PaperSize as Long= 0, the US Letter format (8.5 x 11").= 1, the Legal format (8.5 x 14").= 2, the A0 ISO format (841 x 1189 mm).= 3, the A1 ISO format (594 x 841 mm).= 4, the A2 ISO format (420 x 594 mm).= 5, the A3 ISO format (297 x 420 mm.= 6, the A4 ISO format (210 x 297 mm).= 7, the A ANSI format (8.5 x 11").= 8, the B ANSI format (11 x 17").= 9, the C ANSI format (17 x 22").= 10, the D ANSI format (22 x 34")= 11, the E ANSI format (34 x 44")= 12, the F ANSI format (28 x 40").= 13, the customized format.

ExampleSheetPaperSize = UserSheet.PaperSize UserSheet.PaperSize = 2

ProjectionMethod

Gets or sets the drawing sheet projection method.Syntax

ProjectionMethod as Long= 0, the views are created using first angle standard.= 1, the views are created using third angle standard.

Page 17: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

ExampleSheetProjectionMethod = UserSheet.ProjectionMethodUserSheet.ProjectionMethod  = 0

Sheets

Gets the collection of drawing sheets in the drawing document.Syntax

Sheets as DrawingSheetsExample

Set UserDrawingSheets = UserDrawingDocument .Sheets

Running The MacroOpen the Sheet1.CATDrawing document.1.

Load the Sheet1.CATScript macro.2. Run the macro.3.

Page 18: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

 

Page 19: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Detail SheetDefinitionThe drawing detail sheet contains drawing views used as detail in another sheet.The drawing detail sheet line reuses Sheet methods and properties.

Methods

AddDetail

Creates a new drawing detail sheet and adds it to the DrawingSheets collection.Syntax

AddDetail ( iDetailSheetName ) as DrawingSheetiDetailSheetName as String

The detail sheet name.Example

UserSheets.AddDetail ( UserDetailSheetName )

IsDetail

Gets if the sheet is a detail sheet.Syntax

IsDetail as Boolean= True, the sheet is a detail sheet.= False, the sheet is not a detail sheet.

ExampleSheetType = UserSheet.IsDetail

SetAsDetail

Sets a sheet as detail sheet.Syntax

SetAsDetailExample

UserSheet.SetAsDetail

Running The MacroOpen the DetailSheet1.CATDrawing document.1.

Page 20: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Load the DetailSheet1.CATScript macro.2. Run the macro.3.

 

Page 21: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Drawing View

View

Page 22: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

ViewDefinitionThe drawing view.

Methods

Activate

Activates the drawing view.Syntax

ActivateExample

UserView.Activate

Add

Creates a new drawing view and adds it to the DrawingViews collection.Syntax

Add ( iViewName ) as DrawingViewiViewName as String

The view name.Example

UserViews.Add ( ViewName )

AlignedWithReferenceView

Aligns the drawing view with the drawing reference view. See ReferenceView.Syntax

AlignedWithReferenceViewExample

UserView.AlignedWithReferenceView

ForceUpdate

Updates the view even is not necessary.Syntax

ForceUpdateExample

Page 23: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

UserView.ForceUpdate

IsGenerative

Gets whether the drawing view has a generative behavior.Syntax

IsGenerative as Boolean= True, the drawing view has a generative behavior.= False, the drawing view has not a generative behavior.

ExampleViewGenerative = UserView.IsGenerative

Item

Gets a drawing view using its index or its name from the DrawingViews collection.Syntax

Item ( iIndex ) as DrawingViewiIndex as Variant

The view index (Long) or view name (String).Example

Set UserView = UserViews.Item ( ViewIndex )

Remove

Removes a drawing view using its index or its name from the DrawingViews collection.Syntax

Remove ( iIndex )iIndex as Variant

The view index (Long) or view name (String).Example

UserViews.Remove ( ViewIndex )

UnAlignedWithReferenceView

Unaligns the drawing view with the drawing reference view. See ReferenceView.Syntax

UnAlignedWithReferenceViewExample

UserView.UnAlignedWithReferenceView

Update

Updates the view.

Page 24: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

SyntaxUpdate

ExampleUserView.Update

 

Properties

ActiveView

Gets the active drawing view of the drawing sheet.Syntax

ActiveView as DrawingViewExample

UserActiveView = UserSheet.ActiveView

 

Angle

Gets or sets the drawing view angle.Syntax

Angle as DoubleExample

ViewAngle = UserView.AngleUserView.Angle = 30.000000

DrawingView

Dimensions an object as drawing view .Example

Dim UserView as DrawingView

DrawingViews

Dimensions an object as drawing views.Example

Dim UserViews as DrawingViews

Factory2D

Gets or sets the drawing view 2D factory.Syntax

Page 25: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Factory2D as Factory2DExample

Set UserFactory2D = UserView.Factory2D

FrameVisualization

Gets or sets the drawing view frame visualization display.Syntax

FrameVisualization as Boolean= True, the drawing view frame visualization is displayed.= False, the drawing view frame visualization is not displayed.

ExampleViewFrameVisualizationDisplay = UserView.FrameVisualizationUserView.FrameVisualization = True

GenerativeBehavior

Gets the drawing view generative behavior.Syntax

GenerativeBehavior as DrawingViewGenerativeBehaviorExample

Set ViewGenerativeBehavior = UserView.GenerativeBehavior

GenerativeLinks

Gets the drawing view generative links.Syntax

GenerativeLinks as DrawingViewGenerativeLinksExample

Set ViewGenerativelinks = UserView.GenerativeLinks

GeometricElements

Gets the drawing view geometric elements.Syntax

GeometricElements as GeometricElementsExample

Set ViewGeometricElements = UserView.GeometricElements

ReferenceView

Gets or sets the drawing reference view.Syntax

Page 26: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

ReferenceView as DoubleExample

UserReferenceView = UserView.ReferenceViewUserView.ReferenceView = UserFrontView

Scale

Gets or sets the drawing view scale.Syntax

Scale as DoubleExample

ViewScale = UserView.ScaleUserView.Scale = 3.500000

Views

Gets the collection of drawing views in the drawing sheet.Syntax

Views as DrawingViewsExample

UserDrawingViews = UserSheet.Views

x

Gets or sets the drawing view X coordinate.Syntax

x as DoubleExample

ViewXCoordinate = UserView.xUserView.x = 100.000000

y

Gets or sets the drawing view Y coordinate.Syntax

y as DoubleExample

ViewYCoordinate = UserView.yUserView.y = 100.000000

Page 27: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Running The MacroOpen the View1.CATDrawing document.1.

Load the View1.CATScript macro.2. Run the macro.3.

 

Page 28: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide
Page 29: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Drawing Basics

PropertiesUpdate

Page 30: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

PropertiesDefinitionDrawing properties.

Methods 

Properties

DrawingDocument

Dimensions an object as drawing document.Example

Dim UserDrawingDocument as DrawingDocument

Standard

Gets or sets the drawing document standard.Syntax

Standard as Long= 0, ANSI standard.= 1, ISO standard.= 2, JIS standard.

ExampleUserDrawingSheets = UserDrawingDocument .Sheets

 

Page 31: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

UpdateDefinitionUpdates a drawing elements.

Methods

Update

Updates the drawing document.Syntax

UpdateExample

UserDrawingDocument .Update 

Page 32: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

GlossaryA

absolute position A sheet coordinates.active view A view from which you create any element: another view or 2D

dress-up. The view from which section views, section cuts and detailviews will be created. This view generally corresponds to either thefront view or the isometric view.

aligned section view A section view created from a cutting profile defined from non parallelplanes.

associative detailview

A detail view associated with a 3D element.

associativity In the Drafting workbench, the ability of child view(s) to follow thebehavior of the parent view: moving, scaling.

attribute In the Drafting workbench, the graphical and/or geometrical propertiesinherited from 3D element.

auxiliary view A view in a direction not necessarily vertical or horizontal.

Bbackground sheet A sheet dedicated to frames and title blocks.background view A sheet dedicated to frames and title blocks.back-clipping A back-clipping removes all the elements behind a pre-defined plane.

It can only be applied on an extracted view. Aback-clipping plane is aplane used for generating a back-clipping.

bill of materialA piece of information inserted into the active view of a CATDrawingdocument. For this, you can be either in the working view or in thebackground view.

breakout A breakout is a partially removed section which allows visualizing aparticular element in the view.

Ccallout A graphical representation of a cutting profile.child view A view generated from a parent view.clipped view A view modified via a clipping profile.clipping profile A zone to be kept and visualized in a view.cross hatching A symbolic representation in the form of a pattern used to display a cut

area.cut area The cut surfaces on a section view or section cut.cutting profile A set of planes used to define a section view or section cut.

Page 33: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

Ddatum feature An element defining a contacting surface on a part.datum target An element defining a contacting surface on a part and represented by

spherical or pointed locating pins.design tree Area of the document window reserved for viewing the design

specifications of a drawing, presented in the form of a tree structure.detail view A view corresponding to a zoomed particular area to be visualized.

This area to be visualized is defined by a circle or a given polygon.

drawing The root feature. Sheets are aggregated in the drawing. Views areaggregated in the sheets.

dress-up A graphical attribute of a 2D element.

Ffilter A restriction on elements to be cut in a section view or section cut, or

elements to be seen in a projection view.front view A view created from a projection plane. This view is generally used as

reference to create a projection view.

Iisometric view A 3D view that represents a part according to a given projection plane.

This view allows a perspective visualization.

Llock A locked view is a view in which any graphical modification of the

generated 2D elements is forbidden.

Mmain view The view which supports the geometry directly created in the sheet.

Oobject In the Drafting workbench, there are two kinds of object: activated and

selected. The view frame of an activated object is displayed in red.offset section view /cut A section view created from a cutting profile defined with several

parallel planes.overlay In a multi-model context, all passive elements are called overlayed

elements.

Pparent view A reference view from which another view is generated (for example a

front view from which a section view will be created). The view frameof the parent view is displayed in red. Typically the front view is aparent view. See also child view.

part A 3D entity obtained by combining different features in the Part Designworkbench.

Page 34: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

projection view A view created from an other view.

Ssection cut A view representing the intersection between the 3D geometry and the

cutting profile.section profile See cutting profile.section view In the Drafting workbench, a view representing the intersection

between the 3D geometry and the cutting profile, and all the 3Dgeometry located behind the cutting profile.

simple breakout A simple breakout removes locally a sectioned part perpendicularly tothe current view plane. You will then be able to visualize the remainingvisible inside part.

sheet A set of views. Several sheets may be created in the Draftingworkbench.

standard The international conventions that are supported in the Draftingworkbench: ANSI, ISO and JIS.

Ttemplate In the Drafting workbench, an object that is included in the document

(for example, the title block).title block A frame which contains the title block.

Uunspec breakout An unspec breakout operation removes locally a 3D part. It allows

visualizing the inside of a 3D part. It can only be applied to anextracted view.

Vview frame A square or rectangular frame that contains the geometry and

dimensions of the view.

Page 35: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

IndexA

Activate , ActiveSheet ActiveView Add , AddDetail AlignedWithReferenceView Angle

DDocuments.Add Documents.Open DrawingDocument DrawingSheet DrawingSheets DrawingView DrawingViews

FFactory2D ForceUpdate , FrameVisualization

GGenerateDimensions GenerativeBehavior GenerativeLinks GeometricElements

Page 36: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

IIsDetail IsGenerative Item ,

OOrientation

PPageSetup.Banner PageSetup.BannerPosition PageSetup.Bottom PageSetup.BottomMargin PageSetup.ChooseBestOrientation PageSetup.FitToPrinterFormat PageSetup.FitToSheetFormat PageSetup.Left PageSetup.LeftMargin PageSetup.Logo PageSetup.MaximumSize PageSetup.Orientation PageSetup.PaperHeight PageSetup.PaperSize PageSetup.PaperWidth PageSetup.Quality PageSetup.RightMargin PageSetup.Rotation PageSetup.TopMargin PageSetup.Zoom PaperSize PrintOut PrintToFile ProjectionMethod

Page 37: Generative Drafting Journaling Preface Basic Tasks Glossary Indexdunet.nicolas.free.fr/CATIAV5/drajg.pdf · 2010-08-18 · Preface The CATIA - Generative Drafting Journaling Guide

RReferenceView Remove ,

SScale , SetAsDetail Sheets Standard

UUnAlignedWithReferenceView Update , ,

VViews

Xx

Yy