Retrieve Call out from Detail view or section view

Luiz Henrique Silva

Retrieve Call out from Detail view or section view

Hello Experts
Does anybody would me help with this question?

I need to retrive the letter position of Detail view call out in Rear view

piece of my code:


 

Dim drwgDoc1As DrawingDocument: Set drwgDoc1= CATIA.ActiveDocument

Dim drwView As DrawingView: Set drwView = drwgDoc1.Sheets.item(1).Views.item("Rear view")

Dim drwTxts As DrawingTexts: Set drwTxts = drwView.Texts 


 

 

(I have tried to look in obj DrawingTexts, but it isnt there)

also i have tried: 


 

Dim objSel As Selection: Set objSel = drwgDoc1.Selection

objSel.Search "CATDrwSearch.DrwCallout.Name=*F*,all"


 

i can reach the detail call out from this way, but i could not transform it to DrawingText

when a pass the selection value to anyobject it came as a DrawingView, even if only callout was selected.

 

 

 

Attachments

  • detailF.jpg (30.6k)

Little Cthulhu

RE: Retrieve Call out from Detail view or section view
(in response to Luiz Henrique Silva)

Does assigning to a variable of the DrawingText type work?

Luiz Henrique Silva

RE: Retrieve Call out from Detail view or section view
(in response to Little Cthulhu)

Bull's eye!! thanks a lot ! i knew you would know how to solve! =)