VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD Crashes when using snap helps with blocks

12 REPLIES 12
Reply
Message 1 of 13
Anonymous
290 Views, 12 Replies

AutoCAD Crashes when using snap helps with blocks

I've got a problem working with VBA. I load AutoCAD from a VB application designed by myself. When i try to use snap object to make things easy like moving , rotating blocks, etc. AutoCAD crashes. why does this occurs?
12 REPLIES 12
Message 2 of 13
Anonymous
in reply to: Anonymous

Let see this code - 'you designed yourself'
Message 3 of 13
Anonymous
in reply to: Anonymous

Thanks for your help, fool
Message 4 of 13
Anonymous
in reply to: Anonymous

Hi, You ask a question with a minimum of a hundred billion possible answers. You get an offer of help and reject it. It's quite clear from your alias that you simply trying to be a nuisance. -- Regards Laurie Comerford www.cadapps.com.au "diAb0Lo" wrote in message news:5554604.1084852650816.JavaMail.jive@jiveforum2.autodesk.com... > Thanks for your help, fool
Message 5 of 13
Anonymous
in reply to: Anonymous

yea, I can't say as though I've ever had a response like that - not on this site anyway. Maybe a spirted debate every now and then with valid points being brought up by both paties but never anything childish and malicious as posted above. I'm not sure what your after but I think you'll find most people that belong to this forum are above such things and won't be baited into a pissing match.

regards
Message 6 of 13
Anonymous
in reply to: Anonymous

It seems the obvious problm is a "chair 2 keyboard" interface problem. IDispatch seems to have been impelemented to Imouth instead of the vTable.

Just .02

Regards,

Bob Coward
CADS, Inc

800-366-0946
bcoward@mindspring.com
Message 7 of 13
Anonymous
in reply to: Anonymous

I'm not defending this guy Diabolo, but the response he got from you: Let see this code - 'you designed yourself' I would say it sounds more like a challenge than a helpful reply. I'd say you had it coming, but judging by the answer this Diabolo guy seems very polite. -- Saludos, Ing. Jorge Jimenez SICAD S.A., Costa Rica "thenrich" wrote in message news:2941964.1084883999114.JavaMail.jive@jiveforum2.autodesk.com... > yea, I can't say as though I've ever had a response like that - not on this site anyway. Maybe a spirted debate every now and then with valid points being brought up by both paties but never anything childish and malicious as posted above. I'm not sure what your after but I think you'll find most people that belong to this forum are above such things and won't be baited into a pissing match. > > regards
Message 8 of 13
Anonymous
in reply to: Anonymous

Ok i will try to explain what my VB application exactly does. It opens AutoCAD and create toolbars to insert some blocks. In some cases, when i try to insert any block using some snap object helps, AutoCAD crashes. Why?
PD: I try one by one snap helps and it crashes when using Extension help....
Message was edited by: diAb0Lo
Message 9 of 13
Anonymous
in reply to: Anonymous

Another question, I'd like to know if possible how to render a drawing using VBA
Message 10 of 13
Anonymous
in reply to: Anonymous

Here's a cutdown version of a routine I have for rendering. I don't have time to go into detailed explanations, but most of this stuff was told to me on this forum so you should be able to Google for it. In general see the Help for the matlib and rmat commands.
[pre]
Private Sub ApplyMaterials()
ThisDrawing.SendCommand "(if (not (member ""acrender.arx"" (arx))) (arxload ""acrender.arx""))" & vbCr ' Load
ThisDrawing.SendCommand "(c:matlib ""I"" ""BROWN BRICK"" """ & Replace(Application.Path, "\", "/") & "/Support/render.mli"")" & vbCr ' Import
ThisDrawing.SendCommand "(c:rmat ""M"" ""BROWN BRICK"" ""STANDARD"" nil nil '(""BRNBRICK.TGA"" nil nil (960.0 540.0)))" & vbCr ' Modify
ThisDrawing.SendCommand "(c:rmat ""A"" ""BROWN BRICK"" 16)" & vbCr ' Attach
ThisDrawing.SendCommand "(c:rmat ""N"" ""SPECIAL"" ""STANDARD"" nil nil '(""MyCreation.bmp"" 1.0 nil (2000.0 2000.0)))" & vbCr ' New
ThisDrawing.SendCommand "(c:rmat ""A"" ""SPECIAL"" ""Batten"")" & vbCr ' Attach
End Sub
[/pre]
Regards

Wayne Ivory
IT Analyst Programmer
Wespine Industries Pty Ltd
Message 11 of 13
Anonymous
in reply to: Anonymous

All I did was ask to see his code - in his words....
Message 12 of 13
Anonymous
in reply to: Anonymous

I think you're going to have to post some of your code in order for anyone to see what might be causing the crash. In particular the section you're referring to when you say "snap object helps" thanks, Kevin "diAb0Lo" wrote in message news:19487298.1084943636604.JavaMail.jive@jiveforum2.autodesk.com... > Ok i will try to explain what my VB application exactly does. It opens AutoCAD and create toolbars to insert some blocks. In some cases, when i try to insert any block using some snap object helps, AutoCAD crashes. Why?
Message 13 of 13
Anonymous
in reply to: Anonymous

i mean OSNAP points. You'll see I have an application which executes AutoCAD. This application creates toolbars for inserting blocks. These blocks are .DWG files, but i need attributes, so i create a new block called NAMEFILE + "TEMP". When i try to build a project (a lot of blocks) and i use the OSNAP points like midpoint, endpoint, etc... AutoCAD crashes. It just occurs when I execute ACAD from my application. I realize that if i open AutoCAD normally, and use the project file (DWG) nothing happens.
What could be happening?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost