-
-
Notifications
You must be signed in to change notification settings - Fork 141
MultiLeader Block update #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @DomCR,
|
When I compare documents stored as DXF I see some differences:
|
In the original DXF The extended data of the multiLeader contain the following record: 1005 2F4 is the Handle of the MultiLeaderItself. In the data written by ACadSharp these data contain: byte order reversed. This, however, it is not changed back in the repaired dock. So this is not relevant either |
Hi @DomCR, |
Hi @DomCR, |
Hi @DomCR,
The following properties are identical to the ContextData sub-object in the MultiLeader. The ACDB_MLEADEROBJECTCONTEXTDATA_CLASS object is linked to the MultiLeader object as follows:
The dictionaries are properly read except that the ACDB_ANNOTATIONSCALES has no entry because the ACDB_MLEADEROBJECTCONTEXTDATA_CLASS object cannot be resolved. I expect that implementing this class and the respective reader and writer ensures that a MultiLeader is fully described so that it becomes visible in AutoCAD. The clone mechanism for MultiLeader has to be extended to the ACDB_MLEADEROBJECTCONTEXTDATA_CLASS object that is linked via the dictionary. Please let me know if you have remarks or suggestions. |
Hi @DomCR,
There are some open tasks/questions:
|
Hi @mme1950, I've done some investigation here: Can you provide the code to write a DWG with a MultiLeader? I'm trying to make it work but it always requires to recover the file and erases the For what you say the DxfClass is not fully necessary, but I don't understand why, also It doesn't make sense that the One test that succeeded at drawing a |
Hi @DomCR, It sems that it is important that the ACDB_MLEADEROBJECTCONTEXTDATA_CLASS object is contained in the DWG as compleate object with common an superclass properties and a handle. This object contains data identical to the CONTEXT_DATA substructure. I think it should be derived from |
But where is stored? the |
The MultiLeader has an XDictionary property. |
Here you can see how to find the attached object:
|
Which version is the file that you are reading? |
NOTE: I renamed the |
|
Can you try to add this assert to the
For me it always fails. |
When I create the file in AutoCAD write it with current version of ACadSharp, AutoCAD can open the file, but the I did not try yet to ceate a When cloning a I will let you know. |
The I am glad. Next:
|
I do not understand when AutoCAD creates an additional In the m.zip |
This seems to work. |
Hi @DomCR, I want to infer one more change:
Please let me know, what you think about this approach. |
Do you think it depends on the AutoCAD version wether or not a The m.dwg has AC1032. This file has AC1032 too, but does not contain a If I write this file without cange still no |
Is your feature request related to a problem? Please describe.
MultiLeader are not shown when are allocated in blocks.
Describe the solution you'd like
Create the MultiLeader block in a similar manner than dimensions so they are updated when they are allocated inside blocks.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: