public CableDrawing CreateCableDrawingFromTemplate( string name, string templatePath, IEnumerable<CableUnitInfo> cableUnits, CableDrawingDisplayConfigurationInfo displayConfiguration )
Parameters
- name
- Name of the new cable drawing. No two cable drawings in the project can have the same name.
- templatePath
- Path to the template file (*.hxct).
- cableUnits
- Cable units from which this cable drawing will be derived. Only valid cable units are allowed. (Check EPLAN.Harness.API.Occurrences.Interfaces.IOccCableUnit.IsCableUnitValid.) Only cable units from one type of designer are allowed (all from Workspaces or all from Workdesks).
- displayConfiguration
- Display configuration. Obtain from Project.GetDefaultCableDrawingDisplayConfiguration or Project.GetCableDrawingDisplayConfigurations. If not provided then it is taken from the template.
Return Value
New cable drawing.