<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reading attributes from dwg and importing into web page in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327845#M91347</link>
    <description>&lt;BR /&gt;
&lt;BR /&gt;
Hi anna,&lt;BR /&gt;
&lt;P&gt;just refer the code of mine. Its a part only. I beleive you can follow.&lt;BR /&gt;
This uses attributes.&lt;BR /&gt;
&lt;BR /&gt;I am using ms Access database and VB forms to draw in AutoCAD&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;find your way. If you need any further help mail me&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;N.Murugan&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Public Function WriteOneBarData(PassY As Double)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim Barloc As Variant&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim barv As Variant&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim BarIndicate As String&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim TotBarNos As String&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim dpt(0 To 2) As Double&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Barloc = Array(49, 58, 68, 78, 89, 101, 107, 119, 129,&lt;BR /&gt;
_&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
139, 149, 159, 169, 179, 189)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BarIndicate = TypeOfBar &amp;amp; CStr _&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
(BarRecord.Fields("SizeOfBar"))&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; TotBarNos = CStr(BarRecord.Fields("MemberNos") * _&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
BarRecord.Fields("NoOfBars"))&lt;BR /&gt;
&lt;BR /&gt;Dim a, b, c, d, e, f, g, h, i, j, k, l, m, n, o As Variant&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;BR /&gt;a = BarRecord.Fields("BarMark")&lt;BR /&gt;
&lt;BR /&gt;b = BarIndicate&lt;BR /&gt;
&lt;BR /&gt;c = BarRecord.Fields("MemberNos")&lt;BR /&gt;
&lt;BR /&gt;d = BarRecord.Fields("NoOfBars")&lt;BR /&gt;
&lt;BR /&gt;e = TotBarNos&lt;BR /&gt;
&lt;BR /&gt;f = BarRecord.Fields("DimTotal")&lt;BR /&gt;
&lt;BR /&gt;g = BarRecord.Fields("ShapeCode")&lt;BR /&gt;
&lt;BR /&gt;h = BarRecord.Fields("DimA")&lt;BR /&gt;
&lt;BR /&gt;i = BarRecord.Fields("DimB")&lt;BR /&gt;
&lt;BR /&gt;j = BarRecord.Fields("DimC")&lt;BR /&gt;
&lt;BR /&gt;k = BarRecord.Fields("DimD")&lt;BR /&gt;
&lt;BR /&gt;l = BarRecord.Fields("DimE")&lt;BR /&gt;
&lt;BR /&gt;m = BarRecord.Fields("DimF")&lt;BR /&gt;
&lt;BR /&gt;n = BarRecord.Fields("DimG")&lt;BR /&gt;
&lt;BR /&gt;o = BarRecord.Fields("DimH")&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;barv = Array(a, b, c, d, e, f, g, h, i, j, k, l, k, m, n, o)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set blockref = AcadCallObject.ActiveDocument.ModelSpace.&lt;BR /&gt;
_&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; InsertBlock(iPnt, "BarData", 1, 1, 0)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If blockref.HasAttributes Then&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrayAttributes = blockref.GetAttributes&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For ii = LBound(ArrayAttributes) To UBound(ArrayAttributes)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set attref = ArrayAttributes(ii)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsNull(barv(ii)) Then&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.TextString = " "&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.TextString = barv(ii)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.HorizontalAlignment = acHorizontalAlignmentRight&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpt(0) = Barloc(ii)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpt(1) = PassY - 4#&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpt(2) = 0#&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.TextAlignmentPoint = dpt&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.Update&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blockref.Update&lt;BR /&gt;
&lt;BR /&gt;End If&lt;BR /&gt;
&lt;BR /&gt;WrBool = True&lt;BR /&gt;
&lt;BR /&gt;End Function&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Anna Maria Wood wrote:&lt;BR /&gt;
&lt;/P&gt;&lt;BLOCKQUOTE type="CITE"&gt;Hi All, I am a newbie to VB programming and have&lt;BR /&gt;
a question for the group. I am hoping someone has tackled this problem&lt;BR /&gt;
already and that there might be some source code out there that I can learn&lt;BR /&gt;
from to develop my project. We have a SQL database that we have developed&lt;BR /&gt;
to keep track of our drawings, rev levels, BOM's, where used, etc. The&lt;BR /&gt;
user interface is through Internet Explorer, it allows all our company&lt;BR /&gt;
personal to access engineering documents of all types, from anywhere and&lt;BR /&gt;
at anytime. Some of the info we keep track of is: Rev Date, Material, Size&lt;BR /&gt;
and Hardness. I would like to write a VB program that that will go out&lt;BR /&gt;
and read the attributes we have in our dwg file and place them in their&lt;BR /&gt;
corresponding input boxes on the web page. What I envision is on our web&lt;BR /&gt;
page there is a button "Get Info", that when clicked would launch a VB&lt;BR /&gt;
program that would bring up a common dialog box to go and select the appropriate&lt;BR /&gt;
AutoCAD file. After selecting the file, the program would go in and read&lt;BR /&gt;
the needed attributes (without launching a session of AutoCAD) and return&lt;BR /&gt;
them to their appropriate input boxes on the web page. I am probably in&lt;BR /&gt;
way over my head on this one, but I have found that is a good way to learn&lt;BR /&gt;
by tackling a project that will be useful to me. Below is some of the html&lt;BR /&gt;
from our web page. Thanks for you input, Anna Maria Wood Auer Precision,&lt;BR /&gt;
Inc. Mesa, Arizona ----------------------------------------------------------------------------&lt;BR /&gt;
-----------------------&amp;nbsp;&lt;FORM name="thisForm" method="post"&gt;&lt;BR /&gt;
&lt;TABLE id="TABLE1"&gt;&lt;BR /&gt;
&lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;
&lt;TD&gt;Rev Date:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtRevDate" name="txtRevDate" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;Material:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtMaterial" name="txtMaterial" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;/TR&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TR&gt;&lt;BR /&gt;
&lt;TD&gt;Size:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtSize" name="txtSize" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;Hardness:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtHardness" name="txtHardness" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;/TR&gt;&lt;BR /&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;
&lt;INPUT type="button" name="btnGetInfo" id="btnGetInfo" value="Get Info" /&gt;&lt;BR /&gt;
onclick="thisPage._fireEvent('btnGetInfo','onclick'); return false;"&amp;gt;&lt;/FORM&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 28 Aug 2000 17:16:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-08-28T17:16:52Z</dc:date>
    <item>
      <title>Reading attributes from dwg and importing into web page</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327841#M91343</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I am a newbie to VB programming and have a question for the group.   I am&lt;BR /&gt;
