Skip to main content
Jul 15, 2020 9:38 PM UTC
Solved

How to convert a driven dimension into an annotation feature

Is there a way to create an annotation feature using a driven dimension?
Apparently the function ProAnnotationfeatCreate() and ProAnnotationfeatElementAdd() only allow to add an annotation element to an annotation feature. A driven dimension annotation is not an annotation element and I don't see a function to convert it into one. So how does one create an annotation feature using a driven dimension?

JB_87049Answer
Aug 3, 2020 6:34 PM UTC

The problem in my case is that the driven dimensions are considered as bad inputs.
The only reason I could come up with to explain this behaviour is that this is caused by the fact these driven dimensions are not recognised as annotation elements. I have verified this in my code.
Strangely enough if you do the conversion to an annotation feature manually in Creo it works.
So I have now solved my problem by embedding a mapkey into my toolkit code.

6 replies

Jul 22, 2020 6:17 PM UTC

hello all,

 

Just to make sure - we are talking about a driven (or reference) dimension with a ProSolid being a dim's parent, is it correct?

JB_87049Author
Jul 23, 2020 7:09 AM UTC

Yes, I'm referring to a driven dimension (e.g. a linear dimension) that is created by referencing two surfaces of a solid.

Jul 24, 2020 1:49 PM UTC

FV_0-1595598537409.png