CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 8593
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedLinetype Scale Scripting

 Post Reply Post Reply
Author
tower123 View Drop Down
Newbie
Newbie


Joined: 28.Oct.2016
Location: United Kingdom
Using: AutoCAD2016
Status: Offline
Points: 2
Direct Link To This Post Topic: Linetype Scale Scripting
    Posted: 28.Oct.2016 at 15:20
Is it possible to edit my current script so that I can give certain layers a different linetype scale rather than just giving a universal scale of 1 to all?
Back to Top
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post Posted: 28.Oct.2016 at 15:51
What does your current script do?
 
And quick select could be an option.........
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 28.Oct.2016 at 16:10
Doesn't the QSELECT command open a dialog window?  Is there a command line version of QSELECT that can be used in a script or are you suggesting the script call a lisp routine?

Edited by John Connor - 28.Oct.2016 at 16:10
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post Posted: 31.Oct.2016 at 10:44
Hi,
 
You are right John qselect pops up a dialog window that can not be turned off.
There is also no line command for it.
However when combining the "selectsimilar" and the "change" command it is possible to use it in lisp.
If OP replys and explain what his script does it would be easyer to search for a solution.
We dont know what OP expects from the script.......
However ltscale remains a system variable so you can not define "lt scales" by layer but you can change it by layer.
 
Regards


Edited by rebellio - 31.Oct.2016 at 13:11
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 628
Direct Link To This Post Posted: 31.Oct.2016 at 16:12
It would certainly be easy to make a routine that would find everything [already drawn] on a given Layer and assign a linetype scale to all of them.  It would not, however, cause anything drawn later on that Layer to have that linetype scale.  As already noted, Layers can't have linetype scales assigned to them different from the general current-entity scale.  A wish-list item....
 
I haven't worked with reactors, but that might be a way to accomplish it, if a reactor can be triggered by setting a particular Layer current.  It could presumably set the current-entity linetype scale to what you want, so that new things drawn on that Layer would be at that scale.  But whether the linetype scale could be set back [presumably to 1] when you change to any different current Layer, I'm not sure -- someone with more experience with reactors could probably say.
 
Routines could also be made [without reactors] that would do that linetype-scale setting change when called, allow you to draw some specific thing, and set the linetype scale back when finished.  For instance, you could have a command for drawing a Line on that Layer, and one for drawing a Circle on that Layer.  One could probably also contain entity-type options within such a command, to set the Layer and linetype scale for whatever among those options you choose, and set both back when you're done.  Would something like that work?


Edited by Kent Cooper - 31.Oct.2016 at 16:19
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,410 seconds.