I have searched around, and the answers I have found do not work for me.
Using ACAD 2004 VBA, I have attached XData to some entities, with the application name like this:
Dim DataType as Integer
Dim Data as Variant
DataType(0) = 1001
Data(0) = "MyApplication"
.
.
...
In AutoCAD VBA, anyone know how to change the color of a Label?
I would assume it is the ForeColor property, but when I look at the predefined choices, they are shades of gray. A look at the Palette tab in the ForeColor property, shows nothing. No colors or anything is in there.
Maybe that is...
In VBA, a regular ole Combo Box control has a ColumnHeads property to display Column Headers (if you make it true).
Is there a way to put the text in the header? If you make this property true, it puts a blank row (no text) in there at the top.
Any way on ACAD 2004 VBA to find the number of text lines in an MText "paragraph", or do ya just have to figure it out somehow by using the bounding box and text height?
I am using AutoCAD 2004, and trying to delete a block in VBA.
I get an error that the block or object is referenced. In looking thru the help files, I noticed that the Blocks Collection does not have a delete function. But I don't want to delete the whole collection, just a block. Basically...
I am loading a DVB (VB Project) into an ACAD dwg. Once it is loaded, I can't Unload it. I keep getting a "invalid filename" message. I have tried using "vl-vbaunload" and "vbaunload", etc., but nothing.
So, can you unload a DVB? I know I loaded it with a VBA load command, but is the filenmae...
Anybody know how to create an Attribute, and have the Text Wrap (multiple lines) if it is longer than a certain width (or number of characters)?
An example would be a Notes section. If I type notes into a "box", and the width of some string becomes to wide for one line, I want the text to...
In my Acad.lsp file, I am loading a DVB file. When I open another drawing, it tells me the DVB is already loaded. Is there a way in LISP to check for it being loaded, and skip the loading of it?
I tried a simple If(not "ABC.DVB")..... but it didn't work.
In my program, I am setting a RecordSet(RS) Source. Then I open the RS, and load the frist 25 records into my form. All that works okay. I have a Next button on there, and when I click it, the RS isn't open anymore, and it dies.
I'm not closing the RS or setting it to nothing or nil. From one...
How do you tell AutoCAD to run APPLOAD on a certain "application or file", from inside a VBA program? Also, I'd prefer to not have to pick the app from the APPLOAD dialog.
TIA
If I add the MS FlexGrid Control, and click on Custom properties, it errors out, saying I can't add it during design, or the ActiveX control isn't loaded correctly or some such.
What is really wrong? If it is not loaded correctly, what put it on there, and what do I need to reinstall?
Thanks...
What do you have to change to get stacked dimensions to be above and below the dimension line, with the dimension line not broken? Primary on top of the line, and secondary below it.
Lets say you are going to copy one line. I have one machine here that when zoomed into say 200-250% (just a number), when you are asked where to copy the line to, it keeps displaying the line everytime you move the cursor. It doesn't copy multiple lines, it just looks like it is.
Like it is a...
Stupid question #100
I cannotfigure out how toactually connect to a ODBC database in VBA. I'm thinking I need to use the DBConnect function, but not sure about the Object it is requiring. Like the help file says use Object.Connect, but what exactly does it want? I can connect using the...
Can you use a FledGrid (MSHFlexGrid) to allow user input? Kind of like an Excel type window, where they can click in the cell and type, or do you have to type in a textbox and take the contents of the textbox and "dump" it to the grid?