I want to draw of line, its' width is 0.15mm, how can I?
thanks a lot!
How can i set the width of line?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
-
- Active Member
- Posts: 33
- Joined: Thu Jan 14, 2016 4:17 am
Re: How can i set the width of line?
Please allow me to refer you to this detailed post about entity attributes:
http://www.qcad.org/rsforum/viewtopic.php?f=47&t=3202
http://www.qcad.org/rsforum/viewtopic.php?f=47&t=3202
-
- Active Member
- Posts: 33
- Joined: Thu Jan 14, 2016 4:17 am
Re: How can i set the width of line?
By property editor, the width of line can be edited. However, if i want to set the width of line before it be drawn, which function can be uesed?
thanks!
thanks!
Re: How can i set the width of line?
In the above mentioned post, please scroll down to "Fixed Attributes".
-
- Active Member
- Posts: 33
- Joined: Thu Jan 14, 2016 4:17 am
Re: How can i set the width of line?
by "Fixed Attributes", the width of line can be edited. However, i want to change a line which its' property isn't 'by layer', its' width must be setted by code. When 'setLineweight' is be usede, its' width cann't be changed, its' color can be changed. Why?
-
- Active Member
- Posts: 33
- Joined: Thu Jan 14, 2016 4:17 am
Re: How can i set the width of line?
In the commuity version, is the width of line to be setted by code? that is to say, the width of line cann't be setted by code. Only its' color can be setted by code.
-
- Active Member
- Posts: 33
- Joined: Thu Jan 14, 2016 4:17 am
Re: How can i set the width of line?
when a line is finished, i want to draw some different lines according to the path of the line by code automatically, How is it realized?
Thanks!
can someone help me?
Thanks!
can someone help me?
Re: How can i set the width of line?
setLineweight will set the line weight of an entity to any of the available line weights (see http://www.qcad.org/doc/qcad/latest/dev ... bea7d2ac58). RLineweight::WeightByLayer is the default value.
Please start a new topic for new, unrelated questions. Also, please be as specific as possible, provide examples, screenshots, etc. to explain what you are trying to achieve. This will greatly increase the chances of getting a helpful response. Thanks.when a line is finished, i want to draw some different lines according to the path of the line by code automatically