hoping someone has tackled this problem already and that there might be some&lt;BR /&gt;
source code out there that I can learn from to develop my project.&lt;BR /&gt;
&lt;BR /&gt;
We have a SQL database that we have developed to keep track of our drawings,&lt;BR /&gt;
rev levels, BOM's, where used, etc.  The user interface is through Internet&lt;BR /&gt;
Explorer, it allows all our company personal to access engineering documents&lt;BR /&gt;
of all types, from anywhere and at anytime.&lt;BR /&gt;
&lt;BR /&gt;
Some of the info we keep track of is: Rev Date, Material, Size and Hardness.&lt;BR /&gt;
I would like to write a VB program that that will go out and read the&lt;BR /&gt;
attributes we have in our dwg file and place them in their corresponding&lt;BR /&gt;
input boxes on the web page.&lt;BR /&gt;
&lt;BR /&gt;
What I envision is on our web page there is a button "Get Info", that when&lt;BR /&gt;
clicked would launch a VB program that would bring up a common dialog box to&lt;BR /&gt;
go and select the appropriate AutoCAD file.  After selecting the file, the&lt;BR /&gt;
program would go in and read the needed attributes (without launching a&lt;BR /&gt;
session of AutoCAD) and return them to their appropriate input boxes on the&lt;BR /&gt;
web page.&lt;BR /&gt;
&lt;BR /&gt;
I am probably in way over my head on this one, but I have found that is a&lt;BR /&gt;
good way to learn by tackling a project that will be useful to me.&lt;BR /&gt;
&lt;BR /&gt;
Below is some of the html from our web page.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for you input,&lt;BR /&gt;
&lt;BR /&gt;
Anna Maria Wood&lt;BR /&gt;
Auer Precision, Inc.&lt;BR /&gt;
Mesa, Arizona&lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------------------------------------------&lt;BR /&gt;
-----------------------&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TITLE&gt;otherdrawing&lt;/TITLE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FORM name="thisForm" method="post"&gt;&lt;BR /&gt;
&lt;TABLE id="TABLE1"&gt;&lt;BR /&gt;
   &lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;
       &lt;TD&gt;Rev Date: &lt;/TD&gt;&lt;BR /&gt;
       &lt;TD&gt;&lt;INPUT type="text" id="txtRevDate" name="txtRevDate" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
       &lt;TD&gt;Material: &lt;/TD&gt;&lt;BR /&gt;
       &lt;TD&gt;&lt;INPUT type="text" id="txtMaterial" name="txtMaterial" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
   &lt;/TR&gt;&lt;BR /&gt;
