Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change line weight and color #43

Open
youssef962 opened this issue Nov 4, 2022 · 2 comments
Open

change line weight and color #43

youssef962 opened this issue Nov 4, 2022 · 2 comments

Comments

@youssef962
Copy link

I know how to draw lines, but can I change the drawn line weight and color?

@Eligio-Cazo
Copy link

Hi. I have some questions here, but nobody answers me. Regarding your query, try this:

    Line = Acad.Activedocument.ModelSpace.AddLine(p1, p2)
    Line.color=5 # Color number 0 to 255, which are autocad colors, color 256 is assigned as a bylayer must be a integer.
    Line.Lineweight='0.18' # A string Value, must be between '0.00' and '2.11'

@youssef962
Copy link
Author

@Eligio-Cazo Thanks for your reply!
If you have any questions I might help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants