Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this code that works great for placing dimensions in a view now I would like to trigger the placement based off of a certain work point being present in the view. The work points will be one of the following:
WP_S_MP
WP_M_MP
WP_L_MP
WP_LM_MP
The rules the would need to run is as follows:
If WP_S_MP Then Dim HorizontalLengthPos1 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos1.InDatabaseUnits = WP_S_MP.PointOnSheet HorizontalLengthPos1.Y = HorizontalLengthPos1.Y - 1.5 * FRONT_VIEW.Scale Dim HorizontalLengthPos2 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos2.InDatabaseUnits = WP_S_MP.PointOnSheet HorizontalLengthPos2.Y = HorizontalLengthPos2.Y - 3 * FRONT_VIEW.Scale End If If WP_M_MP Then Dim HorizontalLengthPos3 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos3.InDatabaseUnits = WP_M_MP.PointOnSheet HorizontalLengthPos3.Y = HorizontalLengthPos3.Y - 1.5 * FRONT_VIEW.Scale Dim HorizontalLengthPos4 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos4.InDatabaseUnits = WP_M_MP.PointOnSheet HorizontalLengthPos4.Y = HorizontalLengthPos4.Y - 3 * FRONT_VIEW.Scale End If If WP_L_MP Then Dim HorizontalLengthPos5 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos5.InDatabaseUnits = WP_L_MP.PointOnSheet HorizontalLengthPos5.Y = HorizontalLengthPos5.Y - 1.5 * FRONT_VIEW.Scale Dim HorizontalLengthPos6 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos6.InDatabaseUnits = WP_L_MP.PointOnSheet HorizontalLengthPos6.Y = HorizontalLengthPos6.Y - 3 * FRONT_VIEW.Scale End If If WP_LM_MP Then Dim HorizontalLengthPos7 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos7.InDatabaseUnits = WP_LM_MP.PointOnSheet HorizontalLengthPos7.Y = HorizontalLengthPos7.Y - 1.5 * FRONT_VIEW.Scale Dim HorizontalLengthPos8 = ThisDrawing.Geometry.Point2d(0, 0) HorizontalLengthPos8.InDatabaseUnits = WP_LM_MP.PointOnSheet HorizontalLengthPos8.Y = HorizontalLengthPos8.Y - 3 * FRONT_VIEW.Scale End If
Help Please!
Solved! Go to Solution.