<?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/"><channel><title>Publishing DWG models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models</link><description>Documentation for Synchronization</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Publishing DWG models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models</link><pubDate>Mon, 11 Sep 2023 11:42:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Current Revision posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:42:08 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DWG models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Share your feedback and vote on which data types or formats we should document next&amp;nbsp;&lt;a href="https://forms.office.com/r/QGjAnW9eAc" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DWG models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;MicroStation can work with several built-in geographical coordinate systems (GCS). Using a DGN as a geolocation file for DWG models can be useful when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;DWG is using local coordinate system&lt;/li&gt;
&lt;li&gt;DWG can not be modified in any way&lt;/li&gt;
&lt;li&gt;Precise latitude and longitude values are unknown&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Civil3D, synchronize, alignment, AutoCad, correcting spatial alignment, DWG&lt;/div&gt;
</description></item><item><title>Publishing DWG models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/17</link><pubDate>Mon, 11 Sep 2023 11:20:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 17 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:20:01 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DWG models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Share your feedback and vote on which data types or formats we should document next&amp;nbsp;&lt;a href="https://forms.office.com/r/QGjAnW9eAc" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DWG models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Civil3D, synchronize, alignment, AutoCad, correcting spatial alignment, DWG&lt;/div&gt;
</description></item><item><title>Publishing DWG models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/16</link><pubDate>Mon, 11 Sep 2023 11:16:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 16 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:16:39 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Share your feedback and vote on which data types or formats we should document next&amp;nbsp;&lt;a href="https://forms.office.com/r/QGjAnW9eAc" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Civil3D, synchronize, alignment, AutoCad, correcting spatial alignment, DWG&lt;/div&gt;
</description></item><item><title>Publishing DGW models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/15</link><pubDate>Mon, 11 Sep 2023 11:06:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 15 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:06:42 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Share your feedback and vote on which data types or formats we should document next&amp;nbsp;&lt;a href="https://forms.office.com/r/QGjAnW9eAc" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Civil3D, synchronize, alignment, AutoCad, correcting spatial alignment, DWG&lt;/div&gt;
</description></item><item><title>Publishing DGW models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/14</link><pubDate>Mon, 11 Sep 2023 11:05:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 14 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:05:11 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Share your feedback and vote on which data types or formats we should document next&amp;nbsp;&lt;a href="https://forms.office.com/r/QGjAnW9eAc" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/13</link><pubDate>Mon, 11 Sep 2023 11:03:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 13 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:03:42 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Share your feedback and vote on which data types or formats we should document next&amp;nbsp;&lt;a href="https://forms.office.com/r/QGjAnW9eAc" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/12</link><pubDate>Mon, 11 Sep 2023 11:01:21 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 12 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:01:21 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/11</link><pubDate>Mon, 11 Sep 2023 11:01:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 11 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 11:01:07 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/10</link><pubDate>Mon, 11 Sep 2023 10:55:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 10 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 10:55:44 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working with GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tsf0a0"&gt;Using a DWG as a geolocation file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working with GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to synchronize DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;ul&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;ul&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tsf0a0"&gt;&lt;span data-preserver-spaces="true"&gt;Using a DWG as a geolocation file&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;When a DWG file has a valid GCS that uses a geographical coordinate system, as opposed to a local coordinate system, it may be used for the geolocation of an iModel. Other files added to the iModel connection will use the first DWG file&amp;#39;s GCS. If an added file is a DGN or another DWG file, checking the model alignment before starting a new connection is a good idea.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;" data-preserver-spaces="true"&gt;&lt;strong&gt;Validating model alignment&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DWG, it can be checked in either Civil 3D or MAP 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file in Civil 3D or MAP 3D&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as an xReference file at the world origin 0,0,0.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are aligned correctly, they can be independently connected to the iModel, where the two models shall also be aligned correctly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If they are not aligned correctly in Civil 3D or MAP 3D, there are two options:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;ul&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Keep the to-be-added DWG file as an xReference file in the master DWG file, align the xReference attachment to the master file, then let the DWG connector publish the master file along with the attached xReference file, or&lt;/span&gt;&lt;/li&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Open the to-be-added DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps until the two models are aligned, and then add the modified DWG file to the iModel connection such that the file may be published independently.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If a to-be-added file is DGN, the file can be checked in MicroStation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DWG file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the DGN file using Reference Manager.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;ul&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;If the Reference Manager has a&amp;nbsp;&lt;/span&gt;&lt;em&gt;Geographic&amp;nbsp;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;view available, select that view to project the DGN model to the DWG&amp;#39;s GCS,&lt;/span&gt;&lt;/li&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Otherwise, select view&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master File&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;.&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DGN file looks correct against the first DWG file, a DGN-based connector may be used to connect the DGN file to the iModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the two files are not aligned correctly, open the DGN in MicroStation, move the model to the correct location, and repeat the above steps until they are aligned.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/9</link><pubDate>Mon, 11 Sep 2023 10:49:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 9 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 10:49:23 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Working GCS in&amp;nbsp;DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu0"&gt;Geolocation methods&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1tmcsu1"&gt;Using a MicroStation geolocation file to publish DWG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Working GCS in&amp;nbsp;DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1tmcsu0"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocation methods&lt;/h1&gt;
&lt;p&gt;The following sections describe how to best configure DWG models to achieve perfect geospatial alignment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1tmcsu1"&gt;&lt;span data-preserver-spaces="true"&gt;Using a MicroStation geolocation file to publish DWG&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting model files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Regardless of the synchronization method chosen for connecting model files, always ensure that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The DGN file is connected first and is selected as the file defining the geocoordinate system &amp;ndash; ideally within its own connection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file is not modified, and is used for each new iModel.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The geolocation file only needs to be synchronized once.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;The GCS cannot be changed once connected. Updating the GCS will require a new iModel to be created.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;In this setup, it may be a good idea to check if a DWG file matches the DGN file before adding the DWG file to the iModel connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;A recommended check may be done in MicroStation:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Open the first DGN file as a master file in MicroStation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Attach the to-be-added DWG file as a reference file.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;ul&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;In Reference Manager, ensure that&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;the Coincident&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;view, i.e., &amp;quot;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;Align With the Master Fil&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;e,&amp;quot; is selected for this attachment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file looks correct against the DGN file, the DWG file may be added to the iModel connection as an independent model connected by a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;If the DWG file is not aligned correctly in MicroStation, there are two options:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;ul&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Keep the DWG file as a reference attachment in the DGN file, and align the attachment to the master file, then let a DGN based connector publish the DGN file along with the DWG reference file to the iModel, or&lt;/span&gt;&lt;/li&gt;
&lt;li class="ql-indent-1"&gt;&lt;span data-preserver-spaces="true"&gt;Open the DWG file in the product in which the file was created, move the model to the correct location, repeat the above steps to check the DWG file again, then publish the file with a DWG connector.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/8</link><pubDate>Mon, 11 Sep 2023 10:30:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 8 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 10:30:31 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Geolocating DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1slgl70"&gt;Set correct model units&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocating DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1slgl70"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Set correct model units&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;DWG is a unitless file format. However, it has a system variable called&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;, Design Center Units:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;is set to real-world units, the units will be used for iTwin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;When&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;&amp;nbsp;is set to Unitless, a DWG connector will make the best effort to infer possible units used in a DWG file, but it is not reliable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;You should always try setting the correct units using&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span data-preserver-spaces="true"&gt;LUNITS&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span data-preserver-spaces="true"&gt;that are also consistent with the desired GCS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Setting correct units in a source DWG file will ensure you get the correct units in iTwin.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/7</link><pubDate>Mon, 11 Sep 2023 10:20:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 7 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 10:20:15 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Geolocating DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1s0b140"&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocating DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/6</link><pubDate>Mon, 11 Sep 2023 10:19:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 6 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 10:19:58 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Geolocating DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocating DGW models&lt;/h1&gt;
&lt;h2 id="mcetoc_1ha1s0b140"&gt;&lt;a id="AssignGCS"&gt;&lt;/a&gt;Assign a GCS in AutoCAD Civil 3D or AutoCAD MAP 3D&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;a id="ReplaceGCS"&gt;&lt;/a&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;A GCS created in plain AutoCAD does not work for iTwin as the model may not be in the geographical coordinate system.&amp;nbsp; In this, the GCS may be replaced in Civil 3D:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the source DWG file in Civil 3D&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOREMOVE&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Accept the prompt to delete existing GCS&lt;/li&gt;
&lt;li&gt;Create a new GCS by following the steps outlined in the above section&amp;nbsp;&lt;a href="#AssignGCS"&gt;Assign a GCS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Invoke command &lt;em&gt;GEOMAP &lt;/em&gt;to check if the new GCS is against the model.&lt;/li&gt;
&lt;li&gt;If the model is not aligned with the new GCS, re-align it.&lt;/li&gt;
&lt;li&gt;Save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/5</link><pubDate>Mon, 11 Sep 2023 10:16:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 5 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 10:16:36 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;div class="table-of-contents"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rl1mc1"&gt;Geolocating DGW models&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#mcetoc_1ha1rrqji2"&gt;Replace existing Geographical Coordinate System&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc0"&gt;Types of Coordinate Systems in DWG&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="mcetoc_1ha1rl1mc1"&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;Geolocating DGW models&lt;/h1&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Civil 3D or MAP 3D could be used to create a GCS in a DWG file. They both have a command MAPCSASSIGN used to assign required GCS to the DWG file.&amp;nbsp;Keep in mind that the library&amp;#39;s appearance or content may change from one product version to another, but the command shall hopefully remain the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/1assign-coord-system.jpg" data-uw-rm-ima="un" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080;font-size:75%;"&gt;&lt;em&gt;Image 1 - Example of GCS library invoked by MAPCSASSIGN&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There is a different way of setting a GCS in Civil 3D. If you are a C3D user and prefer using its TOOLSPACE, you have this alternative:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select the &amp;quot;Settings&amp;quot; tab in TOOLSPACE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Right mouse click on the file name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Select &amp;quot;Edit Drawing Settings&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Set options as appropriate in Drawing Settings&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-wikis-components-files/00-00-00-05-55/2-GCScivil.png" data-uw-rm-ima="un" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;em&gt;&lt;span style="color:#808080;" data-preserver-spaces="true"&gt;Image 2 - Example of Drawing Settings dialog in Civil 3D&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ha1rrqji2"&gt;&lt;span data-preserver-spaces="true"&gt;Replace existing Geographical Coordinate System&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/4</link><pubDate>Mon, 11 Sep 2023 09:50:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 4 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 9:50:20 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Types of Coordinate Systems in DWG&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, &lt;strong&gt;a GCS created using local coordinate system is not supported&lt;/strong&gt;, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/3</link><pubDate>Mon, 11 Sep 2023 09:46:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 3 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 9:46:06 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Types of Coordinate Systems in DWG&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, a local coordinate system is not supported, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/2</link><pubDate>Mon, 11 Sep 2023 09:45:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 2 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 9:45:35 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Spatially Aligning DGW models&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Types of Coordinate Systems in DWG&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, a local coordinate system is not supported, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Publishing DGW models best practices</title><link>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models/revision/1</link><pubDate>Mon, 11 Sep 2023 09:44:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:335fb4a0-68a6-44bd-9581-16ae03f748bd</guid><dc:creator>Laisvune Valackaite</dc:creator><comments>https://communities.bentley.com/products/digital-twin-cloud-services/itwin-services/w/synchronization-wiki/68538/publishing-dwg-models#comments</comments><description>Revision 1 posted to Synchronization Wiki by Laisvune Valackaite on 9/11/2023 9:44:59 AM&lt;br /&gt;
&lt;p&gt;&lt;span&gt;Correctly geolocated iModels can provide additional benefits to a model coordination workflow. Not only can the background map provide more context to the model, measuring coordinates and sharing this information can be valuable for model review tasks.&lt;/span&gt;&lt;br data-uw-rm-sr="" /&gt;&lt;span&gt;To take advantage of an iModel&amp;rsquo;s capability to work in a multidisciplinary environment and with various other source files and formats, it is important to correctly align DWG models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A DWG file may be connected to an iModel using one of the following iTwin Connectors: AutoCAD, AutoPlant, and Civil 3D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Spatially Aligning DGW models&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;    	    	        &lt;div style="padding: 1em; margin: 1em 0; color: #111; background-color: #fff; border: solid 1px #ffb300;"&gt;
	    	        Please see the following sections for advice which best describes your geolocation issues. If in doubt, please also consider communicating with the author of the model files. It is also advised to adhere to Autodesk’s recommended best practices.
	    &lt;/div&gt;
	&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Types of Coordinate Systems in DWG&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;There are two different geolocation types in AutoCAD-based products;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of local coordinate system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;Use of a defined Geographical Coordinate System (GCS)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;To properly position DWG files, they need to have the GCS defined. Currently, a local coordinate system is not supported, and there could be cases where the results might be spatially misaligned after successfully connecting such a DWG file to an iModel.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Differences in design applications:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD, a GCS can only be created using a local coordinate system. In this workflow, a GCS is placed at a given point in the model coordinate system. This process may be compared to attaching a raster file as a background image.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span data-preserver-spaces="true"&gt;In AutoCAD MAP 3D or AutoCAD Civil 3D, a GCS can be created using a geographical coordinate system. In this workflow, a GCS is assigned to a model, effectively making the model in the same geographical coordinate system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;Thus, Civil 3D and MAP 3D, but not AutoCAD, are recommended for GCS creation in a DWG file, which will be used to geolocate an iModel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span data-preserver-spaces="true"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>