Jegsaran
Automotive
- Dec 16, 2020
- 41
Hello Everyone,
I'm trying to import an annotated view from a product to a drawing.
I have did some workaround using CATIA.StartCommand.
Here is my code
Post this CATIA is asking me to click on the screen.
Since the view is not generated using traditional method I can't use drawingViewGenerativeBehavior1.Update also.
I tried CATIA.StartCommand "Select" but it is not working appropriately. Is there any workaround to click on the screen?
I'm trying to import an annotated view from a product to a drawing.
I have did some workaround using CATIA.StartCommand.
Here is my code
Code:
Set drawingSheets1 = drawingDocument1.Sheets
Set drawingSheet1 = drawingSheets1.ActiveSheet
Set drawingViews1 = drawingSheet1.Views
CATIA.StartCommand "View from 3D"
Set oParentDoc = CATIA.Documents.Item("DC-SectionCut-TemplateDoc.CATProduct")
oParentDoc.Activate
Set ActDoc = CATIA.ActiveDocument
Set Sel2 = ActDoc.Selection
Sel2.Search "Name=*Section Cut View1*,all"
Post this CATIA is asking me to click on the screen.
Since the view is not generated using traditional method I can't use drawingViewGenerativeBehavior1.Update also.
I tried CATIA.StartCommand "Select" but it is not working appropriately. Is there any workaround to click on the screen?