Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Apr 10, 2002
6
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?
 
Replies continue below

Recommended for you

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