.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.IsDynamicBlock returns False for Dynamic Block

1 REPLY 1
Reply
Message 1 of 2
Dale.Bartlett
456 Views, 1 Reply

.IsDynamicBlock returns False for Dynamic Block

Hi All,
I have a single case where .IsDynamicBlock returns false even though the block is dynamic. If I step into the processing for the properties, all works perfectly. This is one of dozens, with the code common, so I am unable to see anything obviously different. The block behaves perfectly as a manual insert, or by skipping the .IsDynamicBlock test. I have rebuilt the block from scratch a couple of times. Has anyone struck this before?
Regards, Dale

If brDrawObject.IsDynamicBlock = True Then
dynBlkRefProps = brDrawObject.DynamicBlockReferencePropertyCollection
For Each dynBlkRefProp In dynBlkRefProps
Select Case UCase(dynBlkRefProp.PropertyName)
Case UCase("Angle")
dynBlkRefProp.Value = DegreeToRadian(30)
Case Else
'MsgBox(dynBlkRefProp.PropertyName)
End Select
Next
End If



______________
Yes, I'm Satoshi.
1 REPLY 1
Message 2 of 2

To answer my own question, and possibly save others some grief: I was stupidly using an insert scale for this block of brDrawObject.ScaleFactors = New Scale3d(100, 100, 1), ie unequal XYZ. Regards, Dale.



______________
Yes, I'm Satoshi.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost