Jump to content

Recommended Posts

Posted

Dear friends,

 

Greetings

 

How to convert DVB files into DBI files

 

Ramana

Posted

what's a DBI file ?

a google search picked up either a database file or a gaming file.

 

a dvb file is a set of vba code so I think it highly unlikely you can convert to either of those

Posted

a dvb file is a set of vba code so I think it highly unlikely you can convert to either of those

 

I would agree with that...

Posted

Hai,

 

I have collected the information about vbi from a freind,

 

VBI files are VB file only, this is also like dvb file, But DVB consisits of AUtocad objects, methods etc.. VBI is visual Basic for Intellicad.

 

acutlly i have some dvb files which i have down loaded from afranet site, He asked me to convert them into vbi format.

 

 

Ramana

Posted

then why did you ask about converting to a DBI file ?????

 

 

 

 

sheesh

  • 4 years later...
Posted

guy made mistake, so what...

 

I have same question... how to convert dvb code into vbi? is there any "easy" way?

 

(I made something that works in AutoCAD (dvb) and I want to make it work in IntelliCAD (vbi))

Posted

Although both dvb and vbi files are Microsoft VBA files the syntax for Intellicad (ProgeCAD) is different to that of AutoCAD VBA.

 

You can make a copy of your dvb file and change the file extension to vbi and then open the vbi file in the Intellicad VBA Manager. You must then step through the code and each time you come to a point where the syntax is wrong you have to manually fix the code.

 

As far as I know there is no automatic method of translating dvb files into vbi files.

Posted

Agreed. IntelliCAD's ActiveX objects might be entirely different to AutoCAD's - so whenever an object / property / method is called from ACad's library it would probably fail in ICad. So you might have to look up the relevant equivalent for ICad and replace that with a new call (possibly rearranging the parameters as well).

 

I know BricsCAD (derived from ICad) has ActiveX objects very close to the same as ACad. This because the vla functions seem to work in BC as it does in AC, but there are one or two which has a bit of a difference. I'm not sure if ICad uses the same library or if BC has implemented their own.

Posted

Just to demonstrate how an IntelliCAD vbi routine works look at this little routine:

 

Sub DreiDAbstand()

'   3D distances German Version
'   Copyright Tyke 2oo7

   Dim Point1    As IntelliCAD.Point
   Dim Point2    As IntelliCAD.Point
   Dim DLine     As IntelliCAD.Line
   Dim lineObj   As IntelliCAD.Line
   Dim DistSlope As Double
   Dim DistHoriz As Double
   Dim DistVert  As Double
   Dim DeltaX    As Double
   Dim DeltaY    As Double
   Dim DeltaZ    As Double
   
   Set Point1 = ActiveDocument.Utility.GetPoint(, "Erste Punkt selektieren...")
   Set Point2 = ActiveDocument.Utility.GetPoint(Point1, "Zweites Punkt selektieren...")
   
   ' Create a line from the base point and the last point entered
   Set DistLine = ActiveDocument.ModelSpace.AddLine(Point1, Point2)

   DeltaX = Point1.x - Point2.x
   DeltaY = Point1.y - Point2.y
   DeltaZ = Point1.z - Point2.z
   
   DistVert = DeltaZ
   DistHoriz = Sqr((DeltaX * DeltaX) + (DeltaY * DeltaY))
   DistSlope = Sqr((DistHoriz * DistHoriz) + (DeltaZ * DeltaZ))
   
   DistHoriz = Format(DistHoriz, "####0.##0")
   DistSlope = Format(DistSlope, "####0.##0")
   DistVert = Format(DistVert, "####0.##0")
   
   MsgBox ("Horizontales Abstand = " & DistHoriz & vbCrLf & _
           "         Schräg Abstand = " & DistSlope & vbCrLf & _
           "     Vertikales Abstand = " & DistVert)
           
   DistLine.Delete
   
   ActiveDocument.Utility.Prompt (vbCr & "Horiz. Abstand = " & DistHoriz & _
           "     Schräg Abstand = " & DistSlope & _
           "     Vert. Abstand = " & DistVert)
           
End Sub

 

ThisDrawing is replaced by ActiveDocument, coordinates are accessed by .x .y and .z properties not as coordinates (0) (1) and (2) in AutoCAD.

A point is declared as an IntelliCAD.Point and a line as IntelliCAD.Line.

The line is really not required in this routine, it's there just to demonstrate how a line is created and then deleted.

 

If you are really wanting to convert AutoCAD dvb projects into IntelliCAD vbi projects then you have your work cut out and I can only wish you the best of luck.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...