&lt;BR /&gt;
   &lt;TR&gt;&lt;BR /&gt;
       &lt;TD&gt;Size: &lt;/TD&gt;&lt;BR /&gt;
       &lt;TD&gt;&lt;INPUT type="text" id="txtSize" name="txtSize" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
       &lt;TD&gt;Hardness: &lt;/TD&gt;&lt;BR /&gt;
       &lt;TD&gt;&lt;INPUT type="text" id="txtHardness" name="txtHardness" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
   &lt;/TR&gt;&lt;BR /&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;INPUT type="button" name="btnGetInfo" id="btnGetInfo" value="Get Info" /&gt;&lt;BR /&gt;
onclick="thisPage._fireEvent('btnGetInfo','onclick'); return false;"&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;/FORM&gt;</description>
      <pubDate>Thu, 10 Aug 2000 19:45:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327841#M91343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-10T19:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reading attributes from dwg and importing into web page</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327842#M91344</link>
      <description>Well, I have been working on this project this weekend and here is what I&lt;BR /&gt;
have so far.  I have not been able to find a good example of extracting&lt;BR /&gt;
specific attributes from a specific block.  Considering I have done zero&lt;BR /&gt;
programming in my life I am happy that I have some part of this working.&lt;BR /&gt;
Just could use some help over this little hump.&lt;BR /&gt;
&lt;BR /&gt;
My code is shown below and I would appreciate some help for getting the&lt;BR /&gt;
attributes out of a block and into a variable.  Then I will work on it some&lt;BR /&gt;
more to figuire out how to get into a web page.  The trouble area is at the&lt;BR /&gt;
bottom of the code.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your input,&lt;BR /&gt;
&lt;BR /&gt;
Anna Wood&lt;BR /&gt;
----------------------------------------------------------------------------&lt;BR /&gt;
----------------------------&lt;BR /&gt;
&lt;BR /&gt;
VERSION 5.00&lt;BR /&gt;
Begin VB.Form frmExtractAttributes&lt;BR /&gt;
   Caption         =   "Update PartMaster Info"&lt;BR /&gt;
   ClientHeight    =   2205&lt;BR /&gt;
   ClientLeft      =   60&lt;BR /&gt;
   ClientTop       =   345&lt;BR /&gt;
   ClientWidth     =   4680&lt;BR /&gt;
   LinkTopic       =   "Form1"&lt;BR /&gt;
   MaxButton       =   0   'False&lt;BR /&gt;
   ScaleHeight     =   2205&lt;BR /&gt;
   ScaleWidth      =   4680&lt;BR /&gt;
   StartUpPosition =   3  'Windows Default&lt;BR /&gt;
   Begin VB.TextBox txtRevision&lt;BR /&gt;
      Height          =   495&lt;BR /&gt;
      Left            =   2760&lt;BR /&gt;
      TabIndex        =   3&lt;BR /&gt;
      Top             =   360&lt;BR /&gt;
      Width           =   1700&lt;BR /&gt;
   End&lt;BR /&gt;
   Begin VB.TextBox txtPartNumber&lt;BR /&gt;
      Height          =   495&lt;BR /&gt;
      Left            =   120&lt;BR /&gt;
      TabIndex        =   2&lt;BR /&gt;
      Top             =   360&lt;BR /&gt;
      Width           =   2300&lt;BR /&gt;
   End&lt;BR /&gt;
   Begin VB.CommandButton cmdExit&lt;BR /&gt;
      Caption         =   "Exit"&lt;BR /&gt;
      Height          =   495&lt;BR /&gt;
      Left            =   3240&lt;BR /&gt;
      TabIndex        =   1&lt;BR /&gt;
      Top             =   1440&lt;BR /&gt;
      Width           =   1215&lt;BR /&gt;
   End&lt;BR /&gt;
   Begin VB.CommandButton cmdStart&lt;BR /&gt;
      Caption         =   "Start"&lt;BR /&gt;
      Height          =   495&lt;BR /&gt;
      Left            =   120&lt;BR /&gt;
      TabIndex        =   0&lt;BR /&gt;
      Top             =   1440&lt;BR /&gt;
      Width           =   1215&lt;BR /&gt;
   End&lt;BR /&gt;
   Begin VB.Label lblRevision&lt;BR /&gt;
      Caption         =   "Revision"&lt;BR /&gt;
      Height          =   255&lt;BR /&gt;
      Left            =   2760&lt;BR /&gt;
      TabIndex        =   5&lt;BR /&gt;
      Top             =   120&lt;BR /&gt;
      Width           =   1700&lt;BR /&gt;
   End&lt;BR /&gt;
   Begin VB.Label lblPartNumber&lt;BR /&gt;
      Caption         =   "Part Number"&lt;BR /&gt;
      Height          =   255&lt;BR /&gt;
      Left            =   120&lt;BR /&gt;
      TabIndex        =   4&lt;BR /&gt;
      Top             =   120&lt;BR /&gt;
      Width           =   2300&lt;BR /&gt;
   End&lt;BR /&gt;
