Skip to main content
15-Moonstone
July 15, 2020
Solved

How to convert a driven dimension into an annotation feature

  • July 15, 2020
  • 1 reply
  • 3266 views

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?

Best answer by JB_87049

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.

1 reply

July 22, 2020

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_8704915-MoonstoneAuthor
15-Moonstone
July 23, 2020

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

July 24, 2020

FV_0-1595598537409.png