Active Member
Posts: 8
Registered: ‎07-02-2001
Message 1 of 2 (107 Views)

Dynamic block screen update issue.

107 Views, 1 Replies
02-23-2006 07:29 AM
"I have a dynamic block with an associated hatch. When I insert it through .Net API and then change the dynamic properties (again with .Net) the hatch doesn't get updated. I have to issue a REGEN command to update it. I didn't have this problem in VBA. Is there any method I can use to force a regen of only that block on screen. I tried blkRef.Draw() but it didn't help.
Active Member
Posts: 10
Registered: ‎04-26-2006
Message 2 of 2 (107 Views)

Re: Dynamic block screen update issue.

07-31-2006 07:28 AM in reply to: h_najmi
may be it helps:
Private Sub UpdateBlockGraphic(ByVal BlockID As ObjectId)
Using db As Database = Application.DocumentManager.MdiActiveDocument.Database

Using tr As Transaction = db.TransactionManager.StartTransaction

Dim curBlock As BlockReference = CType(tr.GetObject(BlockID, OpenMode.ForWrite), BlockReference)

End Using
End Using

End Sub
or try:
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.