Skip to content

Get Layer and Change Linetype? #58

Answered by tarikjabiri
hschmiedhofer asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hschmiedhofer
Comment options

Answer selected by tarikjabiri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question Further information is requested
2 participants