Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dimension Problem in AIAP 2010

1 REPLY 1
Reply
Message 1 of 2
psaarloos
286 Views, 1 Reply

Dimension Problem in AIAP 2010

Hi...

Hope someone can help me on this issue...

I had some dimensions on a sheet created by Intent 2009. Everything was working fine.. Just a simpel Base View and a Section View next to it, with some main dimensions...

No I am migrating everything to AIAP 2010, but these dimensions are giving errors. The error message is:

An error was encountered while evaluating rule &&ViewShouldBeNHA, in part Root.IntentDWG.Sheet01.Dim_Flens_Breedte. View should be NHA

I have been trying a lot to get it working again, but I cannot figure out why this problem occurs..

Thanks in advance for your help! (see below for the code of the rules)

Kind regards,

Pim Saarloos

The code of the rule which is throwing the error looks like:

Child Dim_Flens_Breedte As :IvLinearDimension
view = RoosterBaseView
part1 = ViewModel.Flens.Flens_Standaard_B_1
entity1 = "Edge_2D_Bemating"
part2 = ViewModel.Flens.Flens_Standaard_B_2
entity2 = "Edge_2D_Bemating"
dimType = :horizontal
textOrigin = Point(GetX(RoosterBaseView.origin),GetY(RoosterBaseView.origin)- RoosterBaseView.height / 2 - 27,0)
End Child

The rule 'RoosterBaseView' look like:

Child RoosterBaseView As :IvBaseView
Model = ViewModel
viewOrientation = :Left
viewScale = 0.1
origin = Point(80,160,0)
End Child
1 REPLY 1
Message 2 of 2
schaaf
in reply to: psaarloos

Hello Pim,

I have the same problem like you.
You must move your Dimension to a "Sub-Design".

Example:
This is my Drawing design.
Design ZNG_RING_AS : DRAWINGS IvDrawingSheet
Child Ansicht_Z As :ZNG_RING_AS_Ansicht_Z
parentView =VorderAnsicht
fenceCorner1 = ...
fenceCorner2 = ...
viewScale =1/Me.masstab*2
viewName ="Z"
origin =Point(RING_AS_SK_B5_AS/2/Me.Masstab +30,260,0)
End Child

'This old code don't work with Intent2010 !!!
' Child BEM_Z1 As :IvLinearDimension
' view = Me.Ansicht_Z
' part1 = viewmodel_RING_AS.RING_AS1_roh
' part2 = viewmodel_RING_AS.RING_AS1_roh
' entity1 = "Edge6"
' entity2 = "Edge7"
' textOrigin =Point(RING_AS_SK_B5_AS/2/Me.Masstab +30-10,260+18,0)
' dimType = :horizontal
' End Child
.....
End Design

And this is the new "Sub-Design" for the Dimension.
Design ZNG_RING_AS_Ansicht_Z : DRAWINGS IvRectangularDetailView
Child BEM_Z1 As :IvLinearDimension
view = Me.Ansicht_Z
part1 = viewmodel_RING_AS.RING_AS1_roh
part2 = viewmodel_RING_AS.RING_AS1_roh
entity1 = "Edge6"
entity2 = "Edge7"
textOrigin =Me.NW +Vector(0,5,0)
dimType = :horizontal
End Child
.....
End Design

And here is my definition of Viewmodel:
Design Definition_ZNG_RING_AS : DRAWINGS IvDrawingDocument
Parameter Rule viewmodel_RING_AS As Part
End Rule
Child zng_RING_AS As :ZNG_RING_AS
sheetsToDelete ={"Blatt:1"}
size ="A4"
border ="RAHMENA4"
sheetName ="RING AS"
titleBlockDefinition ="DINA4SCDE"
orientation =:Portrait
End Child
.....
End Design

Jakob Edited by: schaaf@schorch.de on Sep 29, 2009 10:47 AM

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

Post to forums  

Autodesk Design & Make Report