Getpoint VBA command

We have developed a specialized add-in software that customizes and enhances BricsCad for Surveying. The initial project was written in VBA, however, we are now trying to produce a .dll with VB and have run into problems with the following routine :Private Sub Command1_Click() Dim P As IntelliCAD.Point Me.Hide Set P = ActiveDocument.Utility.GetPoint(, "Punto ? ") Me.Show vbModalEnd SubThe first time this routine is executed when the user presses the button Command1 - the form is hidden and execution proceeds correctly. The second time GetPoint is ignored and execution will not stop for the point to be selected, yielding an error. This problem occurs in all situations where a user input is required.It is possible to re-sincronize execution with the inclusion of a MsgBox, but this is a trick we would not like to use. This kind of problem in VBA was dealt with the inclusion of DoEvents loops but such an alternative is useless in VB.Questions: 1) Is this a bug? If the answer is yes, will it be corrected in a new release? (the current api supplied is equivalent to that of AutoCAD R14).2) Is there some additional programming that will cope with the problem?3) Where can we obtain a sample of the connection of a .dll with BricsCad?Kind regardsGuillermo Heyms

Comments

  • Guillermo,I use vb6 to write surveytools and I noticed the same problems for all the commandline commands. I asked for a solution with bricscad but so far no answer or solution. gr Rob

  • Yes this is a bug. We are indeed aware of a problem with most of the getXXX methods. They work ok in a standard VB or VBA application, but fail when used inside an Add-in .dll.As you describe, the method typically fails on the second call (first call is ok but the second call returns a method failed error).This is fixed in the current code and it is included in the current a Beta version A v 5.2 is scheduled to be released end of next week

This discussion has been closed.