artti Posted January 20, 2016 Share Posted January 20, 2016 Hi All, I'm looking for LISP routine that would be able to get attributes (linetype, color, lineweight) of drawn polyline and assign them to layer. Explanation in DWG attached. example.dwg Quote Link to comment Share on other sites More sharing options...
broncos15 Posted January 20, 2016 Share Posted January 20, 2016 You would be able to do this by using vla-get statements to grab the polyline's information, then editing the given layer based off of the information provided. You can also do it by grabbing the information using the DXF group code. For example, the group code 62 is the color of the object (if the color isn't by layer), I think 370 is the lineweight and 6 is the linetype. Quote Link to comment Share on other sites More sharing options...
broncos15 Posted January 20, 2016 Share Posted January 20, 2016 You should check out this link: http://www.afralisp.net/autolisp/tutorials/colours-and-linetypes.php to see an example of how part of it is done and get you rolling. If you need additional help, let me know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.