- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an iLogic rule. The part that I have problems with looks like this:
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1")
Dim dimensions = Sheet_1.DrawingDimensions.GeneralDimensions
' Get all intents
Dim legIntent1 = VIEW1.GetIntent("LegMount1", PointIntentEnum.kMidPointIntent)
Dim legIntent3 = VIEW1.GetIntent( "LegMount3", PointIntentEnum.kMidPointIntent)
Dim sideIntent1 = VIEW1.GetIntent("side1", Nothing)
Dim sideIntent2 = VIEW1.GetIntent("side2", Nothing)
' Placement logic
ThisDrawing.BeginManage()
Dim textPointJustUnderView = VIEW1.SheetPoint(2, -0.2)
dimensions.AddLinear("Mounting point1", textPointJustUnderView, sideIntent1, legIntent1)
dimensions.AddLinear("Mounting point2", textPointJustUnderView, sideIntent2, legIntent3)
dimensions.AddLinear("LegMountDim1", textPointJustUnderView, legIntent1, legIntent3)
ThisDrawing.EndManage()
When I run this rule I get the following result
I expected a result like this:
for all dimensions I use the same text point offset but they are not inline. for some reason it also does not matter what I set in the x direction for the text point it is always centered.
This is all done with iLogic API/code but when I do the same with the inventor API then I can get the expected results. (I wish I could just give a Point2D to the AddLinear function. Those sheet points dot work for me....)
Can any one point me in a direction that will get me the expected results without using the Inventor API.
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
Solved! Go to Solution.