Repository navigation
Lineweight #138
Unanswered
mindreaderlupo
asked this question in
Q&A
Lineweight
#138
Replies: 2 comments 2 replies
|
Hi, unfortunately in the current version you cant customize that. But in the next version this will be doable, still the example using the new api: const writer = new Writer();
const modelSpace = writer.document.modelSpace;
// Display the Lineweight
writer.document.addVariable("$LWDISPLAY").add(290, 1);
const green = writer.document.tables.addLayer({
name: "Green",
colorNumber: Colors.Green,
});
modelSpace.addLine({
start: point(),
end: point(100, 100),
lineWeight: 200, // Set the Lineweight. Should be the value * 100, not sure why!
layerName: green.name,
});Stay tuned, the next version will be 3.0.0. Regards. |
2 replies
|
Hi I published an alpha version. there is support for lineweights. https://www.npmjs.com/package/@tarikjabiri/dxf/v/3.0.0-alpha.1 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to rebuild existing Autocad files with this lib to automate drawing generation.
In the documentation, I got the point how to create Layers and Linetypes. I am currently struggeling to attatch Lineweights to an Entity, Block or (this would be the best case) a Layer.
I need Lineweight for 2 reasons: 1. Printing, 2. create bold text blocks
Could someone help me with a small example?
Thanks a lot and best regards
Felix
All reactions