jt6572 Posted March 14, 2017 Share Posted March 14, 2017 hi guys, i have been looking for a solution to a linetype scale issue i have: i have a double barrier line marking layer (centre of roads) that has a linetype of a double line (crudely ============ ). at a ltscale of 1 this only ever plots out as a single line. its been driving me crazy and the only thing i can think of to fix it is to isolate the layer and change all polylines within it to have a ltscale of 2 or 3 as this plots out correctly. i have been hoping to source or edit a lisp that will change the ltscale of just this single layer, or of only objects on this layer. even some way to isolate the given layer, change the ltscale of all those objects, turn all layers back on would be great. i am nigh on illiterate when it comes to lisp, so would really appreciate any help. thank you. Quote Link to comment Share on other sites More sharing options...
SunnyTurtle Posted March 14, 2017 Share Posted March 14, 2017 hi guys, i have been looking for a solution to a linetype scale issue i have: i have a double barrier line marking layer (centre of roads) that has a linetype of a double line (crudely ============ ). at a ltscale of 1 this only ever plots out as a single line. its been driving me crazy and the only thing i can think of to fix it is to isolate the layer and change all polylines within it to have a ltscale of 2 or 3 as this plots out correctly. i have been hoping to source or edit a lisp that will change the ltscale of just this single layer, or of only objects on this layer. even some way to isolate the given layer, change the ltscale of all those objects, turn all layers back on would be great. i am nigh on illiterate when it comes to lisp, so would really appreciate any help. thank you. This really needs a new Thread. A simple lisp to change this would be: (command "CHPROP" (ssget "X" (list (cons 8 "LayerName"))) "" "Scale" "3" "") Quote Link to comment Share on other sites More sharing options...
SLW210 Posted March 14, 2017 Share Posted March 14, 2017 I made a new thread linetype scale issue in the AutoLISP, Visual LISP & DCL Forum. Quote Link to comment Share on other sites More sharing options...
Grrr Posted March 14, 2017 Share Posted March 14, 2017 Look into the LTSCALE and PSLTSCALE system variables. Quote Link to comment Share on other sites More sharing options...
tombu Posted March 14, 2017 Share Posted March 14, 2017 hi guys, i have been looking for a solution to a linetype scale issue i have: i have a double barrier line marking layer (centre of roads) that has a linetype of a double line (crudely ============ ). at a ltscale of 1 this only ever plots out as a single line. its been driving me crazy and the only thing i can think of to fix it is to isolate the layer and change all polylines within it to have a ltscale of 2 or 3 as this plots out correctly. i have been hoping to source or edit a lisp that will change the ltscale of just this single layer, or of only objects on this layer. even some way to isolate the given layer, change the ltscale of all those objects, turn all layers back on would be great. i am nigh on illiterate when it comes to lisp, so would really appreciate any help. thank you. Simply copy the linetype in acad.lin or acadiso.lin add ×2 to the name and double all the numeric values and you have an identical linetype to load that works at a ltscale of 1. Assign that linetype in your template files and you will never have the issue again. Quote Link to comment Share on other sites More sharing options...
jt6572 Posted March 14, 2017 Author Share Posted March 14, 2017 Simply copy the linetype in acad.lin or acadiso.lin add ×2 to the name and double all the numeric values and you have an identical linetype to load that works at a ltscale of 1. Assign that linetype in your template files and you will never have the issue again. brilliant. thanks very much tombu. apologies for not creating a separate thread for this - have been criticised on another forum for creating them when there are others and guess im a bit hesitant... Quote Link to comment Share on other sites More sharing options...
jt6572 Posted March 15, 2017 Author Share Posted March 15, 2017 This really needs a new Thread.A simple lisp to change this would be: (command "CHPROP" (ssget "X" (list (cons 8 "LayerName"))) "" "Scale" "3" "") ...this is pretty awesome. using it now - thanks very much! 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.