End&lt;BR /&gt;
Attribute VB_Name = "frmExtractAttributes"&lt;BR /&gt;
Attribute VB_GlobalNameSpace = False&lt;BR /&gt;
Attribute VB_Creatable = False&lt;BR /&gt;
Attribute VB_PredeclaredId = True&lt;BR /&gt;
Attribute VB_Exposed = False&lt;BR /&gt;
&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
Public appAutoCad As Object&lt;BR /&gt;
Public docAutoCad As Object&lt;BR /&gt;
Public mspace As Object&lt;BR /&gt;
Public appPartMaster As Object&lt;BR /&gt;
Dim blockObj As AcadBlock&lt;BR /&gt;
Dim attributeObj As AcadAttribute&lt;BR /&gt;
Dim PartNumber As String&lt;BR /&gt;
Dim Revision As String&lt;BR /&gt;
&lt;BR /&gt;
Private Sub cmdExit_Click()&lt;BR /&gt;
    Unload frmExtractAttributes&lt;BR /&gt;
    End&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub cmdStart_Click()&lt;BR /&gt;
&lt;BR /&gt;
    'Load PartMaster&lt;BR /&gt;
    Set appPartMaster = GetObject("", "InternetExplorer.Application")&lt;BR /&gt;
        If Err &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;
            Err.Clear&lt;BR /&gt;
            Set appPartMaster = CreateObject("InternetExplorer.Application")&lt;BR /&gt;
            If Err &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;
                MsgBox "Could Not Load PartMaster.", vbExclamation&lt;BR /&gt;
                End&lt;BR /&gt;
            End If&lt;BR /&gt;
        End If&lt;BR /&gt;
    appPartMaster.Visible = True&lt;BR /&gt;
    appPartMaster.navigate "http://www.acrodesigns.com/"&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub Form_Load()&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    'Load AutoCad&lt;BR /&gt;
    Set appAutoCad = GetObject(, "AutoCAD.Application")&lt;BR /&gt;
    If Err Then&lt;BR /&gt;
        Err.Clear&lt;BR /&gt;
        MsgBox "AutoCAD is not running. Please exit and start AutoCAD.",&lt;BR /&gt;
vbExclamation&lt;BR /&gt;
        cmdStart.Enabled = False&lt;BR /&gt;
    Else&lt;BR /&gt;
        Set docAutoCad = appAutoCad.ActiveDocument&lt;BR /&gt;
        Set mspace = docAutoCad.ModelSpace&lt;BR /&gt;
    End If&lt;BR /&gt;
