<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/236884/convert-dwg-blocks-to-dgb-cell-library</link><description>Is there a way to convert a Civil3D DWG file with multiple blocks all in one model to a dgn cell library with a separate model from each block? I&amp;#39;m looking for a way to convert a DWG block file to dgn cell library.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/738450?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 17:48:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0dfa1e0c-7391-46fb-a113-a3d0b0589293</guid><dc:creator>Kirk</dc:creator><description>&lt;p&gt;Instant cell library&lt;/p&gt;
&lt;p&gt;here was my workflow&lt;/p&gt;
&lt;p&gt;I took a bunch of dwg files and translated them to DGN. rename levels as needed with cvs file&lt;/p&gt;
&lt;p&gt;Then I used batch process and renames all the models &amp;quot;model&amp;quot; to the dgn file name&lt;/p&gt;
&lt;p&gt;using this in a txt file for batch process&lt;/p&gt;
&lt;p&gt;$ model rename default $(basename(_DGNFILE))&lt;/p&gt;
&lt;p&gt;Since they were once dwg files the keyin was ...&lt;/p&gt;
&lt;p&gt;$ model rename MODEL $(basename(_DGNFILE))&lt;/p&gt;
&lt;p&gt;Open the Dgn file and select all the dgn files and drag and drop them into the Models dialog&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In an explorer window, multi-select the source DGN files. Then drag-drop the selection on the &amp;quot;Models&amp;quot; dialog of the destination DGN file. This will copy all models, including drawing and sheet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737041?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 21:24:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b0a0a58e-9748-4ce0-9231-625bd6cb0f81</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;Awesome! Glad to hear it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737037?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 20:54:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ec7aa668-5b73-4527-a4e7-f4e736d17778</guid><dc:creator>Josh M</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp; I got it to work using:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;$ export cells shared &amp;quot;F:\Home\PW\CAD\...Insert rest of path here...\$(basename(_DGNFILE)).cel&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This should work well since the output path of my .cel files is the same for all dwg files that will be processed.&lt;/p&gt;
&lt;p&gt;The trick I missed was the $ at the beginning of the command line, which is explained in the link you included.&lt;/p&gt;
&lt;p&gt;It worked on a single file as a key-in, so it should work as a Batch Process Command File.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737033?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 20:35:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cb74c4dd-169c-4dce-a6fc-abd0f02fa77f</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;You&amp;nbsp;&lt;em&gt;might&amp;nbsp;&lt;/em&gt; also be able to use the keyin&amp;nbsp;&lt;/p&gt;
&lt;p&gt;expand set MS_DESIGNSEED =&amp;nbsp;&lt;em&gt;fullpath and filename for your desired seed&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;before you use the export... keyin.&lt;br /&gt;It could be another configuration variable - I pulled that from memory and it&amp;#39;s probably wrong...But you may be able t find out which variable you want by looking at your configuration variables and seeing what they use for cell seeds, if there is such a thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737032?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 20:32:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f8a36aa0-1bc2-4425-bc5f-c73eface7f24</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;I haven&amp;#39;t checked it (not in MicroStation today) but you&amp;nbsp;&lt;em&gt;might&lt;/em&gt; be able to make use of the $(basename(_DGNFILE)) as shown &lt;a href="/products/microstation/w/askinga/3387/how-to-expand-keyins-that-contain-configuration-variables"&gt;here&lt;/a&gt; as part of your Export...keyin. As in&lt;/p&gt;
&lt;p&gt;&lt;span&gt;export cells shared&amp;nbsp;&lt;/span&gt;&lt;em&gt;c:\Cells\$(basename(_DGNFILE)).cel&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Again, I haven&amp;#39;t tried it. You can try the keyin on one file to see if it works. If it does, that would be your keyin for your batch process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737031?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 20:29:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:653b29c5-c782-444e-a9be-0b792836e1c6</guid><dc:creator>Josh M</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp; That&amp;#39;s exactly what I am trying to do.&amp;nbsp; Thanks for looking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737027?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 20:11:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0d6de059-920a-4dda-9c6b-fe2cf4591df1</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;OK, I think I have it.&lt;/p&gt;
&lt;p&gt;You want to export the shared cells out of a DWG file into a cell library that will have the name of the DWG file - without having to manually name it, so that you can run that as a batch process. That way, each DWG will generate its own cell library with the same name, and you can get them all done in one pass?&lt;/p&gt;
&lt;p&gt;Hmmm. I&amp;#39;ll try to look into that. I&amp;#39;m not the most experienced with batches and scripting, so hopefully someone with more knowledge will be along shortly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737018?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 19:41:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:659b9d57-3654-4dea-830d-d1f741142b9d</guid><dc:creator>Josh M</dc:creator><description>&lt;p&gt;No.&amp;nbsp; I&amp;#39;m sorry if I wasn&amp;#39;t entirely clear.&amp;nbsp; I have several dwgs - each with several shared cells/blocks.&amp;nbsp; I want to initiate some sort of batch conversion process.&amp;nbsp; What I ultimately want is a cell library created from each dwg file.&amp;nbsp; So each cell library will contain multiple models which are the exported shared cells.from its original dwg file.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t own AutoCAD, but I received several dwgs with multiple shared cells.&amp;nbsp; Presumably these are AutoCAD&amp;#39;s equivalent of MicroStation cell libraries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737015?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 19:11:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:07153841-e03f-42f8-bccc-5c12f91717e7</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;So you want each block exported to its own DGN file, not to a library of cells?&lt;/p&gt;
&lt;p&gt;A CEL file is traditionally a library of multiple cells. While you&amp;nbsp;&lt;em&gt;can&lt;/em&gt; have a file with only one cell in it...that&amp;#39;s not really a library. It&amp;#39;s a drawing with a single model. May I ask why you want to separate them out to separate drawings?&lt;/p&gt;
&lt;p&gt;It might work better if you have some way to WBLOCK all of your blocks out in AutoCAD, because then, you would be able to use the regular Batch Converter to convert all of them to DGN files. I found &lt;a href="https://apps.autodesk.com/ACD/en/Detail/Index?id=6861263512373641535&amp;amp;appLang=en&amp;amp;os=Win32_64&amp;amp;_ga=2.112450701.801119066.1666016471-1034151828.1660057698"&gt;this routine&lt;/a&gt; in the AutoDesk App Store, or &lt;a href="https://blog.draftsperson.net/wblock-all-lisp-routine/"&gt;this Lisp&lt;/a&gt; with a Google Search.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/737010?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 18:57:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7c4b2d64-42e4-4b23-8171-ca1143e3795b</guid><dc:creator>Josh M</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp; I had a chance to try your suggestion.&amp;nbsp; It works, but I have a couple questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Can I specify a seed file, or where does it get its Design File Settings from for the new .cel file?&lt;/li&gt;
&lt;li&gt;My test run created a design model for each cell.&amp;nbsp; The model opens with four views (top, top, top, top).&amp;nbsp; Is there a key-in(s) to have it open only View 1 (top) and with the model zoomed to Fit Extents?&lt;/li&gt;
&lt;li&gt;Is there a way to write a batch process command file using this &amp;ldquo;EXPORT CELLS SHARED&amp;nbsp;d:\test.cel&amp;rdquo; to automatically name the test.cel from the active dgn&amp;rsquo;s name?&amp;nbsp; I want to do this in batch to convert several DWG block files into cel files &amp;ndash; each dwg file separately into a similarly-named cel file &amp;ndash; not all dwgs into one cel file.&amp;nbsp; In other words, if my active file is named test.dwg I want to export to test.cel in the same folder.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert DWG blocks to DGB Cell Library</title><link>https://communities.bentley.com/thread/736471?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 09:07:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0c9e43ba-799a-41bb-99b5-756cad31b633</guid><dc:creator>Ivo Blaauw</dc:creator><description>&lt;p&gt;KeyIn:&lt;/p&gt;
&lt;p&gt;export cells shared &lt;em&gt;c:\folder\filename.cel&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>