Sorry, my post wasn't that clear, so I had a screenshot of the drawing to give you a better idea. When I run the macro, after "selection.Search "CATDrwSearch.DrwDimension,all" I selected all dimension of the drawing but still I can not read it, so I think those value come directly from 3D part...
hello I think the value I try to get are maybe not in dimension but could be in annotation. Is there an easy way to switch from dimension to annotation or should I search in Catprod/Catpart ?
Hello Fredo,
thanks a lot for your question, I had to change some part of your code :"CATDrwSearch.DrwDimension,sel" returned 0 selection, so I had to change "sel" into "all". So I selected 160 dimensions but I have still a problem, when I call the method "getValue.Value" I got a run-time error...
Hi everybody,
I'm new in programming macro with catia and I'm trying to get in an excel file some text, dimension and geometrical tolerance automatically.
I wrote a part of the code and I can get Text without problem but I face 2 problems : I don't have any idea how to get geometrical...