Sanjay,
Can you please let me know what went wrong? I am trying to place a feature control frame to a retrieved dimension. I was creating the GeometryIntent as you suggested.
Thanks.
intent1 = invSheet.CreateGeometryIntent(invGeneralDims.Item(4).DimensionLine, pt1) ' pt1 is a Point2d along the dimension line.
oLeaderPoints.Add(pt1)
oLeaderPoints.Add(intent1)
featureControlRow = invSheet.FeatureControlFrames.CreateFeatureControlFrameRows.Add(
GeometricCharacteristicEnum.kTotalRunout, "0.001", , "A", "B")
featureControl = invSheet.FeatureControlFrames.Add(oLeaderPoints, featureControlRow,False, "C") ' Program fails here.
Hi,
it is a bit hard to diagnose with code snippet only. Could you compare with the Inventor API sample to check which is wrong at your side? The sample is AddFeatureControlFrame. I took a snapshot for your convenience.
I have added an example in your other post:
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com