If if I hard corded the value ( (vla-put-colorindex clr 30) I still get this error:Įrror: bad argument type: VLA-OBJECT nil. (vla-settext objtable intRow intColumn strItem) (vla-SetCellBackgroundColor objtable intRow intColumn clr) (setq clr (vlax-create-object "AutoCAD.AcCmColor")) The drawings are electrically drawings which are made with colors (mainly yellow) and the text is made with a so-called.
(setq lstOfSublist (list (list strRet ))) Hi, I need help from you experts with converting hundreds of AutoCad DWG color drawings to black and white PDF that contains searchable text and is properly scaled in A4 format. (setq listResult (AfmHighlightSupStrToList HpAcad)) So I'm passing in a color number in the strItem (lets call it 30) but it's not recognizing the value: What am I doing wrong in setting the color. I tried forcing Windows to use the NVIDIA Quadro M1200 higher quality graphics card with AutoCAD, rather than my laptop's built-in on-board graphics card. Not drawing file specific: happens with various drawing files and also just creating a new blank drawing. OK, so I've tried numerous ways to accomplish this with no success. Not version specific: it's happening with AutoCAD 2018 and also 2022. Also please understand that you cant test the code do the system this was written for is specific to this application. I'll also post the actual file, this is my first attempt at using tables and I'm not much of a lsp writer to start with, so please excuse formatting for those detail oriented folks. The field is populated with HpAcad from above. (setq lstOfSublist (list (list HpAcad buCode BuName )))
(while (not (AfmRsEOF rsid)) start loop for primary owner data (setq rsid (AfmRsOpen SQLQuery)) Open record set for primary owner Here's the snippet of code which is used to fill columns 0,1,2
I have everything else working great, just cant figure out how to change this so it fills with a color instead of populating it with the actual stored value. This is what the table looks like, so it would be for column 0 Currently it's just inserting the stored value in the format of 14 0 81 10485632, so the color I want to assign to the cell would be 81 (3rd value from left). I have the color which should be applied to the cell. I've created a lsp routine which creates a table and in one column I need to apply a fill color (background fill) to the cell.