using vlax-put-property to assign true color values

using vlax-put-property to assign true color values

kevinl
Participant Participant
743 Views
4 Replies
Message 1 of 5

using vlax-put-property to assign true color values

kevinl
Participant
Participant
How does one go about assigning true color values to layers using the vlax-put-property in vlisp. I have my layer ename, I have converted it to an vla-object. I just need to find out how to enter the numbers.

Thanks
Kevin J Lazarowski
Linderoth Associates Inc.
0 Likes
744 Views
4 Replies
Replies (4)
Message 2 of 5

kevinl
Participant
Participant
I worked around this in lisp by using command line interface for true colors. I would be interested to know if vlisp can create a rgb value to assign to to a layer using the vlax commands or if writing code in vb and calling that from vlisp is the only solution.

Back to vb kindergarden

Kevin J. Lazarowski
Linderoth Associates Inc.
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi Kevin, Yes, this can be done with VLISP. No, I don't have the time to mess with LISP this morning 🙂 This VB(A) example should be easy to translate though. Public Sub TrueColorDemo() 'Grab first entity in model space Dim ent As AcadEntity Set ent = ThisDrawing.ModelSpace.Item(0) 'Get a true color object Dim trueColorObj As AcadAcCmColor Set trueColorObj = ent.TrueColor 'Set the RGB values '(Note that there are other members of this object to set the color) trueColorObj.SetRGB 128, 128, 128 'Provide the updated true color object back to the entity ent.TrueColor = trueColorObj End Sub -- Bobby C. Jones "linderoth" wrote in message news:27517505.1081206891729.JavaMail.jive@jiveforum1... > How does one go about assigning true color values to layers using the vlax-put-property in vlisp. I have my layer ename, I have converted it to an vla-object. I just need to find out how to enter the numbers. > > Thanks > Kevin J Lazarowski > Linderoth Associates Inc.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Check: http://www.jtbworld.com/lisp/DisplayColorProperties.htm -- Best Regards, Jimmy Bergmark CAD and Database Developer Manager at www.pharmadule-emtunga.com Take a look at JTB FlexReport (FLEXlm report tool) - www.jtbworld.com/jtbflexreport SmartPurger (Purges automatically) - www.jtbworld.com/?/smartpurger.htm or download some freeware at www.jtbworld.com More on AutoCAD 2005; www.jtbworld.com/autocad2005.htm "linderoth" wrote in message news:27517505.1081206891729.JavaMail.jive@jiveforum1... > How does one go about assigning true color values to layers using the vlax-put-property in vlisp. I have my layer ename, I have converted it to an vla-object. I just need to find out how to enter the numbers. > > Thanks > Kevin J Lazarowski > Linderoth Associates Inc.
0 Likes
Message 5 of 5

kevinl
Participant
Participant
That worked beautifully! Thanks a ton.

Kevin J. Lazarowski
Linderoth Associates inc.
0 Likes