View Full Version : Changing linetype scales
david.pugh
2009-07-30, 01:40 PM
I desperately need a routine to go through a drawing changing the linetype scales of individual entities based on what dimscale is used. I've written the attached routine, the first bit works but the repeat loop doesn't. The line substituting the colour number isn't needed now.
I'm a newbie at lisp so explanations of what I've cocked up would be helpful.
Thanx
I desperately need a routine to go through a drawing changing the linetype scales of individual entities based on what dimscale is used. I've written the attached routine, the first bit works but the repeat loop doesn't. The line substituting the colour number isn't needed now.
I'm a newbie at lisp so explanations of what I've cocked up would be helpful.
Thanx
I haven't looked at the routine, but my bigger question is why do you want to change the linetype scales of individual entities based on the dimscale? I feel that's kind of dangerous and there are better, global ways to get the results you're looking for.
Maybe theres a better way to do what you're trying to achive.
Do you use Paperspace, Modelspace and viewports?
If so, look into the PSLTSCALE toggle, and I believe there are more viewport optioins in Acad 2007 and higher.
I don't know about your particular situation, so this may not work for you.
Just something to think about....
Instead of building a barn, you should shoot the sick horse.
(he he he.... just kiddin')
david.pugh
2009-07-30, 03:14 PM
Customer requirement. Everything in model space with a global dimscale and 10x it for ltscale. I'm having to convert drawings done in paper/model space with viewports with entity ltscales set according to their visibility. And they want it now!!
Customer requirement. Everything in model space with a global dimscale and 10x it for ltscale. I'm having to convert drawings done in paper/model space with viewports with entity ltscales set according to their visibility. And they want it now!!
You poor bast*rd..
Well then maybe somone can help with your routine.
:beer:
alanjt
2009-07-31, 06:21 PM
this may be a stupid question to the one writing the code, but why are you determining your 'dimscale' and ltscale calculation by the viewport's aspect ratio (dxf code 41)?
mr_nick
2009-08-01, 10:02 AM
Are you sure that absolutely every entity has got an LTS other than 1? If not then the code will throw an error when trying to use the value you have set to scl as this will be a nil value when an LTS of 1 is found - the DXF code 48 isn't used if the entity is has a 'standard' LTS.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.