2010-03-17 12:26 UTC
Hello, I tried several ways to get OLEColor values:
This is the way it worked in ObjectDCL:
When calling this expression OpenDCL produces an ARX exception
When I put this into a list, I get an error because of wrong argument type
Knowing that AutoCAD tries to interpret the first integer of a list as a groupcode I tried to give it as a float
1. Is it really not possible to force AutoCAD not to try interpreting the first list item as a group code? Because may are many cases when lists of integers can be passed as an argument.
2. I may be wrong but: Shouldn't this also work?
(dcl_getolecolorvalue 118 37 147)
Fred
This is the way it worked in ObjectDCL:
Befehl: (odcl_getcolorvalue 118 37 147)
9643382When calling this expression OpenDCL produces an ARX exception
Befehl: (dcl_getolecolorvalue 118 37 147)
nilWhen I put this into a list, I get an error because of wrong argument type
Befehl: (dcl_getolecolorvalue (list 118 37 147))
; Fehler: Fehler bei ADS-AnforderungKnowing that AutoCAD tries to interpret the first integer of a list as a groupcode I tried to give it as a float
Befehl: (dcl_getolecolorvalue (list 118.0 37 147))
96433821. Is it really not possible to force AutoCAD not to try interpreting the first list item as a group code? Because may are many cases when lists of integers can be passed as an argument.
2. I may be wrong but: Shouldn't this also work?
(dcl_getolecolorvalue 118 37 147)
Fred