Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set linetypescale in a new layer?

Status
Not open for further replies.

roust

Mechanical
Joined
Apr 10, 2002
Messages
6
Location
CN
I use VB for AutoCAD.

I wanna create a new layer,and set its color, linetype, linetypescale.
Now I can create create a new layer, and load a linetype and color for it. use code below:
newlayer.color=5
newlayer.linetype="center"

But how can i set linetypescale for all object on this layer?
 
You control ltscale per object and not per layer. You can set the variable ltscale and then draw. Could you be referring to lineweight?

"Everybody is ignorant, only on different subjects." — Will Rogers
 
In VBA, the ACAD object is DimAligned and you would probabity use GetXData and SetXData methods to control LinetypeScale property.

Hope this helps,

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top