&lt;BR /&gt;
'--------------------------------------------------------------&lt;BR /&gt;
'Problem area in code, I wish to access a block named 02-TITLE,&lt;BR /&gt;
'then extract the attribute tag TOOL_NO. and&lt;BR /&gt;
'place that text string for that tag in a variable called PartNumber.&lt;BR /&gt;
&lt;BR /&gt;
    For Each blockObj In mspace&lt;BR /&gt;
        If blockObj.Name = "02-TITLE" Then&lt;BR /&gt;
            If attributeObj.TagString = "TOOL_NO." Then&lt;BR /&gt;
                PartNumber = attributeObj.TextString&lt;BR /&gt;
            End If&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next blockObj&lt;BR /&gt;
&lt;BR /&gt;
    Let txtPartNumber = PartNumber&lt;BR /&gt;
&lt;BR /&gt;
'----------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------------------------------------------&lt;BR /&gt;
------------------------------&lt;BR /&gt;
"Anna Maria Wood" &lt;AWOOD&gt; wrote in message&lt;BR /&gt;
news:ef34252.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hi All,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I am a newbie to VB programming and have a question for the group.   I am&lt;BR /&gt;
&amp;gt; hoping someone has tackled this problem already and that there might be&lt;BR /&gt;
some&lt;BR /&gt;
&amp;gt; source code out there that I can learn from to develop my project.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; We have a SQL database that we have developed to keep track of our&lt;BR /&gt;
drawings,&lt;BR /&gt;
&amp;gt; rev levels, BOM's, where used, etc.  The user interface is through&lt;BR /&gt;
Internet&lt;BR /&gt;
&amp;gt; Explorer, it allows all our company personal to access engineering&lt;BR /&gt;
documents&lt;BR /&gt;
&amp;gt; of all types, from anywhere and at anytime.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Some of the info we keep track of is: Rev Date, Material, Size and&lt;BR /&gt;
Hardness.&lt;BR /&gt;
&amp;gt; I would like to write a VB program that that will go out and read the&lt;BR /&gt;
&amp;gt; attributes we have in our dwg file and place them in their corresponding&lt;BR /&gt;
&amp;gt; input boxes on the web page.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; What I envision is on our web page there is a button "Get Info", that when&lt;BR /&gt;
&amp;gt; clicked would launch a VB program that would bring up a common dialog box&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; go and select the appropriate AutoCAD file.  After selecting the file, the&lt;BR /&gt;
&amp;gt; program would go in and read the needed attributes (without launching a&lt;BR /&gt;
&amp;gt; session of AutoCAD) and return them to their appropriate input boxes on&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; web page.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I am probably in way over my head on this one, but I have found that is a&lt;BR /&gt;
&amp;gt; good way to learn by tackling a project that will be useful to me.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Below is some of the html from our web page.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for you input,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Anna Maria Wood&lt;BR /&gt;
&amp;gt; Auer Precision, Inc.&lt;BR /&gt;
&amp;gt; Mesa, Arizona&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --------------------------------------------------------------------------&lt;BR /&gt;
--&lt;BR /&gt;
&amp;gt; -----------------------&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;TITLE&gt;otherdrawing&lt;/TITLE&gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;TABLE id="TABLE1"&gt;&lt;BR /&gt;
&amp;gt;    &lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;Rev Date: &lt;/TD&gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;&lt;INPUT type="text" id="txtRevDate" name="txtRevDate" size="20&amp;lt;BR" /&gt;
&amp;gt; maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;Material: &lt;/TD&gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;&lt;INPUT type="text" id="txtMaterial" name="txtMaterial" size="20&amp;lt;BR" /&gt;
&amp;gt; maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&amp;gt;    &lt;/TR&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;    &lt;TR&gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;Size: &lt;/TD&gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;&lt;INPUT type="text" id="txtSize" name="txtSize" size="20&amp;lt;BR" /&gt;
&amp;gt; maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;Hardness: &lt;/TD&gt;&lt;BR /&gt;
&amp;gt;        &lt;TD&gt;&lt;INPUT type="text" id="txtHardness" name="txtHardness" size="20&amp;lt;BR" /&gt;
&amp;gt; maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&amp;gt;    &lt;/TR&gt;&lt;BR /&gt;
&amp;gt; &lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;INPUT type="button" name="btnGetInfo" id="btnGetInfo" value="Get Info" /&gt;&lt;BR /&gt;
&amp;gt; onclick="thisPage._fireEvent('btnGetInfo','onclick'); return false;"&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/AWOOD&gt;</description>
      <pubDate>Sun, 13 Aug 2000 07:30:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327842#M91344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-13T07:30:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327843#M91345</link>
      <description>Hi Anna Maria.&lt;BR /&gt;
