Function RGBtoACI(r As Long, g As Long, b As Long) Dim color As New AcadAcCmColor Call color.SetRGB(r, g, b) RGBtoACI = color.ColorIndex End Function Sub test() Debug.Print RGBtoACI(63, 127, 111) End Sub
AutoCAD, AutoCAD Architecture (ACA/ADT), Revit Architecture, Revit MEP, Revit Structure, BIM, CAD, AutoLISP, VBA, VB, VB.NET, C#, databases, Access, SQL Server, FlexNet (FLEXlm), license usage reporting, software design, development, customization, integration...
Thursday, November 17, 2005
Code snippet to convert RGB to ACI
Here is a VBA function for AutoCAD that converts RGB values to ACI.
Subscribe to:
Post Comments (Atom)
Some of the latest blog posts
Contact Us
| About JTB World |
Website General Terms of Use |
Privacy Policy
^ Top of page
© 2004- JTB World. All rights reserved.
No comments:
Post a Comment