İÇİndekİler · public/private İfadelerinin kullanımı 184 uygulama 8 187 6 filesystem...
TRANSCRIPT
İÇİNDEKİLER IX
İÇİNDEKİLER
KISIM 1 1
1 VB KULLANIMI 3VBA 4VBS 5VBA ve VBS Karşılaştırması 6
2 TEMEL VB KULLANIMI 13Kodlama Önerileri 13Prosedürler 17Değişkenler 23Sabitler 28Uygulama 1 30Veri Tipleri 31İşleçler 32If Yapısı 37Select Case Yapısı 44Do Loop Yapısı 49For Next Yapısı 52For Each Next Yapısı 55Uygulama 2.1 56Uygulama 2.2 57Uygulama 2.3 58Diziler 60Hata Yakalama 64Uygulama 3.1 69Uygulama 3.2 71
3 VISUAL BASIC FONKSİYONLARI 75Metin Fonksiyonları 76
Left 76Right 76Mid 76InStr 77InStrRev 78Replace 78Trim, LTrim, RTrim 79UCase, LCase 80String 80Space 80Len 81
Uygulama 4.1 83Uygulama 4.2 85
VISUAL BASIC İLE CATIA V5 OTOMASYONUX
Matematik Fonksiyonları 86Abs 86Int 86Rnd 87Round 88Sgn 88Sqr 88
Uygulama 5 90Tarih/Saat Fonksiyonları 93
Date 93Time 93Now 93Year 94Month 94Day 94Hour 94Minute 95Second 95DateSerial 95TimeSerial 95DateValue 96TimeValue 96Weekday 96WeekdayName 96MonthName 97Timer 97DateDiff 98DateAdd 98DatePart 99
Uygulama 6.1 101Uygulama 6.2 102Uygulama 6.3 103Dizi Fonksiyonları 104
Array 104Split 104UBound 105Join 105IsArray 105
Değişken Fonksiyonları 107Değişken Dönüştürme Fonksiyonları 107Değişken Kontrol Fonksiyonları 108Değişken Tipi Belirleme Fonksiyonları 109
Uygulama 7 110Biçimlendirme Fonksiyonları 112
FormatNumber 112FormatDateTime 113
İÇİNDEKİLER XI
Diyalog Kutusu Fonksiyonları 114Mesaj Kutusu 114Giriş Kutusu 118
4 NESNE TABANLI PROGRAMLAMA 123Nesne Nedir? 123Nesne Referansı Oluşturma Fonksiyonları 126
5 TEMEL VBA KULLANIMI 133Arayüz 134Kod Penceresi 135Insert Menüsü 137Run Menüsü 139Formlar (User Form) 141Project Explorer 142Araç Kutusu (Toolbox) 143Format Menüsü 148Özellikler Penceresi 149File Menüsü 151Özellikler 154Olaylar 157Edit Menüsü 158Olay Parametreleri 161Debug Menüsü 167View Menüsü 169Watch Penceresi 170Immediate Penceresi 173Edit Araç Çubuğu 175Tools Menüsü 176Reference Ekleme 177Kontrol Ekleme 178Options Penceresi 180Object Browser 182Public/Private İfadelerinin Kullanımı 184Uygulama 8 187
6 FILESYSTEM NESNESİ OTOMASYONU 189FileSystem Nesnesi 192File Nesnesi 201TextStream Nesnesi 206Uygulama 9.1 212Uygulama 9.2 216
7 EXCEL OTOMASYONU 221Makro Kaydı 222Uygulama 10 228
VISUAL BASIC İLE CATIA V5 OTOMASYONUXII
Çalışma Sayfasına Makro Düğmesi Ekleme 229Adres Çubuğunda Fonksiyon Çağırma 232With…End With Yapısı 233İsimlendirilmiş Parametreler 235Application Nesnesi 236
Visible 236Quit 236DisplayAlerts 237ActiveWorkbook 237ActiveSheet 237ActiveCell 238Workbooks 238Windows 238Dialogs 239FileDialog 240
Workbooks Nesnesi 241Add 241Open 241Count 241Item 242
Workbook Nesnesi 242Activate 242Close 242PrintOut 243Save 243SaveAs 243FullName 244Worksheets 244
Worksheets Nesnesi 245Count 245Item 245Add 245
Worksheet Nesnesi 246Activate 246Copy 246Delete 247Paste 247PageSetup 248UsedRange 248Visible 248Columns 248Rows 249Cells 249
Range Nesnesi 250Activate 251Select 251ClearContent 251
İÇİNDEKİLER XIII
Copy 251Cut 252Font 252Interior 252Value 253Formula 253FormulaR1C1 253Row 254Column 254RemoveDuplicates 254TextToColumns 255
Selection Nesnesi 256Uygulama 11 257Uygulama 12 261Uygulama 13 267Uygulama 14 270Uygulama 15 274
8 MS OFFICE OTOMASYONU ÖRNEKLERİ 281PowerPoint Otomasyonu Örneği 281Word Otomasyonu Örneği 1 284Word Otomasyonu Örneği 2 287
KISIM 2 289
1 CATIA OTOMASYONU 291CATIA Makroları 292
VBA Makroları 293VBS Makroları 293Tools/Macro Menü Sekmesi 298Macros Penceresi 299Makro Türleri 304Makroları Çalıştırma 306
Uygulama 1 308Araç Çubuklarına Makro Ekleme 311
Makro Kaydetme 314Uygulama 2 315
2 GENEL CATIA NESNELERİ 319Application Nesnesi 320
Visible Özelliği 321Pozisyon ve Boyut Özellikleri 321Caption Özelliği 322StatusBar Özelliği 322ActiveDocument Özelliği 322ActiveWindow Özelliği 322
VISUAL BASIC İLE CATIA V5 OTOMASYONUXIV
ActivePrinter Özelliği 323Quit Metodu 323DisplayFileAlerts Metodu 323RefreshDisplay Metodu 323StartCommand Metodu 324FileSelectionBox Metodu 325CreateSendTo Metodu 326StartWorkbench Metodu 326GetWorkbenchId Metodu 327
Documents Koleksiyonu 327Count Özelliği 327Item Metodu 327Add Metodu 328Open Metodu 328NewFrom Metodu 328
Document Nesnesi 329FullName Özelliği 329Path Özelliği 329ReadOnly Özelliği 329Saved Özelliği 330SeeHiddenElements Özelliği 330Selection Özelliği 330Cameras Koleksiyonu 331Activate Metodu 331Close Metodu 331ExportData Metodu 332GetWorkbench Metodu 332Indicate2D Metodu 332Indicate3D Metodu 333NewWindow Metodu 334SaveAs Metodu 334Save Metodu 334
Selection Nesnesi 336Count2 Özelliği 336VisProperties Özelliği 336Item2 Metodu 336Add Metodu 337Clear Metodu 337Copy Metodu 337Cut Metodu 337Delete Metodu 337FilterCorrespondence Metodu 338FindObject Metodu 338IndicateOrSelectElement2D Metodu 338IndicateOrSelectElement3D Metodu 339
İÇİNDEKİLER XV
Paste Metodu 340PasteSpecial Metodu 340Remove2 Metodu 340Search Metodu 340SelectElement2 Metodu 342SelectElement3 Metodu 343SelectElement4 Metodu 344Count, Item, Remove 344
Uygulama 3 345SelectedElement Nesnesi 355
Value 355Document Özelliği 356LeafProduct Özelliği 356Reference Özelliği 356Type Özelliği 357GetCoordinates Metodu 357
VisPropertySet Nesnesi 360GetPick Metodu 360GetRealColor Metodu 361GetRealInheritance Metodu 361GetRealLineType Metodu 362GetRealOpacity Metodu 362GetRealWidth Metodu 362GetShow Metodu 363GetSymbolType Metodu 363GetVisible… Metotları 364SetPick Metodu 364SetRealColor Metodu 364SetRealLineType Metodu 365SetRealOpacity Metodu 365SetRealWidth Metodu 365SetShow Metodu 365SetSymbolType Metodu 366
Windows Koleksiyonu 367Count Özelliği 367Arrange Metodu 367Item Metodu 367
Window Nesnesi 368ActiveViewer Özelliği 368Caption Özelliği 368PageSetup Özelliği 368WindowState Özelliği 369Width, Height, Left, Top Özellikleri 369Viewers Koleksiyonu 369Activate Metodu 370
VISUAL BASIC İLE CATIA V5 OTOMASYONUXVI
ActivateNext 370ActivatePrevious 370Close Metodu 370NewWindow Metodu 370PrintOut Metodu 370
Viewer Nesnesi 371FullScreen Özelliği 371Width, Height Özellikleri 371Activate Metodu 371CaptureToFile Metodu 372GetBackgroundColor Metodu 372NewCamera Metodu 373PutBackgroundColor Metodu 373Reframe Metodu 374Update Metodu 374ZoomIn Metodu 374ZoomOut Metodu 374
Printer Nesnesi 375DeviceName Özelliği 375Orientation Özelliği 375PaperHeight, PaperWidth Özellikleri 376PaperSize Özelliği 376
FileSystem Nesnesi 378TemporaryDirectory Özelliği 378ConcatenatePaths Metodu 378FileSystem Nesnesinin Diğer Metotları 378FileSystem.Folder Nesnesi 379FileSystem.File Nesnesi 379FileSystem.TextStream Nesnesi 379
SystemService Nesnesi 381ExecuteScript Metodu 381
SPAWorkbench Modülü 383Angle Özelliği 383Area Özelliği 384Length Özelliği 384Perimeter Özelliği 384Radius Özelliği 384Volume Özelliği 384GeometryName Özelliği 385GetAxis Metodu 385GetAxisSystem Metodu 386GetCOG Metodu 387GetCenter Metodu 387GetDirection Metodu 388GetPlane Metodu 388
İÇİNDEKİLER XVII
GetPoint Metodu 389GetPointsOnAxis Metodu 389GetPointsOnCurve Metodu 390GetAngleBetween Metodu 391GetMinimumDistance Metodu 391GetMinimumDistancePoints Metodu 391
SelectionSet Nesnesi 394CreateSelectionSet Metodu 395AddCSOIntoSelectionSet Metodu 395PutSelectionSetIntoCSO Metodu 396RenameSelectionSet Metodu 396DeleteSelectionSet Metodu 396
Uygulama 4 405
3 ASSEMBLY DESIGN MODÜLÜ NESNELERİ 413ProductDocument Nesnesi 414
Product Özelliği 415Product Nesnesi 416
Definition Özelliği 417DescriptionInst Özelliği 418DescriptionRef Özelliği 418PartNumber Özelliği 419ReferenceProduct Özelliği 419UserRefProperties Özelliği 419Parameters Özelliği 420Relations Özelliği 420ApplyWorkMode Metodu 420Connections Metodu 421ExtractBOM Metodu 421Update Metodu 422
Products Koleksiyonu 422AddComponent Metodu 423AddComponentsFromFiles Metodu 423AddExternalComponent Metodu 424AddNewComponent Metodu 424AddNewProduct Metodu 425Item Metodu 425Remove Metodu 425ReplaceComponent Metodu 425ReplaceProduct Metodu 426
Position Nesnesi 431GetComponents Metodu 431SetComponents Metodu 432
Move Nesnesi 432MovableObject Özelliği 433Apply Metodu 433
VISUAL BASIC İLE CATIA V5 OTOMASYONUXVIII
Constraints Koleksiyonu 435BrokenConstraintsCount Özelliği 435UnUpdatedConstraintsCount Özelliği 435AddMonoEltCst Metodu 435AddBiEltCst Metodu 436AddTriEltCst Metodu 436Item Metodu 437Remove Metodu 437Kısıt Tipleri 437
Constraint Nesnesi 438Dimension Özelliği 438Status Özelliği 439Type Özelliği 439Activate Metodu 439Deactivate Metodu 439IsInactive Metodu 440GetConstraintElement Metodu 440SetConstraintElement Metodu 440
FixTogethers Koleksiyonu 444Add Metodu 444Item Metodu 444Remove Metodu 444
FixTogether Nesnesi 445FixTogethersCount Özelliği 446ProductsCount Özelliği 446AddFixTogether Metodu 446AddProduct Metodu 446GetFixTogether Metodu 446GetProduct Metodu 447RemoveFixTogether Metodu 447RemoveProduct Metodu 447
Analyze Nesnesi 449Mass Özelliği 450Volume Özelliği 450WetArea Özelliği 450GetGravityCenter Metodu 450
ShapeRepresentation Metotları 452ActivateDefaultShape Metodu 454DesactivateDefaultShape Metodu 454GetDefaultShapeName Metodu 454AddMasterShapeRepresentation Metodu 454RemoveMasterShapeRepresentation Metodu 455HasAMasterShapeRepresentation Metodu 455GetMasterShapeRepresentation Metodu 455GetMasterShapeRepresentationPath-Name Metodu 456
İÇİNDEKİLER XIX
ActivateShape Metodu 456DesactivateShape Metodu 456AddShapeRepresentation Metodu 456RemoveShapeRepresentation Metodu 457HasShapeRepresentation Metodu 457GetShapeRepresentation Metodu 458GetShapePathName Metodu 458GetActiveShapeName Metodu 458GetNumberOfShapes Metodu 458GetAllShapesNames Metodu 459
GetTechnologicalObject Metodu 461Clashes Koleksiyonu 462
Add Metodu 462AddFromSel Metodu 462Item Metodu 463Remove Metodu 463Clash.ComputationType Özelliği 463Clash.Conflicts Koleksiyonu 464Clash.Compute Metodu 464Clash.Export Metodu 464Conflict.Comment Özelliği 464Conflict.FirstProduct Özelliği 464Conflict.SecondProduct Özelliği 465Conflict.Type Özelliği 465Conflict.Value Özelliği 465Conflict.PointCoordinates Metotları 465
AssemblyFeatures Koleksiyonu 467AddAssemblyAdd Metodu 467AddAssemblyHole Metodu 468AddAssemblyPocket Metodu 468AddAssemblyRemove Metodu 469AddAssemblySplit Metodu 469Item Metodu 470Remove Metodu 470AssemblyFeature.AddAffectedComponent Metodu 470AssemblyFeature.AffectedComponentsCount Metodu 470AssemblyFeature.ListAffectedComponents Metodu 471AssemblyFeature.RemoveAffectedComponent Metodu 471
Hyperlinks Koleksiyonu 473Add Metodu 473GetHyperlink Metodu 473Item Metodu 473Remove Metodu 474Hyperlink.AddUrl Metodu 474Hyperlink.CountObject Metodu 474
VISUAL BASIC İLE CATIA V5 OTOMASYONUXX
Hyperlink.ItemObject Metodu 474Hyperlink.RemoveObject Metodu 474
Marker3Ds Koleksiyonu 476Add3DText Metodu 476Item Metodu 476Remove Metodu 477Marker3D.Text Özelliği 477Marker3D.TextFont Özelliği 477Marker3D.TextSize Özelliği 477Marker3D.AddObject Metodu 477Marker3D.CountObject Metodu 478Marker3D.GetObjectPositions Metodu 478Marker3D.GetTextPositions Metodu 478Marker3D.ItemObject Metodu 478Marker3D.RemoveObject Metodu 479Marker3D.SetObjectPositions Metodu 479Marker3D.SetTextPositions Metodu 479Marker3D.Update Metodu 480
Uygulama 5 483Uygulama 6 487
4 PART DESIGN MODÜLÜ NESNELERİ 491PartDocument Nesnesi 493
Part Özelliği 493Product Özelliği 493
Part Nesnesi 494AnnotationSets Özelliği 494AxisSystems Özelliği 495Bodies Özelliği 495Constraints Özelliği 495Density Özelliği 496GeometricElements Özelliği 496HybridBodies Özelliği 496HybridShapeFactory Özelliği 496InWorkObject Özelliği 497MainBody Özelliği 497OriginElements Özelliği 498Parameters Özelliği 498Relations Özelliği 498ShapeFactory Özelliği 499Activate Metodu 499CreateReferenceFromBRepName Metodu 500CreateReferenceFromObject Metodu 501FindObjectByName Metodu 501Inactivate 502IsInactive Metodu 502
İÇİNDEKİLER XXI
IsUpToDate Metodu 502Update Metodu 502UpdateObject Metodu 503
HybridBodies Koleksiyonu 503Add Metodu 504Item Metodu 504
HybridBody Nesnesi 504HybridBodies Özelliği 504HybridShapes Özelliği 505HybridSketches Özelliği 505AppendHybridShape Metodu 506
HybridShapes Koleksiyonu 507Item Metodu 507
HybridShape Nesnesi 508Compute Metodu 508
HybridShapeFactory Nesnesi 509GSMVisibility Metodu 511DeleteObjectForDatum Metodu 511AddNewPointCoord Metodu 511AddNewPointCoordWithReference 513Metodu 513AddNewLinePtPt Metodu 514AddNewLinePtPtExtended Metodu 515AddNewCircleCenterAxis Metodu 515AddNewPlaneOffset Metodu 516AddNewPlaneOffsetPt Metodu 517
Sketches Koleksiyonu 520Add Metodu 520Item Metodu 520
Sketch Nesnesi 521AbsoluteAxis Özelliği 521CenterLine Özelliği 522Constraints Özelliği 522GeometricElements Özelliği 523CloseEdition Metodu 524GetAbsoluteAxisData Metodu 524InverseOrientation Metodu 524OpenEdition Metodu 525SetAbsoluteAxisData Metodu 525
Factory2D Nesnesi 527CreatePoint Metodu 527CreateLine Metodu 527CreateLineFromVector Metodu 528CreateClosedCircle Metodu 528CreateCircle Metodu 529
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXII
CreateClosedEllipse Metodu 530CreateEllipse Metodu 531CreateParabola Metodu 531CreateHyperbola Metodu 532CreateSpline Metodu 533CreateControlPoint Metodu 533CreateIntersection Metodu 534CreateProjection Metodu 534
Bodies Koleksiyonu 536Add Metodu 536Item Metodu 537
Body Nesnesi 537HybridBodies Özelliği 537HybridShapes Özelliği 537InBooleanOperation Özelliği 537Shapes Özelliği 538Sketches Özelliği 538InsertHybridShape Metodu 538
Shapes Koleksiyonu 539Item Metodu 539
Shape Nesnesi 540Prism Nesnesi 541
DirectionOrientation Özelliği 542DirectionType Özelliği 542FirstLimit Özelliği 542IsSymmetric Özelliği 543IsThin Özelliği 543MergeEnd Özelliği 543NeutralFiber Özelliği 544SecondLimit Limit Özelliği 544GetDirection Metodu 544ReverseInnerSide Metodu 544SetDirection Metodu 544
Revolution Nesnesi 545FirstAngle Özelliği 546IsThin Özelliği 546MergeEnd Özelliği 546NeutralFiber Özelliği 546RevoluteAxis Özelliği 547SecondAngle Özelliği 547
Hole Nesnesi 548AnchorMode Özelliği 549BottomAngle Özelliği 549BottomLimit Özelliği 549BottomType Özelliği 550
İÇİNDEKİLER XXIII
CounterSunkMode Özelliği 550Diameter Özelliği 550HeadAngle Özelliği 551HeadDepth Özelliği 551HeadDiameter Özelliği 551HoleThreadDescription Özelliği 551ThreadDepth Özelliği 552ThreadDiameter Özelliği 552ThreadPitch Özelliği 553ThreadSide Özelliği 553ThreadingMode Özelliği 553Type Özelliği 554GetDirection Metodu 554GetOrigin Metodu 554Reverse Metodu 555SetDirection Metodu 555SetOrigin Metodu 555
Fillet Nesnesi 556EdgeFillet.EdgePropagation Özelliği 557EdgeFillet.EdgesToKeep Özelliği 557EdgeFillet.AddEdgeToKeep Metodu 558EdgeFillet.WithdrawEdgeToKeep Metodu 558ConstRadEdgeFillet.ObjectsToFillet Özelliği 558ConstRadEdgeFillet.Radius Özelliği 559ConstRadEdgeFillet.AddObjectToFillet Metodu 559ConstRadEdgeFillet.WithdrawObjectToFillet Metodu 559
Chamfer Nesnesi 560Angle Özelliği 560ElementsToChamfer Özelliği 561Length1 Özelliği 561Length2 Özelliği 561Mode Özelliği 561Orientation Özelliği 562Propagation Özelliği 562AddElementToChamfer Metodu 562WithdrawElementToChamfer Metodu 563
Mirror Nesnesi 563MirroringObject Özelliği 564MirroringPlane Özelliği 564
Pattern Nesnesi 565Pattern.ItemToCopy Özelliği 566Pattern.RotationAngle Özelliği 566Pattern.ActivatePosition Metodu 566Pattern.DesactivatePosition Metodu 567RectPattern.FirstDirectionRepartition Özelliği 567
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXIV
RectPattern.FirstDirectionRow Özelliği 567RectPattern.FirstOrientation Özelliği 568RectPattern.FirstRectangularPatternParameters Özelliği 568RectPattern.SecondDirectionRepartition Özelliği 568RectPattern.SecondDirectionRow Özelliği 569RectPattern.SecondOrientation Özelliği 569RectPattern.SecondRectangularPatternParameters Özelliği 569RectPattern.GetFirstDirection Metodu 569RectPattern.GetSecondDirection Metodu 570RectPattern.SetFirstDirection, RectPattern.SetSecondDirectionMetotları 570
ShapeFactory Nesnesi 571AddNewPad Metodu 571AddNewPocket Metodu 572AddNewShaft Metodu 573AddNewHole Metodu 574AddNewSolidEdgeFilletWithConstant-Radius Metodu 575AddNewChamfer Metodu 576AddNewMirror Metodu 577AddNewRectPattern Metodu 578
AxisSystems Koleksiyonu 581Add Metodu 581Item Metodu 581
AxisSystem Nesnesi 581AxisRotationAngle Özelliği 581AxisRotationReference Özelliği 582IsCurrent Özelliği 582OriginPoint Özelliği 582OriginType Özelliği 583Type Özelliği 583XAxisDirection, YAxisDirection, ZAxisDirection Özellikleri 584XAxisType, YAxisType, ZAxisType Özelliği 584GetEulerAngles Metodu 585GetOrigin Metodu 585GetVectors Metodu 585GetXAxis, GetYAxis, GetZAxis Metotları 586PutOrigin Metodu 586PutVectors Metodu 586PutXAxis, PutYAxis, PutZAxis Metotları 587
OriginElements Koleksiyonu 588PlaneXY Özelliği 588PlaneYZ Özelliği 588PlaneZX Özelliği 589
Parameters Koleksiyonu 589RootParameterSet Özelliği 590
İÇİNDEKİLER XXV
CreateBoolean Metodu 590CreateDimension Metodu 591CreateInteger Metodu 592CreateList Metodu 592CreateReal Metodu 593CreateSetOfParameters Metodu 593CreateString Metodu 594GetNameToUseInRelation Metodu 594Item Metodu 594Remove Metodu 595SubList Metodu 595
Parameter Nesnesi 596Comment Özelliği 597Context 597Hidden Özelliği 598IsTrueParameter Özelliği 598OptionalRelation Özelliği 598ReadOnly Özelliği 599UserAccessMode Özelliği 599Rename Metodu 599ValuateFromString Metodu 599ValueAsString Metodu 600
Relations Koleksiyonu 600CreateFormula Metodu 601Item Metodu 602Remove Metodu 602SubList Metodu 603
Relation Nesnesi 604Comment Özelliği 604Context Özelliği 604NbInParameters Özelliği 604NbOutParameters Özelliği 604Value Özelliği 605GetInParameter Metodu 605GetOutParameter Metodu 606Modify Metodu 606Rename Metodu 606
AnnotationSets Koleksiyonu 608Add Metodu 609Item Metodu 609
AnnotationSet Nesnesi 609ActiveView Özelliği 610SwitchOn Özelliği 610TPSViews Özelliği 610Annotations Özelliği 610
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXVI
Captures Özelliği 611TPSViewFactory Özelliği 611AnnotationFactory Özelliği 611CaptureFactory Özelliği 611
TPSViews Koleksiyonu 612Item Metodu 612
TPSViewFactory Nesnesi 612CreateView Metodu 613
Annotations Koleksiyonu 613Add Metodu 613Item Metodu 614
Annotation Nesnesi 614SuperType Özelliği 614Type Özelliği 614AddLeader Metodu 616ApplyReferencedGeomColor Metodu 616FlagNote Metodu 616GetSurfaces Metodu 617GetSurfacesCount Metodu 617ModifyVisu Metodu 618SetXY Metodu 618Text Metodu 618
AnnotationFactory Nesnesi 619CreateDatum Metodu 619CreateEvoluateText Metodu 619CreateFlagNote Metodu 619CreateText Metodu 620
Captures Koleksiyonu 620Item Metodu 620
Capture Nesnesi 621Camera Özelliği 621Current Özelliği 622ManageHideShowBody Özelliği 622Set Özelliği 622DisplayCapture Metodu 622DisplayCapture2 Metodu 622
CaptureFactory Nesnesi 623CreateCapture Metodu 623
UserSurfaces Koleksiyonu 623Generate Metodu 624Item Metodu 624MakeUserSurfaceNode Metodu 624MakeUserSurfaceNode2 Metodu 625
UserSurface Nesnesi 625AddReference Metodu 625
İÇİNDEKİLER XXVII
AddReferenceInAProductCtx Metodu 625AddUserSurface Metodu 625
Uygulama 7 629Uygulama 8 631Uygulama 9 633Uygulama 10 637Uygulama 11 639Uygulama 12 641Uygulama 13 647Uygulama 14.1 650Uygulama 14.2 654Uygulama 14.3 656Uygulama 14.4 659
5 DRAFTING MODÜLÜ NESNELERİ 663DrawingDocument Nesnesi 664
DrawingRoot Özelliği 665Parameters Özelliği 665Relations Özelliği 665Sheets Özelliği 665Standard Özelliği 665Isolate Metodu 666Update Metodu 666
DrawingRoot Nesnesi 666ActiveSheet Özelliği 666reorder_Sheets Metodu 667
DrawingSheets Koleksiyonu 667ActiveSheet Özelliği 667Add Metodu 668AddDetail Metodu 668Item Metodu 668Remove Metodu 669
DrawingSheet Nesnesi 669GenViewsPosMode Özelliği 670Orientation Özelliği 670PageSetup Özelliği 670PaperSize Özelliği 671PrintArea Özelliği 671ProjectionMethod Özelliği 672Scale ve Scale2 Özellikleri 672Views Özelliği 672Activate Metodu 673ForceUpdate Metodu 673GenerateDimensions Metodu 673GetPaperHeight ve GetPaperWidth Metotları 673IsDetail Metodu 673
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXVIII
Isolate Metodu 674PrintOut Metodu 674SetAsDetail Metodu 674SetPaperHeight ve SetPaperWidth Metotları 674Update Metodu 675reorder_Views Metodu 675
DrawingViews Koleksiyonu 675ActiveView Özelliği 676Add Metodu 676Item Metodu 676Remove Metodu 676
DrawingView Nesnesi 677Angle Özelliği 678Arrows Özelliği 678Components Özelliği 678Dimensions Özelliği 678Factory2D Özelliği 679FrameVisualization Özelliği 679GenerativeBehavior Özelliği 679GenerativeLinks Özelliği 679GeometricElements Özelliği 679LockStatus Özelliği 680Pictures Özelliği 680ReferenceView Özelliği 680Scale ve Scale2 Özellikleri 680Tables Özelliği 680Texts Özelliği 680Threads Özelliği 681ViewType Özelliği 681X ve Y Özellikleri 682xAxisData ve yAxisData Özellikleri 682Activate Metodu 682AlignedWithReferenceView Metodu 682GetViewName Metodu 682InsertViewAngle Metodu 683InsertViewScale Metodu 683IsGenerative Metodu 683Isolate Metodu 684SetViewName Metodu 684Size Metodu 684UnAlignedWithReferenceView Metodu 684
DrawingViewGenerativeBehavi-or Nesnesi 686ColorInheritanceMode Özelliği 686Document Özelliği 686FilletRepresentation Özelliği 687
İÇİNDEKİLER XXIX
HiddenLineMode Özelliği 687ImageViewMode Özelliği 688ParentView Özelliği 688PointsProjectionMode Özelliği 688PointsSymbol Özelliği 689RepresentationMode Özelliği 689DefineAuxiliaryView Metodu 689DefineCircularClippingView Metodu 690DefineCircularDetailView Metodu 690DefineFrontView Metodu 691DefineIsometricView Metodu 691DefinePolygonalClippingView Metodu 692DefinePolygonalDetailView Metodu 692DefineProjectionView Metodu 693DefineSectionView Metodu 693DefineUnfoldedView Metodu 694ForceUpdate Metodu 694GetProjectionPlane Metodu 695GetProjectionPlaneNormal Metodu 695SetProjectionPlane Metodu 695UnBreak Metodu 695UnClip Metodu 696Update Metodu 696
DrawingViewGenerativeLinks Nesnesi 697AddLink Metodu 698CopyLinksTo Metodu 698FirstLink Metodu 698NextLink Metodu 698RemoveAllLinks Metodu 698
DrawingTexts Koleksiyonu 701Add Metodu 701Item Metodu 701Remove Metodu 702
DrawingText Nesnesi 702AnchorPosition Özelliği 702Angle Özelliği 703AssociativeElement Özelliği 703FrameType Özelliği 703Leaders Özelliği 704Text Özelliği 704TextProperties Özelliği 704WrappingWidth Özelliği 705X ve Y Özellikleri 705ActivateFrame Metodu 705GetFontName Metodu 705
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXX
GetFontSize Metodu 706GetModifiableIn2DComponeInstances Metodu 706GetParameterOnSubString Metodu 706InsertVariable Metodu 707SetFontName Metodu 708SetFontSize Metodu 708SetModifiableIn2DComponent-Instances Metodu 709SetParameterOnSubString Metodu 709
DrawingTextProperties Nesnesi 710AnchorPoint Özelliği 710Blanking Özelliği 710Bold Özelliği 711Color Özelliği 711FontName Özelliği 711FontSize Özelliği 711FrameType Özelliği 712Italic Özelliği 712Justification Özelliği 712Kerning Özelliği 712Mirror Özelliği 713Overline Özelliği 713StrikeThru Özelliği 713Subscript Özelliği 713Superscript Özelliği 714Underline Özelliği 714ActivateFrame Metodu 714Update Metodu 714
DrawingDimensions Koleksiyonu 716Add Metodu 716Add2 Metodu 719Item Metodu 720Remove Metodu 720
DrawingDimension Nesnesi 721DimStatus Özelliği 722DimType Özelliği 722DualValue Özelliği 723Forshortened Özelliği 723HalfDimMode Özelliği 723IsClipped Özelliği 723NbExtLine Özelliği 724NbSymb Özelliği 724Parameters Özelliği 724SymbolsSide Özelliği 724TrueDimMode Özelliği 725ValueAngle Özelliği 725
İÇİNDEKİLER XXXI
ValueFrame Özelliği 725ValueOrientation Özelliği 725ValueReference Özelliği 726GetBoundaryBox Metodu 726GetClip Metodu 727GetDimLine Metodu 727GetTolerances Metodu 728GetValue Metodu 728MoveValue Metodu 728RestoreValuePosition Metodu 728SetClip Metodu 729SetTolerances Metodu 729Unclip Metodu 729
DrawingDimValue Nesnesi 730FakeDimType Özelliği 730Value Özelliği 730ValueFramedElement Özelliği 730ValueFramedGroup Özelliği 731GetBaultText Metodu 731GetDisplayUnit Metodu 731GetFakeDimValue Metodu 731GetFormatDisplayFactor Metodu 732GetFormatName Metodu 732GetFormatPrecision Metodu 732GetFormatType Metodu 732GetFormatUnit Metodu 733GetPSText Metodu 733GetScoredElement Metodu 733SetBaultText Metodu 733SetFakeDimValue Metodu 734SetFormatDisplayFactor Metodu 734SetFormatName Metodu 734SetFormatPrecision Metodu 734SetFormatType Metodu 735SetFormatUnit Metodu 735SetPSText Metodu 735SetScoredElement Metodu 735
DrawingLeaders Koleksiyonu 738Add Metodu 738Item Metodu 738Remove Metodu 738
DrawingLeader Nesnesi 739AllAround Özelliği 739AnchorPoint Özelliği 739HeadSymbol Özelliği 739
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXXII
HeadTarget Özelliği 740NbInterruption Özelliği 740NbPoint Özelliği 740AddInterruption Metodu 741AddPoint Metodu 741GetInterruptions Metodu 741GetPoint Metodu 741GetPoints Metodu 742ModifyPoint Metodu 742RemoveInterruption Metodu 742RemovePoint Metodu 742
DrawingArrows Koleksiyonu 744Add Metodu 744Item Metodu 745Remove Metodu 745
DrawingArrow Nesnesi 745HeadSymbol Özelliği 745HeadTarget Özelliği 745NbInterruption Özelliği 746NbPoint Özelliği 746TailSymbol Özelliği 746TailTarget Özelliği 746AddInterruption Metodu 746AddPoint Metodu 747GetInterruptions Metodu 747GetPoint Metodu 747GetPoints Metodu 747ModifyPoint Metodu 748RemoveInterruption Metodu 748RemovePoint Metodu 748
DrawingComponents Koleksiyonu 750Add Metodu 750Item Metodu 751Remove Metodu 751
DrawingComponent Nesnesi 751Angle Özelliği 751CompRef Özelliği 751Scale2 Özelliği 752X ve Y Özellikleri 752Explode Metodu 752ExplodeAndSelect Metodu 752ExposeCompRef Metodu 752ExposeCompRefInSheet Metodu 752Flip Metodu 753GetFlip Metodu 753
İÇİNDEKİLER XXXIII
GetMatrix Metodu 753GetModifiableObject Metodu 754GetModifiableObjectsCount Metodu 754SetMatrix Metodu 754
DrawingPictures Koleksiyonu 756Add Metodu 756Item Metodu 756Remove Metodu 756
DrawingPicture Nesnesi 757cropTop, cropBottom, cropLeft, 757cropRight Özellikleri 757Format Özelliği 757Height, Width Özellikleri 758ratioLock Özelliği 758X, Y Özellikleri 758GetOriginalHeight, GetOriginalWidth 758Metotları 758
DrawingTables Koleksiyonu 759Add Metodu 760Item Metodu 760Remove Metodu 760
DrawingTable Nesnesi 761ComputeMode Özelliği 761NumberOfColumns Özelliği 761NumberOfRows Özelliği 761AddColumn Metodu 761AddRow Metodu 762GetCellAlignment Metodu 762GetCellBorderType Metodu 763GetCellName Metodu 763GetCellObject Metodu 764GetCellString Metodu 764GetCellsMerge Metodu 764GetColumnSize Metodu 765GetMergeInfos Metodu 765GetRowSize Metodu 765MergeCells Metodu 765Move Metodu 766RemoveColumn Metodu 766RemoveRow Metodu 766SetCellAlignment Metodu 766SetCellBorderType Metodu 767SetCellName Metodu 767SetCellString Metodu 767SetColumnSize Metodu 768
VISUAL BASIC İLE CATIA V5 OTOMASYONUXXXIV
SetRowSize Metodu 768UnMergeCells Metodu 768
Uygulama 15 771Uygulama 16 775Uygulama 17 777Uygulama 18 782
6 EKLER 789Ek 1-Visual Basic Fonksiyonları 789
Metin Fonksiyonları 789Asc 789Chr 790Hex 790StrComp 790StrReverse 790
Matematik Fonksiyonları 791Atn 791Cos 791Sin 791Tan 791Exp 792Fix 792Log 792Oct 792
Dizi Fonksiyonları 793LBound 793Filter 793
Değişken Fonksiyonları 794CByte 794CCur 794IsNull 794
Biçimlendirme Fonksiyonları 795FormatCurrency 795FormatPercent 795
Ek 2-HybridShapeFactory Metotları 796Ek 3-ShapeFactory Metotları 802