&lt;BR /&gt;
This code (made in A2K VBA) will show how to get a specfic block, and get&lt;BR /&gt;
the attributes in it.&lt;BR /&gt;
To use this in your project, replace "ThisDrawing" with "docAutoCad"&lt;BR /&gt;
&lt;BR /&gt;
--------------------------------------------------------------------------&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Sub Test()&lt;BR /&gt;
&lt;BR /&gt;
Dim ssAtt As AcadSelectionSet&lt;BR /&gt;
Dim oBlock As AcadBlockReference&lt;BR /&gt;
Dim oAtts As Variant&lt;BR /&gt;
Dim dxfcode(1) As Integer&lt;BR /&gt;
Dim dxfdata(1) As Variant&lt;BR /&gt;
Dim BlockName As String&lt;BR /&gt;
Dim TagString As String&lt;BR /&gt;
Dim attCounter As Integer&lt;BR /&gt;
&lt;BR /&gt;
' Here we set the NAME of the block we're searching for...&lt;BR /&gt;
BlockName = "BlockName" ' NOT Casesensitive&lt;BR /&gt;
' Here we set the Attribute TagString from the Block(s) we want.&lt;BR /&gt;
TagString = "ATTRIBUTES TAGSTRING" ' CASESENSITIVE. Use UPPERCASE HERE!&lt;BR /&gt;
&lt;BR /&gt;
' Here, we build a filter for our selectionset.&lt;BR /&gt;
dxfcode(0) = 0&lt;BR /&gt;
dxfdata(0) = "INSERT"&lt;BR /&gt;
dxfcode(1) = 2&lt;BR /&gt;
dxfdata(1) = BlockName&lt;BR /&gt;
&lt;BR /&gt;
' Here we create the Selectionset&lt;BR /&gt;
Set ssAtt = ThisDrawing.SelectionSets.Add("Att")&lt;BR /&gt;
&lt;BR /&gt;
' Here we collect all the blocks that match the filter&lt;BR /&gt;
ssAtt.Select acSelectionSetAll, , , dxfcode, dxfdata&lt;BR /&gt;
&lt;BR /&gt;
' If there is at least 1 instance of the block in the drawing...&lt;BR /&gt;
If ssAtt.Count &amp;gt; 0 Then&lt;BR /&gt;
    ' .. iterate through them...&lt;BR /&gt;
    For Each oBlock In ssAtt&lt;BR /&gt;
        ' ... get all the attributes in the block..&lt;BR /&gt;
        oAtts = oBlock.GetAttributes&lt;BR /&gt;
        ' ... iterate through all the attributes...&lt;BR /&gt;
        For attCounter = LBound(oAtts) To UBound(oAtts)&lt;BR /&gt;
            ' If the Attributes Tagstring match out tagstring...&lt;BR /&gt;
            If UCase(oAtts(attCounter).TagString) = TagString Then&lt;BR /&gt;
                ' ... then tell us with a MsgBox!&lt;BR /&gt;
                MsgBox oAtts(attCounter).TextString&lt;BR /&gt;
            End If&lt;BR /&gt;
        Next&lt;BR /&gt;
    Next&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
' Delete the selectionset when we're done with it.&lt;BR /&gt;
ssAtt.Delete&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
--------------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps you.&lt;BR /&gt;
&lt;BR /&gt;
Trond Hasse Lie&lt;BR /&gt;
Norway</description>
      <pubDate>Sun, 13 Aug 2000 21:19:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327843#M91345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-13T21:19:11Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327844#M91346</link>
      <description>Anna Maria,&lt;BR /&gt;
