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

Dynamic block screen update issue.

102 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 (102 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:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community