API for Layer editing

Hello,

Can any body tell me, how to change the line style & the color for the particular layer with the help of API?

Thanks & Regards

Shrinivas Jayphalkar

SolidworksApi macros
Answers 4
DG
DG 2011-09-27 Best Answer

Check this macro. This macro deletes all the existing layers from the drawing and adds 14 different layer with different color, line style and thickness. You can modify the code to suit your requirements.

Click here to download the file

SJ
SJ 2011-09-28

Thanks Deepak,

Sorry but I can not download the solution you have kept on link.

Can you send it again or, if code is short can you paste it in reply.

Thanks & Regards

Shrinivas Jayphalkar

DG
DG 2011-09-28

Try this

SJ
SJ 2011-09-28

Thanks Deepak it is working, I will modify the code according to my requirement.

Regards

Shrinivas Jayphalkar