Get Layer and Change Linetype? #58
Answered
by
tarikjabiri
hschmiedhofer
asked this question in
Q&A
-
Is there a way to get a reference to an existing layer via its name and change its linetype without stringifying and parsing the entire thing? |
Beta Was this translation helpful? Give feedback.
Answered by
tarikjabiri
Dec 19, 2022
Replies: 1 comment 1 reply
-
Hi, Yes of course there is a way, you can get the reference to a layer if exist: const layer = dxf.layer('layer_name'); // It returns undefined if not exist. just make sure that the layer names do not contain some special characters: Regards. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tarikjabiri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Yes of course there is a way, you can get the reference to a layer if exist:
just make sure that the layer names do not contain some special characters:
< > / \ "` : ; ? * | =
.Regards.