Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding Feature Control Frames to Dimension

8 REPLIES 8
Reply
Message 1 of 9
jasmin_javier
814 Views, 8 Replies

Adding Feature Control Frames to Dimension

I can add FeatureControlFrames in a DrawingCurve but i can't do it in Generaldimension..
Can you please help me on how I can add Feature Control
Frames in GeneralDimension..
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: jasmin_javier

The mechanism to add the FCF to a dimension is very similar. When creating a
GeometryIntent to attach the FCF to, use the dimension as the first argument
in Sheet.CreateGeometryIntent and a point on the dimension as the 2nd
argument. The point on the dimension (a Point2d) must lie on the dimension
line or the extension lines of the dimension. Use the DimensionLine,
ExtensionLineOne and ExtensionLineTwo properties on a dimension to get the
dimension geometries and make sure the input point lies on one of those.

Sanjay-
Message 3 of 9
Anonymous
in reply to: jasmin_javier

Sanjay,

In the Inventor UI you can attach a FCF to the dimension text as well (Snaps
to any of 8 positions around the dimension text). Can a GeometryIntent
object be generated for these points?

Neil


"Sanjay Ramaswamy (Autodesk)" wrote in message
news:6028389@discussion.autodesk.com...
The mechanism to add the FCF to a dimension is very similar. When creating a
GeometryIntent to attach the FCF to, use the dimension as the first argument
in Sheet.CreateGeometryIntent and a point on the dimension as the 2nd
argument. The point on the dimension (a Point2d) must lie on the dimension
line or the extension lines of the dimension. Use the DimensionLine,
ExtensionLineOne and ExtensionLineTwo properties on a dimension to get the
dimension geometries and make sure the input point lies on one of those.

Sanjay-
Message 4 of 9
Anonymous
in reply to: jasmin_javier

If I remember correctly, you can specify the dimension text origin as the
2nd argument to CreateGeometryIntent (the dimension being the first
argument). This will attach the FCF to the dim text origin. There isn't any
support to attach to the other (corner) points of the text. This will be
dealt with in the future.

Sanjay-
Message 5 of 9

Thank you for your help..
Message 6 of 9
st_work
in reply to: Anonymous

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.

Message 7 of 9
xiaodong_liang
in reply to: st_work

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.

 

 

Message 8 of 9

can you share full code of adding feature control frame to general dimension,please
Message 9 of 9
JelteDeJong
in reply to: adhil.pa.789

I have added an example in your other post:

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/add-feature-control-frame-to-general...

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.

EESignature


Blog: hjalte.nl - github.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report