<?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: ObjectDBX, update entity in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760846#M31305</link>
    <description>Thanks a lot Jeff.&lt;BR /&gt;
I am eager to try them.</description>
    <pubDate>Mon, 11 Sep 2006 20:39:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-11T20:39:06Z</dc:date>
    <item>
      <title>ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760843#M31302</link>
      <description>Hi,&lt;BR /&gt;
I have a task to change a text entity in multiple drawings. I try to use objectDBX. Here are 2 questions:&lt;BR /&gt;
1. Can anyone give me an idea how to create a file select like windows explore to let user choose multiple files and passing these filenames to sub?&lt;BR /&gt;
2. Can anyone give me an example of how to use objectDBX open multiple files and process them in the background? &lt;BR /&gt;
Thanks a bunch.</description>
      <pubDate>Mon, 11 Sep 2006 19:59:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760843#M31302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760844#M31303</link>
      <description>Attached is a zip with a dvb for an OpenSave dialog, which includes a sample &lt;BR /&gt;
Sub to grab only Drawing files.&lt;BR /&gt;
&lt;BR /&gt;
For the ObjectDBX portion, just Open, Edit, SaveAs one at a time. If you &lt;BR /&gt;
must have 2 open at the same time, then you must create 2 instances of an &lt;BR /&gt;
ObjectDBX object.&lt;BR /&gt;
&lt;BR /&gt;
Psuedo-code:&lt;BR /&gt;
Set ODBX = ODBXObject&lt;BR /&gt;
For Each Dwg in DwgArray&lt;BR /&gt;
  ODBX.Open Dwg&lt;BR /&gt;
  'Edit ODBX FIle&lt;BR /&gt;
  ODBX.SaveAs Dwg&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
Note that you will need to append the Path to the Dwg file for ObjectDBX to &lt;BR /&gt;
find it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;TOMYCOLTEDM&gt; wrote in message news:5325140@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
I have a task to change a text entity in multiple drawings. I try to use &lt;BR /&gt;
objectDBX. Here are 2 questions:&lt;BR /&gt;
1. Can anyone give me an idea how to create a file select like windows &lt;BR /&gt;
explore to let user choose multiple files and passing these filenames to &lt;BR /&gt;
sub?&lt;BR /&gt;
2. Can anyone give me an example of how to use objectDBX open multiple files &lt;BR /&gt;
and process them in the background?&lt;BR /&gt;
Thanks a bunch.&lt;/TOMYCOLTEDM&gt;</description>
      <pubDate>Mon, 11 Sep 2006 20:25:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760844#M31303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T20:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760845#M31304</link>
      <description>Heh, forgot the zip....&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5325172@discussion.autodesk.com...&lt;BR /&gt;
Attached is a zip with a dvb for an OpenSave dialog, which includes a sample&lt;BR /&gt;
Sub to grab only Drawing files.&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Mon, 11 Sep 2006 20:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760845#M31304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T20:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760846#M31305</link>
      <description>Thanks a lot Jeff.&lt;BR /&gt;
I am eager to try them.</description>
      <pubDate>Mon, 11 Sep 2006 20:39:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760846#M31305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T20:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760847#M31306</link>
      <description>Excellent help. Just one more question,&lt;BR /&gt;
When I copy the classmodule OpenSaveClass to my project, and try test(), it cames error "User-defined type not define". I did not remove or add anything. What the point I missed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 13 Sep 2006 14:18:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760847#M31306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760848#M31307</link>
      <description>If I choose more files and the path is very long string, the strFile return emply. How long the string could be in this file select application?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 13 Sep 2006 17:12:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760848#M31307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T17:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760849#M31308</link>
      <description>I guess you solved your other question from earlier today?&lt;BR /&gt;
&lt;BR /&gt;
In the ShowOpen procedure of the Class module are these 2 lines:&lt;BR /&gt;
  udtStruct.lpstrFile = Space$(254)&lt;BR /&gt;
  udtStruct.nMaxFile = 255&lt;BR /&gt;
&lt;BR /&gt;
These control the number of characters allowed in the output string. I just &lt;BR /&gt;
tested with this:&lt;BR /&gt;
&lt;BR /&gt;
  udtStruct.lpstrFile = Space$(1254)&lt;BR /&gt;
  udtStruct.nMaxFile = 1255&lt;BR /&gt;
