please help me!!!!!

please help me!!!!!

Anonymous
Not applicable
197 Views
4 Replies
Message 1 of 5

please help me!!!!!

Anonymous
Not applicable
I have tried every thing looked in the help

I'm looking to insert a DWG file as a block off the the network

and I cant do it

please help me

Jeremy roman
0 Likes
198 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
AutoCAD release? What kind of network? Mapped drive or UNC paths? VBA or
lisp? I would assume VBA, but of late, you never know...

We need more info...

--
James Wedding, E.I.T.
IT Manager
Jones & Boyd, Inc.
Dallas, Texas
jwedding@NOSPAMjones-boyd.com
Remove NOSPAM from e-mail for reply.
0 Likes
Message 3 of 5

Anonymous
Not applicable
acad2k, peer to peer, unc path, vba
0 Likes
Message 4 of 5

Anonymous
Not applicable
Here's a bit of code that I use to insert blocks in VBA.(Simple version)

Dim BLkPath As String
Dim BLkNm As String
Dim x As Double
Dim y As Double

BLkPath = "\\servername\foldername\"
BLkNm = BLkPath & AcadDwgFile.dwg
call InsertBlk(Blknm,xCord,yCord)

Public Sub InsertBlk(BlkName As String, x As Variant, y As Variant)
Dim inspt(2) As Double
Dim Wblk As AcadBlockReference

inspt(0) = x: inspt(1) = y: inspt(2) = 0#

Set Wblk = ThisDrawing.ModelSpace.InsertBlock(inspt, BlkName, 1#, 1#, 1#, 0#)

End Sub


Hope this helps.
Ray C.
0 Likes
Message 5 of 5

Anonymous
Not applicable
That worked great I appreciate your help thanx!!!

 

 

Jeremy
0 Likes