PDA

View Full Version : Set parameters @ insert with VBA part 2



artisteroi
2007-05-16, 05:27 PM
Here is the new problem.
when attempting to activate a flip parameter with VBA there is an error code:

run-time error '-2145386493(80200003)': invalid input

Any clues?

I have managed to access all the other parmeters in the dynamic blocks except flip.

Is there something about the flip parameter that won't allow for programmed input.

here is the code

If oDynamicblkProp.PropertyName = "Left_Right" Then 'name of flip property
oDynamicblkProp.Value = "Right"
bCount = bCount + 1
End If

the exact same code works for visibility and linear properties. I also tried this code with no better results:

If oDynamicblkProp.PropertyName = "Left_Right" Then
If CBO_LEFT_RIGHT.Text = "Left" Then oDynamicblkProp.Value = "Left"
If CBO_LEFT_RIGHT.Text = "Right" Then oDynamicblkProp.Value = "Right" '
bCount = bCount + 1
End If

jwanstaett
2007-05-16, 08:21 PM
Here is the new problem.
when attempting to activate a flip parameter with VBA there is an error code:

run-time error '-2145386493(80200003)': invalid input

Any clues?

I have managed to access all the other parmeters in the dynamic blocks except flip.

Is there something about the flip parameter that won't allow for programmed input.

here is the code

If oDynamicblkProp.PropertyName = "Left_Right" Then 'name of flip property
oDynamicblkProp.Value = "Right"
bCount = bCount + 1
End If

the exact same code works for visibility and linear properties. I also tried this code with no better results:

If oDynamicblkProp.PropertyName = "Left_Right" Then
If CBO_LEFT_RIGHT.Text = "Left" Then oDynamicblkProp.Value = "Left"
If CBO_LEFT_RIGHT.Text = "Right" Then oDynamicblkProp.Value = "Right" '
bCount = bCount + 1
End IfThe value of a flip property need to be 0 or 1 not a string.

artisteroi
2007-05-16, 08:27 PM
I thought it might be something like that I'll make adjustments