Hanauer, Thank you for your reply and valuable information!
As the subject is vast I think it is difficult to get solutions right away. At least in my case, I adjusted it little by little and it took a long time for it to work properly.
I believe I have a long road ahead of me, and maybe I have to walk the same path as yours.
Have a look at Deep Clone, HardPointerId, SoftPointerId, DBDictionary.TreatElementsAsHard, ObjectOverrule.
I will definitely follow your advice and study concepts like Deep Clone, HardPointerId, SoftPointerId and DBDictionary.TreatElementsAsHard. I was initially hesitant to use ObjectOverrule as I had read about it some time ago and had a hard time understanding how it works.
When you copy a "FlexTube" (within the same file or between files) you want it to have the same properties as the original.
It seems to me the most correct. But I still have no idea how to do that. Maybe I have to create my own object cloning method.
If you look closely at Kean's example he uses DxfCode.SoftPointerId. From what I saw you are using DxfCode.Text.
There are differences between the usage of HardPointerId and SoftPointerId.
I guess I didn't pay much attention. Thank you for guiding me around this.
There is a content called AU2010 - CP230-1V - AutoCAD® .NET - Practical Examples of Customizing AutoCAD Entity Behavior from Autodesk University 2010 written in VB .NET by Stephen Preston which I think can help because it has examples that you can practice, of course it involves time.
I'll check out the feature you mentioned, AU2010 - CP230-1V - AutoCAD® .NET - Practical AutoCAD Entity Behavior Customization Examples by Stephen Preston in VB .NET. It looks like a valuable reference that will provide me with practical examples to work with.
Thanks again for your guidance and for pointing me in the right direction. I really appreciate your willingness to share your knowledge. I will actively explore and test the examples you mentioned to further enhance my understanding.
Best regards, Luís Augusto.