&lt;BR /&gt;
Maybe you can use the next peace of code. With this you can extract 1 or&lt;BR /&gt;
more attributes&lt;BR /&gt;
from your block.&lt;BR /&gt;
&lt;BR /&gt;
==========&lt;BR /&gt;
Dim atts As Variant, ss As AcadSelectionSet&lt;BR /&gt;
Dim fType(0 To 1) As Integer, fData(0 To 1)&lt;BR /&gt;
&lt;BR /&gt;
    fType(0) = 0: fData(0) = "INSERT"&lt;BR /&gt;
    fType(1) = 2: fData(1) = "02-TITLE"&lt;BR /&gt;
    ss.Select acSelectionSetAll, , , fType, fData&lt;BR /&gt;
&lt;BR /&gt;
    If ss.Count &amp;gt; 0 Then&lt;BR /&gt;
        For i = 0 To ss.Count - 1&lt;BR /&gt;
            atts = ss.Item(i).GetAttributes&lt;BR /&gt;
            For j = LBound(atts) To UBound(atts)&lt;BR /&gt;
                Select Case UCase(atts(j).TagString)&lt;BR /&gt;
                    Case "TOOL_NO. "&lt;BR /&gt;
                        PartNumber = atts(j).TextString&lt;BR /&gt;
&lt;BR /&gt;
                    Case "xxx"&lt;BR /&gt;
                    &lt;MORE code=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
etc. etc. etc.&lt;BR /&gt;
&lt;BR /&gt;
                    Case Else&lt;BR /&gt;
                End Select&lt;BR /&gt;
            Next&lt;BR /&gt;
        Next&lt;BR /&gt;
    End If&lt;BR /&gt;
========&lt;BR /&gt;
&lt;BR /&gt;
Rene&lt;BR /&gt;
&lt;BR /&gt;
(With thanks to Frank Oquendo)&lt;/MORE&gt;</description>
      <pubDate>Mon, 14 Aug 2000 17:06:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327844#M91346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-14T17:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading attributes from dwg and importing into web page</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327845#M91347</link>
      <description>&lt;BR /&gt;
