Skip to main content
Question

Writing to AutoCAD line weight attribute

  • May 1, 2013
  • 2 replies
  • 154 views

I am using Workbench 2012, SP3.

 

 

I am trying to create a tool, that writes to an AutoCAD DWG file.

 

 

I have exposed several formatting attributes and can write to them successfully (autocad_color for instance). However, when I set the value for autocad_lineweight, it is largely ignored.

 

 

If I set the value to say 6, 25 or even 199 it is not populated on the output. However, if I set the value to 200, then it is populated. Is there are a set of allowable values?

 

 

From the fme definition of this attribute it says that the value is in hundredths of a millimetre.

 

 

Regards,

 

 

Mark
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • May 1, 2013
Hi Mark,

 

 

looking at the documentation, it does indeed seem like there is a range of valid values that can be used:

 

 

The lineweight of the AutoCAD entity in hundredths of a millimeter. To set a lineweight of 0.05 mm in AutoCAD, set the attribute value to 5 (you can think of this as the size of the pen used to draw lines).

Range: 0, 5, 9, 13, 15, 18, 20, 25, 30, 35, 40, 50, 53, 60, 70, 80, 90, 100, 106, 120, 140, 158, 200, 211, -1 (by layer), -2 (by block), -3 (default)

Default: -3 (Default)

 

David

  • Author
  • May 1, 2013
Thanks for that David.

 

 

I was hunting for 'autocad_lineweight' and so missed 'autocad_layer_lineweight'. Thanks again for pointing me in the right direction.

 

 

Regards,

 

 

Mark