Dynamic Block Reference Issue

Dynamic Block Reference Issue

Anonymous
Not applicable
857 Views
4 Replies
Message 1 of 5

Dynamic Block Reference Issue

Anonymous
Not applicable
Hello all...

I have a dynamic block that is acting funny and I'm wondering why.

In short, I'm using .Net to set a linear distance parameter value. I'm Using the RecordGraphicsModified(True) Method on the block reference and committing all of the transactions w/o error; however the block reference geometry doesn't update.

what's crazier is that if I copy block reference, the pasted copies DO have the updated geometry.

What's going on?
0 Likes
858 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Are you calling UpdateAnonymousBlocks() on the
dynamic block's BlockTableRecord ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6378661@discussion.autodesk.com...
Hello all...

I have a dynamic block that is acting funny and I'm wondering why.

In short, I'm using .Net to set a linear distance parameter value. I'm Using
the RecordGraphicsModified(True) Method on the block reference and committing
all of the transactions w/o error; however the block reference geometry doesn't
update.

what's crazier is that if I copy block reference, the pasted copies DO have the
updated geometry.

What's going on?
0 Likes
Message 3 of 5

Anonymous
Not applicable
> Are you calling UpdateAnonymousBlocks() on the
> dynamic block's BlockTableRecord ?

Tony -- I'm so glad you responded; you definitely seem to be one of the experts on the forum.

To answer your question, No--I haven't.

I failed to point out a few things before:
1) I'm using AutoCAD 2006 -- don't seem to have that method.
2) When I first create a drawing, insert the blocks, everything works as it should. After I save, close and re-open the drawing, the dynamic blocks stop updating geometry.

In AutoCAD 2006, how were these issues prevented or at least resolved?
0 Likes
Message 4 of 5

Anonymous
Not applicable
I'm not entirely sure how it can be dealt with in 2006, and
it may in fact be a deficiency or limitation that lead to the
addition of the UpdateAnonymousBlocks() method.

Sorry.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6379440@discussion.autodesk.com...
> Are you calling UpdateAnonymousBlocks() on the
> dynamic block's BlockTableRecord ?

Tony -- I'm so glad you responded; you definitely seem to be one of the experts
on the forum.

To answer your question, No--I haven't.

I failed to point out a few things before:
1) I'm using AutoCAD 2006 -- don't seem to have that method.
2) When I first create a drawing, insert the blocks, everything works as it
should. After I save, close and re-open the drawing, the dynamic blocks stop
updating geometry.

In AutoCAD 2006, how were these issues prevented or at least resolved?
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks, Tony.

It seems that I got it working.

It required me setting the linear value to the default value and then calling Resetblock for some reason. All in all, although I don't care why, lesson has been learned!
0 Likes