AutoCAD, AutoCAD Architecture (ACA/ADT), Revit Architecture, Revit MEP, Revit Structure, BIM, CAD, AutoLISP, VBA, VB, VB.NET, C#, databases, Access, SQL Server, FlexNet (FLEXlm), license usage reporting, software design, development, customization, integration...
Saturday, November 27, 2004
ADT: Restrict access to PSDs
ADT: Restrict access to PSD's
Friday, November 19, 2004
IE vs Firefox
Here is an interesting interview I've read with a Microsoft Windows Executive about this.
Part 1
Part 2
PS. I'm using Avant Browser with IE 6 SP2 when I write this. I'm quite satisfied with it. I've also started to try Firefox at home. What do you use?
Monday, November 15, 2004
ADT Update Space Tips
- Start the CUSTOMIZE command.
- Select the Commands tab.
- Select the User defined category.
- Drag and drop the User Defined Button to the palette.
- Close the Customize dialog box.
- Right click on the new tool and select properties.
- As Command string enter: ^C^C(command "SPACEAUTOGENERATE" "UP" (setq p (getpoint)) p "" "")
DWF Composer SP1 released
Thursday, November 11, 2004
Pedit on steroids
I've updated this lisp that is useful if you want to quickly join lines, arcs and polylines into a polyline including a fuzz distance.
http://www.jtbworld.com/lisp/pljoinfuzz.htm
Technorati: AutoCAD
Friday, November 5, 2004
Create a data link file (UDL) using code
Private Sub CreateUDL()
Dim sStr As String
Dim bStr() As Byte
FileOpen(1, "c:\temp.udl", OpenMode.Binary, OpenAccess.Write)
FilePut(1, CByte(&HFFS), 1)
FilePut(1, CByte(&HFES), 2)
sStr = "[oledb]" & vbCrLf
bStr = System.Text.UnicodeEncoding.Unicode.GetBytes(sStr)
FilePut(1, bStr)
sStr = "; Everything after this line is an OLE DB initstring" & vbCrLf
bStr = System.Text.UnicodeEncoding.Unicode.GetBytes(sStr)
FilePut(1, bStr)
' Access Database
' sStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
' "C:\accessDB.mdb;Persist Security Info=False"
' SQL Server connection
' sStr = "Provider=SQLOLEDB.1;Integrated Security=SSPI;" & _
"Persist Security Info=False;" & _
"Initial Catalog=GB1114;Data Source=EMTNT15"
' ODBC data
sStr = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=GB1114"
bStr = System.Text.UnicodeEncoding.Unicode.GetBytes(sStr)
FilePut(1, bStr)
FileClose(1)
End Sub
Here is one using VB or VBA:
' Sample that shows how to create a data link file (UDL) using VB or VBA.
Sub Main()
Dim bStr() As Byte
Open "c:\temp.udl" For Binary Access Write As 1
Put #1, 1, CByte(&HFF)
Put #1, 2, CByte(&HFE)
bStr = "[oledb]" & vbCrLf
Put #1, , bStr
bStr = "; Everything after this line is an OLE DB initstring" & vbCrLf
Put #1, , bStr
' Access Database
' bStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\accessDB.mdb;" & _
"Persist Security Info=False"
' SQL Server connection
' bStr = "Provider=SQLOLEDB.1;Integrated Security=SSPI;" & _
"Persist Security Info=False;" & _
"Initial Catalog=GB1114;Data Source=EMTNT15"
' ODBC data
bStr = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=GB1114"
Put #1, , bStr
Close #1
End Sub
Welcome to my blog
I will cover things I hope you will find interesting like code samples, tips & trix, news and other stuff related to CAD, engineering, software development and more.
If you want to subscribe using a RSS Aggregator use this: http://jtbworld.blogspot.com/atom.xml
Best regards Jimmy Bergmark www.jtbworld.com