-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Implement DWG Writer for MultiLeader etc. #297
Comments
Hi @DomCR, we need some Help. We implemented the methods Is there anything we have to take care of? We created a PR: #300 regards |
Hi @DomCR, it seems that ALL "UNLISTED" entities do not appear in the documents _cadObjects. |
Here is the problem:
By now all UNLISTED are ignored because they have to be related to a Here is how the
A provisional solution could be to check the type of the I'll open a branch to take a look for a generic implementation. |
Thanks, it works. |
Hi @DomCR ,
|
They are needed to specify the type of
I've tried to do it using reflection in the writer but it ends with corrupted files, some of the codes are meant to be in a certain order, with reflection is really hard to specify these kind of things so I decided to use a more "traditional" approach.
Yes, the writer has a method that handles that,
That's the reason why I asked you to separate those properties, you can store them using a XYZ structure but they are not one, during the implementation make sure that you write each component separated.
There are 2 different ways for dxf to reference another object in a file, by name or by handle, you can use each corresponding method to do so: IDxfStreamWriter
void WriteHandle(int code, IHandledCadObject value, DxfClassMap map = null);
void WriteName(int code, INamedCadObject value, DxfClassMap map = null);
Yes, it would be good but before that I have to make sure that all the objects accept true color, not sure if there are some cases where the color is restricted.
yes, the #311 should fix the unlisted types. |
@DomCR, thanks. |
Hi @DomCR, DxfStreamWriterBase:
|
Hi @DomCR, we are trying to find out how to write colours to DXF. Looking at the DWG readers I find the following: But:
|
The DXF A BTW: We have the same problem with writing DWG. |
Hi @DomCR, I do not see how how versions-dependent properties should be handled on writing DXF. |
I've added some comments in the PR, about the
I just check the version, this example is taken from if (this.Version >= ACadVersion.AC1021)
{
this._writer.Write(46, mtext.RectangleHeight, map);
} |
The DWG writer methods for MultiLeader, MultiLeaderStyle etc. are not yet implemented.
The DXF write methods should be added.
We will implement it and open a PR.
The text was updated successfully, but these errors were encountered: