MarAPI – DwgOpen and DwgExist - *12.1 SP5*
- Last UpdatedMay 17, 2023
- 1 minute read
Description
Changed behaviour in API functions MarDrafting.DwgOpen and DwgExist.
For DwgOpen; if the full name of the drawing is given in combination with a drawing type, then the method will open the drawing only if the given drawing type matches the type of the sought drawing, otherwise the drawing will not be opened.
For DwgExist; only if the given drawing type matches the type of the sought drawing, the method will confirm the existence of the drawing.
Please note that using DwgType "General Drawing" will no longer open a drawing if it is of a different type than this, which it did before this change.
A new option to search for all drawing types has been created, MarDrafting.DwgTypeAllDrawings. This can be used in case the drawing should be opened disregarding of the DwgType.
Benefits
Improved meaning of input parameter DwgType to functions DwgOpen and DwgExist.
Compatibility Constraints
None.
For More Information
Refer to User Guide Legacy Applications / Developers Toolkit / Marine .NET Interfaces / Aveva.Marine.Drafting / MarDrafting Class / Methods / DwgOpen or DwgExist.
Affected Programs
AVEVA Marine Drafting