Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdTraceRuntime::appendDwgAsTrace Method (const OdString&, OdString&)
Syntax
C++
OdResult appendDwgAsTrace(const OdString& sPath2DwgFileAsTrace, OdString& traceName);

Adds the specified .dwg file to the current database as a trace. 

 

Parameters
Description
sPath2DwgFileAsTrace
[in] A string containing the path to the dwg file.
traceName
[in/out] String with the name which will given to the trace. If the name is not unique, traceName will be changed.

eOk if dwg file added as trace successful.

  • eNoFileName if the argument sPath2DwgFileAsTrace is empty.
  • eFileAccessErr if the file sPath2DwgFileAsTrace is not available.
  • eInvalidContext if OdDbTraceStore in the current database is not available.
  • eCantOpenFile if can't create temporary zip file in temporary folder.
  • eAlreadyActive if some trace is open.
Copyright © 2002-2022. Open Design Alliance All rights reserved.