&lt;BR /&gt;
Hi anna,&lt;BR /&gt;
&lt;P&gt;just refer the code of mine. Its a part only. I beleive you can follow.&lt;BR /&gt;
This uses attributes.&lt;BR /&gt;
&lt;BR /&gt;I am using ms Access database and VB forms to draw in AutoCAD&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;find your way. If you need any further help mail me&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;N.Murugan&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Public Function WriteOneBarData(PassY As Double)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim Barloc As Variant&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim barv As Variant&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim BarIndicate As String&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim TotBarNos As String&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; Dim dpt(0 To 2) As Double&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Barloc = Array(49, 58, 68, 78, 89, 101, 107, 119, 129,&lt;BR /&gt;
_&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
139, 149, 159, 169, 179, 189)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BarIndicate = TypeOfBar &amp;amp; CStr _&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
(BarRecord.Fields("SizeOfBar"))&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; TotBarNos = CStr(BarRecord.Fields("MemberNos") * _&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
BarRecord.Fields("NoOfBars"))&lt;BR /&gt;
&lt;BR /&gt;Dim a, b, c, d, e, f, g, h, i, j, k, l, m, n, o As Variant&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;BR /&gt;a = BarRecord.Fields("BarMark")&lt;BR /&gt;
&lt;BR /&gt;b = BarIndicate&lt;BR /&gt;
&lt;BR /&gt;c = BarRecord.Fields("MemberNos")&lt;BR /&gt;
&lt;BR /&gt;d = BarRecord.Fields("NoOfBars")&lt;BR /&gt;
&lt;BR /&gt;e = TotBarNos&lt;BR /&gt;
&lt;BR /&gt;f = BarRecord.Fields("DimTotal")&lt;BR /&gt;
&lt;BR /&gt;g = BarRecord.Fields("ShapeCode")&lt;BR /&gt;
&lt;BR /&gt;h = BarRecord.Fields("DimA")&lt;BR /&gt;
&lt;BR /&gt;i = BarRecord.Fields("DimB")&lt;BR /&gt;
&lt;BR /&gt;j = BarRecord.Fields("DimC")&lt;BR /&gt;
&lt;BR /&gt;k = BarRecord.Fields("DimD")&lt;BR /&gt;
&lt;BR /&gt;l = BarRecord.Fields("DimE")&lt;BR /&gt;
&lt;BR /&gt;m = BarRecord.Fields("DimF")&lt;BR /&gt;
&lt;BR /&gt;n = BarRecord.Fields("DimG")&lt;BR /&gt;
&lt;BR /&gt;o = BarRecord.Fields("DimH")&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;barv = Array(a, b, c, d, e, f, g, h, i, j, k, l, k, m, n, o)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set blockref = AcadCallObject.ActiveDocument.ModelSpace.&lt;BR /&gt;
_&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; InsertBlock(iPnt, "BarData", 1, 1, 0)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If blockref.HasAttributes Then&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrayAttributes = blockref.GetAttributes&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For ii = LBound(ArrayAttributes) To UBound(ArrayAttributes)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set attref = ArrayAttributes(ii)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsNull(barv(ii)) Then&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.TextString = " "&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.TextString = barv(ii)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.HorizontalAlignment = acHorizontalAlignmentRight&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpt(0) = Barloc(ii)&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpt(1) = PassY - 4#&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpt(2) = 0#&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.TextAlignmentPoint = dpt&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attref.Update&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blockref.Update&lt;BR /&gt;
&lt;BR /&gt;End If&lt;BR /&gt;
&lt;BR /&gt;WrBool = True&lt;BR /&gt;
&lt;BR /&gt;End Function&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Anna Maria Wood wrote:&lt;BR /&gt;
&lt;/P&gt;&lt;BLOCKQUOTE type="CITE"&gt;Hi All, I am a newbie to VB programming and have&lt;BR /&gt;
a question for the group. I am hoping someone has tackled this problem&lt;BR /&gt;
already and that there might be some source code out there that I can learn&lt;BR /&gt;
from to develop my project. We have a SQL database that we have developed&lt;BR /&gt;
to keep track of our drawings, rev levels, BOM's, where used, etc. The&lt;BR /&gt;
user interface is through Internet Explorer, it allows all our company&lt;BR /&gt;
personal to access engineering documents of all types, from anywhere and&lt;BR /&gt;
at anytime. Some of the info we keep track of is: Rev Date, Material, Size&lt;BR /&gt;
and Hardness. I would like to write a VB program that that will go out&lt;BR /&gt;
and read the attributes we have in our dwg file and place them in their&lt;BR /&gt;
corresponding input boxes on the web page. What I envision is on our web&lt;BR /&gt;
page there is a button "Get Info", that when clicked would launch a VB&lt;BR /&gt;
program that would bring up a common dialog box to go and select the appropriate&lt;BR /&gt;
AutoCAD file. After selecting the file, the program would go in and read&lt;BR /&gt;
the needed attributes (without launching a session of AutoCAD) and return&lt;BR /&gt;
them to their appropriate input boxes on the web page. I am probably in&lt;BR /&gt;
way over my head on this one, but I have found that is a good way to learn&lt;BR /&gt;
by tackling a project that will be useful to me. Below is some of the html&lt;BR /&gt;
from our web page. Thanks for you input, Anna Maria Wood Auer Precision,&lt;BR /&gt;
Inc. Mesa, Arizona ----------------------------------------------------------------------------&lt;BR /&gt;
-----------------------&amp;nbsp;&lt;BR /&gt;
&lt;TABLE id="TABLE1"&gt;&lt;BR /&gt;
&lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;
&lt;TD&gt;Rev Date:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtRevDate" name="txtRevDate" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;Material:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtMaterial" name="txtMaterial" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;/TR&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TR&gt;&lt;BR /&gt;
&lt;TD&gt;Size:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtSize" name="txtSize" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;Hardness:&amp;nbsp;&lt;/TD&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;TD&gt;&lt;INPUT type="text" id="txtHardness" name="txtHardness" size="20&amp;lt;BR" /&gt;
maxLength=20 value=""&amp;gt;&lt;/TD&gt;&lt;BR /&gt;
&lt;/TR&gt;&lt;BR /&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;
&lt;INPUT type="button" name="btnGetInfo" id="btnGetInfo" value="Get Info" /&gt;&lt;BR /&gt;
onclick="thisPage._fireEvent('btnGetInfo','onclick'); return false;"&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Aug 2000 17:16:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reading-attributes-from-dwg-and-importing-into-web-page/m-p/327845#M91347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-28T17:16:52Z</dc:date>
    </item>
  </channel>
</rss>

