Hi,
Sorry, I will try to be more clear.
In my dynamic block, I have several attributs for which values are coordinates of point. In fact, my goal is to get coordinates of particulars points of my block. So, I use attributs.
Attributs are created by selecting Object in Field Name. Then I select my Object type (circle of example). And I choose Center as property.
Within Autocad itself, I can insert the block (Insert command). Then I can move it (changing X/Y position in the graphical block property). I can also modify the dynamic parameter (changing value in graphical block property). Here there is a rotation parameter.
With the Regen command, I can see that attributs values are updated with new coordinates. So, I will be able to get those coordinates and perform some maths work with them afterwards.
Attributs are also moving along the block.
What I am trying to do is to perform this "graphical" behaviour by code.
In my previous post (see first message of this post), I was able to insert block with parameters and attributs. Thanks for your help on this matter.
I have to say that when I insert the block with the posted code, coordinates values (for my attributs) are the default values (values seen in the block editor).
My code doesn't add attributs. It just uses the existing ones. That is why I am confuse. What I want to perform works perfectly in graphical mode. But I need this to work by code.
Once the block is inserted by code, I can change X or Y position in the graphical block property.
The block moves (attributs coming along) but attributs value are not updated. Coordinates are still the same value (default values). Even with the Regen command.
When I change the X or Y position by code (here I used the BlockReference), block moves as well, but this time, attributs are not coming along. They stay where there are when I insert the block the first time.
I hope it is mode clear.
In the code I am using to insert Block, I do not use dynamic properties yet. For the moment, I only insert it, then try to move it in a graphical way. But inserted block by code doesn't behave like inserted block via Insert code.
Thanks for you help.
Ahmed