SincpacC3D General Information Command Summary
The ObLaRead command changes the Object Layer settings in the current drawing to the settings stored in an XML file by the ObLaWrite command.
Type ObLaRead at the command line, then browse to the XML file you wish to load.
This command is designed to read an XML file created by the ObLaWrite command. The XML file contains an entry for each Object Layer setting. Each entry looks something like the following:
You may hand-edit this XML file in any text editor, although care should be exercised when doing so. An error in the XML file will cause it to fail to load.
Object Layer Accessibility
Unfortunately, in the 2008 and 2009 versions of Civil 3D, not all of the Object Layer settings are available via the API. This routine will import as many of the Object Layer settings as possible, but some settings cannot be accessed.
Settings that cannot be imported in the 2008 and 2009 versions:
Compatibility of the XML files between versions
Note that the format of the XML file has changed slightly for the 2010 version, and the 2010 version will not be able to read XML files created by the 2008 and 2009 versions (and vice-versa) without editing the XML file first.
This issue is caused by the fact that the possible values for the "Modifier" have changed. In the 2010 version, the Modifier can be one of the following:
However, in the 2008 and 2009 versions, the Modifier can be one of the following:
If you wish to read an old-style XML file into C3D 2010, it is possible to use a "search and replace" function in any text editor to edit an XML file, and fix the file so that it uses the proper values for the Modifier. It should then be possible to read the file using the ObLaRead command.
Changes the current Object Layer settings for General Note and General Segment Labels to match an object selected on-screen.
Quick-set dialog for Drawing Scale, General Line/Curve Label layer, and General Note Label layer.
Write Object Layer Settings to an XML file.