&lt;BR /&gt;
And was able to collect significantly more file names.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TOMYCOLTEDM&gt; wrote in message news:5327858@discussion.autodesk.com...&lt;BR /&gt;
If I choose more files and the path is very long string, the strFile return &lt;BR /&gt;
emply. How long the string could be in this file select application?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/TOMYCOLTEDM&gt;</description>
      <pubDate>Wed, 13 Sep 2006 17:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760849#M31308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T17:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760850#M31309</link>
      <description>Thanks. Can I add a big number here in case I need open  a lot of Files. Let's say 25555.</description>
      <pubDate>Wed, 13 Sep 2006 17:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760850#M31309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T17:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760851#M31310</link>
      <description>Uh, try it? Based on the VBA help, I would say yes you can:&lt;BR /&gt;
&lt;BR /&gt;
There are two kinds of strings: variable-length and fixed-length strings.&lt;BR /&gt;
&lt;BR /&gt;
  a.. A variable-length string can contain up to approximately 2 billion &lt;BR /&gt;
(2^31) characters.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  b.. A fixed-length string can contain 1 to approximately 64K (2^16) &lt;BR /&gt;
characters.&lt;BR /&gt;
&lt;BR /&gt;
&lt;TOMYCOLTEDM&gt; wrote in message news:5327885@discussion.autodesk.com...&lt;BR /&gt;
Thanks. Can I add a big number here in case I need open  a lot of Files. &lt;BR /&gt;
Let's say 25555.&lt;/TOMYCOLTEDM&gt;</description>
      <pubDate>Wed, 13 Sep 2006 18:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760851#M31310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T18:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760852#M31311</link>
      <description>Yes, it works. I tried 2^16,65536 works well.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 13 Sep 2006 18:39:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760852#M31311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T18:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760853#M31312</link>
      <description>One more question, the return string is delimited with space like this:&lt;BR /&gt;
d:\AA BB CC\DD EE\FFF GGG\folder drawing1.dwg drawing2.dwg drawing3.dwg&lt;BR /&gt;
it is very difficult to retrieve Path, and each drawing name if the folder name and the filename have spaces(which is normal situation). Do you have any idea how to retieve the path name filenames.</description>
      <pubDate>Wed, 13 Sep 2006 19:08:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760853#M31312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T19:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760854#M31313</link>
      <description>See this test Sub for creating an array which has the Path first, followed &lt;BR /&gt;
by each filename:&lt;BR /&gt;
&lt;BR /&gt;
Sub test1()&lt;BR /&gt;
Dim strFile As String&lt;BR /&gt;
Dim cOpenSave As New OpenSaveClass&lt;BR /&gt;
&lt;BR /&gt;
cOpenSave.MultiSelect = True&lt;BR /&gt;
cOpenSave.Filter = "AutoCAD drawings (*.dwg)|*.dwg"&lt;BR /&gt;
cOpenSave.Title = "Select File to Open"&lt;BR /&gt;
&lt;BR /&gt;
strFile = cOpenSave.ShowOpen&lt;BR /&gt;
Dim vtest As Variant&lt;BR /&gt;
vtest = Split(strFile, vbNullChar)&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TOMYCOLTEDM&gt; wrote in message news:5328092@discussion.autodesk.com...&lt;BR /&gt;
One more question, the return string is delimited with space like this:&lt;BR /&gt;
d:\AA BB CC\DD EE\FFF GGG\folder drawing1.dwg drawing2.dwg drawing3.dwg&lt;BR /&gt;
it is very difficult to retrieve Path, and each drawing name if the folder &lt;BR /&gt;
name and the filename have spaces(which is normal situation). Do you have &lt;BR /&gt;
any idea how to retieve the path name filenames.&lt;/TOMYCOLTEDM&gt;</description>
      <pubDate>Wed, 13 Sep 2006 20:18:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760854#M31313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T20:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760855#M31314</link>
      <description>Also, I just noticed that the ShowOpen method returns a string that has an &lt;BR /&gt;
extra Null character at the end. In the ShowOpen procedure, near the end, &lt;BR /&gt;
change this line:&lt;BR /&gt;
&lt;BR /&gt;
    ShowOpen = Mid(strTemp, 1, Len(strTemp) - 1)&lt;BR /&gt;
&lt;BR /&gt;
to this:&lt;BR /&gt;
&lt;BR /&gt;
    ShowOpen = Mid(strTemp, 1, Len(strTemp) - 2)&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5328185@discussion.autodesk.com...&lt;BR /&gt;
See this test Sub for creating an array which has the Path first, followed&lt;BR /&gt;
by each filename:&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Wed, 13 Sep 2006 20:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760855#M31314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T20:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectDBX, update entity</title>
      <link>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760856#M31315</link>
      <description>Awesome, I leart a lot. It works perfectly.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Jeff</description>
      <pubDate>Wed, 13 Sep 2006 20:53:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/objectdbx-update-entity/m-p/1760856#M31315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T20:53:48Z</dc:date>
    </item>
  </channel>
</rss>

