LayoutNames

CadLoadOptions.LayoutNames property

Specifies which CAD layouts to be converted

public string[] LayoutNames { get; set; }

Remarks

Not honoured when converting to PDF/UA-1. That target renders the drawing as a single tagged page, which cannot carry one sheet per selected layout, so the whole drawing is converted instead and nothing here applies to it. Every other target, PDF included, honours the selection. On those targets, names are matched exactly against the layouts the drawing carries, so a name that differs only in case is a different name. A name that matches nothing is dropped and costs the caller only that sheet; a list in which nothing matches fails the conversion with an InvalidLoadOptionsException naming the names that missed and the layouts the drawing does carry, rather than rendering sheets the caller did not ask for. A drawing that carries no layouts at all is exempt: there is nothing for a name to match, so none is refused. The list is checked when the drawing is loaded for its conversion. When nothing matches, the load options delegate is asked once more for that drawing, with that exception as LoadFailure; options with names that match load and convert it, and otherwise the conversion fails as described.

See Also