Message 1 of 4
Error in Rule

Not applicable
05-24-2018
03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to change the position of some boxes within a drawing border depending on whether the text inside them is blank or populated, however I am getting an error below.
Error in rule: Revision Table, in document: APPTEST4.idw
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
here is my code, can anyone help please??
SyntaxEditor Code Snippet
Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument Dim oTitleBlockDef As TitleBlockDefinition oTitleBlockDef = oDrawDoc.TitleBlockDefinitions.Item("A-B") Dim oSketch As DrawingSketch oTitleBlockDef.Edit(oSketch) Dim oDim As DimensionConstraint 'find d0 For Each oDim In oSketch.DimensionConstraints If oDim.Parameter.Name = "d171" Then Exit For End If Next If iProperties.Value("Custom", "NEF3-2 ECO") = "" And iProperties.Value("Custom", "ECO") = "" Then oDim.Parameter.Value = 7.125 And ThisDrawing.Document.StylesManager.Layers("NEF3 1").Visible = False Else If iProperties.Value("Custom", "NEF3-2 ECO") IsNot "" And iProperties.Value("Custom", "ECO") IsNot "" Then oDim.Parameter.Value = 11.875 And ThisDrawing.Document.StylesManager.Layers("NEF3 1").Visible = False End If